Skip to content

docs: add agent-config.yaml field reference - #79

Merged
pavelanni merged 2 commits into
mainfrom
docs/agent-config-guide
May 26, 2026
Merged

pavelanni merged 2 commits into
mainfrom
docs/agent-config-guide

Conversation

@pavelanni

@pavelanni pavelanni commented May 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds docs/agent-config-guide.md — a comprehensive reference for all agent-config.yaml fields
  • Covers tools (allowed, exec, web_fetch, workspace, MCP), loop, and RAG sections
  • Documents types, defaults, available built-in tools, and phase 1 vs phase 2 behavior
  • Includes minimal and full examples

Addresses feedback that agent-config.yaml was only documented through scattered examples, not a single reference.

Related

Test plan

  • Verify all fields match Go struct definitions in internal/cmd/agentconfig.go
  • Verify defaults match code in pkg/tools/loop.go and pkg/rag/config.go
  • README renders correctly on GitHub

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added comprehensive agent configuration guide covering tool availability control, agentic loop execution, RAG integration setup, configuration examples, and field-by-field reference documentation.

Comprehensive reference for all agent-config.yaml fields: tools
(allowed, exec, web_fetch, workspace, MCP), loop, and RAG. Covers
types, defaults, available tools, and phase 1 vs phase 2 behavior.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
@coderabbitai

coderabbitai Bot commented May 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@pavelanni, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 49 minutes and 23 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 28918a7d-769b-45b9-9d38-a4369a8843de

📥 Commits

Reviewing files that changed from the base of the PR and between 6cecd22 and 3ff19eb.

📒 Files selected for processing (1)
  • docs/agent-config-guide.md
📝 Walkthrough

Walkthrough

This PR adds a new documentation file, docs/agent-config-guide.md, that comprehensively documents the agent-config.yaml configuration file for DocsClaw agents. The guide covers schema structure, configuration examples, field-by-field references, available tools, MCP behavior, and execution mode comparison.

Changes

Agent Configuration Guide Documentation

Layer / File(s) Summary
agent-config.yaml documentation guide
docs/agent-config-guide.md
New documentation explaining the agent-config.yaml schema with minimal and full configuration examples, field-by-field reference for tools, loop, and rag configuration sections, descriptions of built-in tools and MCP listing behavior, and a comparison between phase 1 (single-shot, no configuration) and phase 2 (configured, iterative tool-calling) execution modes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • redhat-et/docsclaw#76: Demonstrates agent-config.yaml configuration in an NPS Explorer example aligned with the field references documented in this guide.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding a field reference guide for agent-config.yaml. It is specific, concise, and directly describes the primary content addition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agent-config-guide

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/agent-config-guide.md`:
- Line 153: Update the docs entry for the `exec` tool to state that `tools.exec`
is optional and only required when customizing limits; mention that the agent
registers the exec tool from `agentCfg.Tools.Exec` (see internal/cmd/serve.go)
and that internal/exec/exec.go supplies default `timeout`/`max_output` values
when unset, e.g., "Run shell commands (optional: configure via `tools.exec` for
timeout/max_output)".
- Around line 85-146: Update the docs to match the implementation: change the
default for tools.exec.timeout from `0` to `30` and tools.exec.max_output from
`0` to `50000` (implementation treats 0 as unset and applies these defaults),
and clarify tools.web_fetch.allowed_hosts format by removing the claim about
leading-dot prefixes—state that entries should be plain host suffixes (e.g.,
`svc.cluster.local`) because matching is implemented as `host == allowed` or
`strings.HasSuffix(host, "."+allowed)` (empty list still allows all hosts).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 02fb1b1c-00d2-425d-8a35-6b9ea3b4b7c6

📥 Commits

Reviewing files that changed from the base of the PR and between b5b7fd6 and 6cecd22.

📒 Files selected for processing (1)
  • docs/agent-config-guide.md

Comment thread docs/agent-config-guide.md Resolved
Comment thread docs/agent-config-guide.md Resolved
- exec timeout default is 30s (not unlimited), max_output is 50000
- web_fetch allowed_hosts uses plain suffixes, not leading-dot prefixes
- exec tool description: tools.exec config is optional, not required

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
@pavelanni
pavelanni merged commit 5f8e8b7 into main May 26, 2026
3 checks passed
@pavelanni
pavelanni deleted the docs/agent-config-guide branch May 26, 2026 21:47
@coderabbitai coderabbitai Bot mentioned this pull request May 26, 2026
2 of 4 tasks
@coderabbitai coderabbitai Bot mentioned this pull request Jul 1, 2026
7 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant