Repository navigation
docs: add agent-config.yaml field reference - #79
Conversation
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]>
|
Warning Review limit reached
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 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds a new documentation file, ChangesAgent Configuration Guide Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (1)
docs/agent-config-guide.md
- 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]>
Summary
docs/agent-config-guide.md— a comprehensive reference for allagent-config.yamlfieldsAddresses feedback that agent-config.yaml was only documented through scattered examples, not a single reference.
Related
--skills-dir) into the config fileTest plan
internal/cmd/agentconfig.gopkg/tools/loop.goandpkg/rag/config.go🤖 Generated with Claude Code
Summary by CodeRabbit