-
Notifications
You must be signed in to change notification settings - Fork 1
Add docs for coding agents #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe agents documentation file is updated: code examples reformatted (trailing commas in function/type parameter lists and JSON formatting) and the "Best Practices" section replaced with an expanded API usage and examples section. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)common/{js,py}/**/*📄 CodeRabbit inference engine (AGENT.md)
Files:
🧠 Learnings (3)📚 Learning: 2025-09-05T04:46:45.807ZApplied to files:
📚 Learning: 2025-09-05T04:47:05.202ZApplied to files:
📚 Learning: 2025-09-05T04:46:45.807ZApplied to files:
🪛 LanguageToolcommon/js/AGENTS.md[grammar] ~178-~178: Use a hyphen to join words. (QB_NEW_EN_HYPHEN) 🪛 markdownlint-cli2 (0.18.1)common/js/AGENTS.md118-118: Bare URL used (MD034, no-bare-urls) 119-119: Bare URL used (MD034, no-bare-urls) 120-120: Bare URL used (MD034, no-bare-urls) 🔇 Additional comments (3)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (1)
common/js/AGENTS.md (1)
178-178: Consider hyphenating compound noun for consistency. Per markdown linting, "Page-Content API" (with hyphen) is preferred to "Page Content API" (two words) when used as a compound adjective modifying "API".Apply this diff if desired:
-2. Extract `document` items for supporting documentation -3. Use the `url` field to read full page content (see Page Content API) +2. Extract `document` items for supporting documentation +3. Use the `url` field to read full page content (see Page-Content API)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
common/js/AGENTS.md(3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
common/{js,py}/**/*
📄 CodeRabbit inference engine (AGENT.md)
Place reusable template code under common/js and common/py
Files:
common/js/AGENTS.md
🧠 Learnings (3)
📚 Learning: 2025-09-05T04:46:45.807Z
Learnt from: CR
PR: agentuity/templates#0
File: common/js/AGENTS.md:0-0
Timestamp: 2025-09-05T04:46:45.807Z
Learning: Applies to common/js/**/*.ts : Prefer naming the default-exported function `Agent` or the specific Agent name based on the Agent description
Applied to files:
common/js/AGENTS.md
📚 Learning: 2025-09-05T04:47:05.202Z
Learnt from: CR
PR: agentuity/templates#0
File: common/py/AGENTS.md:0-0
Timestamp: 2025-09-05T04:47:05.202Z
Learning: Agent files should define an async function named `run(request: AgentRequest, response: AgentResponse, context: AgentContext)`
Applied to files:
common/js/AGENTS.md
📚 Learning: 2025-09-05T04:46:45.807Z
Learnt from: CR
PR: agentuity/templates#0
File: common/js/AGENTS.md:0-0
Timestamp: 2025-09-05T04:46:45.807Z
Learning: Applies to common/js/**/*.ts : Each agent file should export a default function
Applied to files:
common/js/AGENTS.md
🪛 LanguageTool
common/js/AGENTS.md
[grammar] ~178-~178: Use a hyphen to join words.
Context: ...tion 3. Use the url field to read full page content (see Page Content API) ###...
(QB_NEW_EN_HYPHEN)
🪛 markdownlint-cli2 (0.18.1)
common/js/AGENTS.md
118-118: Bare URL used
(MD034, no-bare-urls)
119-119: Bare URL used
(MD034, no-bare-urls)
120-120: Bare URL used
(MD034, no-bare-urls)
🔇 Additional comments (3)
common/js/AGENTS.md (3)
19-23: Function signature reformatting looks good. The multi-line format with trailing comma improves readability and aligns with modern TypeScript conventions.
35-39: Type signature formatting is consistent. The trailing comma after the context parameter aligns with the function example formatting and modern TypeScript style.
114-262: New API documentation section is well-structured and comprehensive. The coverage of three distinct API endpoints (RAG Search, Keyword Search, Page Content) with practical curl examples, response formats, and decision guidance provides agents with clear patterns for fetching documentation programmatically. This aligns well with the PR objective of enabling agents to retrieve docs via the public API.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
I got this idea from this article: https://blog.yusu.ke/hono-cli/ . Only the riff here is instead of us having this as a CLI command (which we could do), I just add how to get our docs via the doc repo's public API. It's effectively the same thing, but just telling any coding agent to use curl instead.
I've tried it with Amp and Claude Code and it does a really good job when using these API's via curl. Some examples are below:
Questions:
Ref images on the output:



Summary by CodeRabbit