Skip to content

docs: improve AGENTS.md progressive disclosure with descriptive hints#22

Merged
marcusquinn merged 1 commit intomainfrom
chore/agents-md-progressive-disclosure
Jan 9, 2026
Merged

docs: improve AGENTS.md progressive disclosure with descriptive hints#22
marcusquinn merged 1 commit intomainfrom
chore/agents-md-progressive-disclosure

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Jan 9, 2026

Summary

Improves the AGENTS.md subagent documentation with better progressive disclosure:

  • Subagent Folders table: Added "Purpose" column with descriptive hints explaining what each folder is for, and "Key Subagents" column listing the most important subagents
  • Progressive Disclosure section: Restructured as a task-domain table for easier lookup
  • Task tool note: Added clarification that Task tool subagents are filtered per-agent to reduce token overhead (relates to OpenCode issue #7269)
  • scripts/commands/: Added missing folder for slash commands

Changes

Section Before After
Subagent Folders 2 columns (Folder, Contents) 3 columns (Folder, Purpose, Key Subagents)
Progressive Disclosure Bullet list Task-domain table with specific file recommendations

Related

  • OpenCode issue #7269: Task tool token overhead reduction
  • Per-agent task permission filtering now works in OpenCode v1.1.8+

Summary by CodeRabbit

  • Documentation
    • Restructured Subagents documentation with improved categorization and descriptive organization
    • Added introductory guidance and task-domain mapping for better navigation
    • Enhanced information structure with clearer guidance on accessing subagent details

✏️ Tip: You can customize this high-level summary in your review settings.

- Add 'Purpose' column to Subagent Folders table with descriptive hints
- Add 'Key Subagents' column listing most important subagents per folder
- Add scripts/commands/ folder for slash commands
- Restructure Progressive Disclosure section with task-domain table
- Clarify that Task tool subagents are filtered per-agent to reduce overhead
- Update subagent lists to match actual folder contents
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 9, 2026

Walkthrough

The .agent/AGENTS.md documentation file underwent structural reorganization, transforming a flat subagents listing into a categorized, purpose-driven table with expanded metadata. Progressive Disclosure and AI-context guidance sections were revised to implement a structured strategy with task-domain mapping.

Changes

Cohort / File(s) Summary
Documentation Restructuring
\.agent/AGENTS\.md
Subagents table converted from flat list to descriptive, categorized format with per-folder metadata. Progressive Disclosure and guidance operators replaced with structured strategy section and task-domain mapping. Content preserved; guidance flow modified (+53/-44 lines).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

📋 The agents find new homes so neat,
Structured tables, organized feat—
From flat to categorized delight,
Guidance flows with crystalline sight,
Zero debt, documentation bright! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: improving AGENTS.md documentation with progressive disclosure enhancements and descriptive hints, which aligns perfectly with the file-level summaries and PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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


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.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the AGENTS.md documentation by enhancing its progressive disclosure strategy. The changes aim to make it easier for users to understand the purpose of various subagent folders and to quickly identify the most relevant documentation for specific tasks, thereby streamlining information retrieval and optimizing context usage.

Highlights

  • Subagent Folders Table Enhancement: The 'Subagent Folders' table has been expanded to include 'Purpose' and 'Key Subagents' columns, offering more descriptive hints and important subagent listings for each folder.
  • Progressive Disclosure Restructuring: The 'Progressive Disclosure' section has been refactored from a bulleted list into a task-domain table, providing clearer guidance on when and which specific subagents to consult.
  • Task Tool Token Overhead Clarification: A note has been added to clarify that Task tool subagents are filtered per-agent to reduce token overhead, addressing a related OpenCode issue.
  • New Subagent Folder Inclusion: The scripts/commands/ folder, containing slash commands like save-todo, has been added to the subagent documentation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 225 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Jan 9 23:06:45 UTC 2026: Code review monitoring started
Fri Jan 9 23:06:46 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 225
Fri Jan 9 23:06:46 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Fri Jan 9 23:06:48 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 225
  • VULNERABILITIES: 0

Generated on: Fri Jan 9 23:07:21 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly improves the AGENTS.md documentation by reorganizing information for better clarity and progressive disclosure. The subagent folders table is now more descriptive with added 'Purpose' and 'Key Subagents' columns, and the 'Progressive Disclosure' section is well-structured as a task-domain table. These changes make the document much easier for developers to navigate and find relevant information. I have one minor suggestion to enhance formatting consistency in the new table.

Comment on lines +241 to +267
| `aidevops/` | Framework internals - extending aidevops, adding MCPs, architecture decisions | setup, architecture, add-new-mcp-to-aidevops, troubleshooting, mcp-integrations |
| `memory/` | Cross-session patterns - learning from past interactions, user preferences | (templates for memory files) |
| `seo/` | Search optimization - keyword research, rankings, site audits, E-E-A-T scoring | dataforseo, serper, google-search-console, site-crawler, eeat-score, domain-research |
| `content/` | Content creation - copywriting standards, editorial guidelines, tone of voice | guidelines |
| `tools/build-agent/` | Agent design - composing efficient agents, reviewing agent instructions | build-agent, agent-review |
| `tools/build-mcp/` | MCP development - creating Model Context Protocol servers and tools | build-mcp, api-wrapper, server-patterns, transports, deployment |
| `tools/ai-assistants/` | AI tool integration - configuring assistants, CAPTCHA solving, multi-modal agents | agno, capsolver, windsurf, configuration, status |
| `tools/browser/` | Browser automation - web scraping, testing, screenshots, form filling | stagehand, playwright, playwriter, crawl4ai, dev-browser, pagespeed, chrome-devtools |
| `tools/ui/` | UI components - component libraries, design systems | shadcn |
| `tools/code-review/` | Code quality - linting, security scanning, style enforcement, PR reviews | code-standards, codacy, coderabbit, qlty, snyk, secretlint, auditing |
| `tools/context/` | Context optimization - semantic search, codebase indexing, token efficiency | osgrep, augment-context-engine, context-builder, context7, toon, dspy |
| `tools/conversion/` | Format conversion - document transformation between formats | pandoc |
| `tools/data-extraction/` | Data extraction - scraping business data, Google Maps, reviews | outscraper |
| `tools/deployment/` | Deployment automation - self-hosted PaaS, serverless, CI/CD | coolify, coolify-cli, vercel |
| `tools/git/` | Git operations - GitHub/GitLab/Gitea CLIs, Actions, authentication, AI PR automation | github-cli, gitlab-cli, gitea-cli, github-actions, opencode-github, opencode-gitlab |
| `tools/credentials/` | Secret management - API keys, password vaults, environment variables | api-key-setup, api-key-management, vaultwarden, environment-variables |
| `tools/opencode/` | OpenCode config - CLI setup, plugins, authentication, Oh-My-OpenCode extensions | opencode, opencode-anthropic-auth, oh-my-opencode |
| `tools/task-management/` | Task tracking - dependency graphs, blocking relationships, visual planning | beads |
| `tools/terminal/` | Terminal integration - tab titles, git context display | terminal-title |
| `tools/wordpress/` | WordPress ecosystem - local dev, fleet management, plugin curation, custom fields | wp-dev, wp-admin, localwp, mainwp, wp-preferred, scf |
| `services/hosting/` | Hosting providers - DNS, domains, cloud servers, managed WordPress | hostinger, hetzner, cloudflare, cloudron, closte, 101domains, spaceship |
| `services/email/` | Email services - transactional email, deliverability | ses |
| `services/accounting/` | Accounting integration - invoicing, expenses, financial reports | quickfile |
| `workflows/` | Development processes - branching, releases, PR reviews, quality gates | git-workflow, plans, release, version-bump, pr, preflight, postflight, ralph-loop |
| `templates/` | Document templates - PRDs, task lists, planning documents | prd-template, tasks-template, plans-template, todo-template |
| `workflows/branch/` | Branch conventions - naming, purpose, merge strategies per branch type | feature, bugfix, hotfix, refactor, chore, experiment, release |
| `scripts/commands/` | Slash commands - save-todo and other interactive commands | save-todo |

Choose a reason for hiding this comment

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

medium

For improved readability and consistency, consider wrapping each item in the Key Subagents column with backticks (`). This will format them as code, making them easier to distinguish from regular text and aligning with the formatting of file paths elsewhere in the document.

For example, the first data row should be changed from:

| `aidevops/` | Framework internals - extending aidevops, adding MCPs, architecture decisions | setup, architecture, add-new-mcp-to-aidevops, troubleshooting, mcp-integrations |

To:

| `aidevops/` | Framework internals - extending aidevops, adding MCPs, architecture decisions | `setup`, `architecture`, `add-new-mcp-to-aidevops`, `troubleshooting`, `mcp-integrations` |

Please apply this formatting to all applicable rows in the Key Subagents column.

@augmentcode
Copy link

augmentcode bot commented Jan 9, 2026

🤖 Augment PR Summary

Summary: Improves .agent/AGENTS.md so readers can find the right subagent docs faster, using clearer progressive disclosure.

Changes:

  • Expanded the “Subagent Folders” table to include Purpose and Key Subagents for each folder.
  • Converted the “Progressive Disclosure” guidance into a task-domain table with concrete file recommendations.
  • Added a note that Task tool subagents are filtered per-agent to reduce token overhead.
  • Documented scripts/commands/ as the home for slash-command docs (e.g., save-todo).

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.agent/AGENTS.md (1)

260-260: Minor: Capitalize "WordPress" in table descriptions.

Per LanguageTool, the descriptions for WordPress-related folders (line 260 and 322) should use the capitalized official name "WordPress" in the text, while the folder paths correctly remain lowercase.

✨ Proposed capitalization fix
- | `tools/wordpress/` | Wordpress ecosystem - local dev, fleet management, plugin curation, custom fields | wp-dev, wp-admin, localwp, mainwp, wp-preferred, scf |
+ | `tools/wordpress/` | WordPress ecosystem - local dev, fleet management, plugin curation, custom fields | wp-dev, wp-admin, localwp, mainwp, wp-preferred, scf |

And update line 322:

- | Wordpress work | `tools/wordpress/wp-dev.md`, `tools/wordpress/mainwp.md` |
+ | WordPress work | `tools/wordpress/wp-dev.md`, `tools/wordpress/mainwp.md` |

Also applies to: 322-322

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2a3d1ae and 38b427a.

📒 Files selected for processing (1)
  • .agent/AGENTS.md
🧰 Additional context used
🧠 Learnings (12)
📓 Common learnings
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.008Z
Learning: Applies to **/AGENTS.md : Use progressive disclosure in AGENTS.md with pointers to subagents rather than inline content
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.008Z
Learning: Applies to **/AGENTS.md : Limit root AGENTS.md to ~50-100 max instructions with universal applicability to >80% of tasks
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-29T04:34:27.158Z
Learning: All instructions, documentation, and operational guidance should be maintained in AGENTS.md as the single source of truth
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENT.md:0-0
Timestamp: 2025-11-29T04:34:42.033Z
Learning: Reference AGENTS.md (authoritative) instead of AGENT.md for AI assistant guidance
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: GEMINI.md:0-0
Timestamp: 2025-11-29T04:34:30.742Z
Learning: Maintain all instructions, documentation, and operational guidance in AGENTS.md as the single source of truth
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENT.md:0-0
Timestamp: 2025-11-29T04:34:42.033Z
Learning: Maintain all AI assistant instructions, documentation, and operational guidance in AGENTS.md as the single source of truth
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: GEMINI.md:0-0
Timestamp: 2025-11-29T04:34:30.742Z
Learning: Reference AGENTS.md for authoritative AI assistant guidance instead of GEMINI.md
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.008Z
Learning: Applies to **/AGENTS.md : Include code examples in AGENTS.md only when authoritative, otherwise use file:line references
📚 Learning: 2026-01-06T15:57:56.008Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.008Z
Learning: Applies to **/AGENTS.md : Use progressive disclosure in AGENTS.md with pointers to subagents rather than inline content

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-11-29T04:34:42.033Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENT.md:0-0
Timestamp: 2025-11-29T04:34:42.033Z
Learning: Reference AGENTS.md (authoritative) instead of AGENT.md for AI assistant guidance

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-11-29T04:34:27.158Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-29T04:34:27.158Z
Learning: All instructions, documentation, and operational guidance should be maintained in AGENTS.md as the single source of truth

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2026-01-06T15:57:56.008Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.008Z
Learning: Applies to **/AGENTS.md : Limit root AGENTS.md to ~50-100 max instructions with universal applicability to >80% of tasks

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-11-29T04:34:30.742Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: GEMINI.md:0-0
Timestamp: 2025-11-29T04:34:30.742Z
Learning: Reference AGENTS.md for authoritative AI assistant guidance instead of GEMINI.md

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-11-29T04:34:30.742Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: GEMINI.md:0-0
Timestamp: 2025-11-29T04:34:30.742Z
Learning: Maintain all instructions, documentation, and operational guidance in AGENTS.md as the single source of truth

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-11-29T04:34:42.033Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENT.md:0-0
Timestamp: 2025-11-29T04:34:42.033Z
Learning: Maintain all AI assistant instructions, documentation, and operational guidance in AGENTS.md as the single source of truth

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-12-22T01:24:53.937Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Follow all security protocols and working directory specifications defined in ~/Git/aidevops/AGENTS.md

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-12-22T01:24:53.937Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Reference the authoritative repository at ~/Git/aidevops/ for all detailed AI assistant instructions and configurations

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2025-12-22T01:24:53.937Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Use only the specified working directories: ~/.aidevops/.agent-workspace/work/[project]/ for work files, ~/.aidevops/.agent-workspace/tmp/ for temporary files, and ~/.aidevops/.agent-workspace/memory/ for persistent memory

Applied to files:

  • .agent/AGENTS.md
📚 Learning: 2026-01-06T15:57:56.008Z
Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.008Z
Learning: Applies to **/AGENTS.md : Include code examples in AGENTS.md only when authoritative, otherwise use file:line references

Applied to files:

  • .agent/AGENTS.md
🪛 LanguageTool
.agent/AGENTS.md

[uncategorized] ~260-~260: The official name of this content management system is spelled with a capital “P”.
Context: ...it context display | terminal-title | | tools/wordpress/ | WordPress ecosystem - local dev, fl...

(WORDPRESS)


[uncategorized] ~322-~322: The official name of this content management system is spelled with a capital “P”.
Context: ...ser/playwright.md| | WordPress work |tools/wordpress/wp-dev.md, tools/wordpress/mainwp.md`...

(WORDPRESS)


[uncategorized] ~322-~322: The official name of this content management system is spelled with a capital “P”.
Context: ...ess work | tools/wordpress/wp-dev.md, tools/wordpress/mainwp.md | | SEO analysis | `seo/data...

(WORDPRESS)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (3)
.agent/AGENTS.md (3)

237-268: Excellent progressive disclosure improvement.

The restructured Subagent Folders table with added "Purpose" and "Key Subagents" columns significantly improves navigation and discovery. This directly addresses the learning about using progressive disclosure with pointers to subagents rather than inline content. The table is well-organized and focused.


304-327: Task-domain mapping table effectively strengthens progressive disclosure strategy.

All 19 subagent files referenced in the "When to read subagents" table exist and are correctly located. This table maintains the best practice of keeping the root AGENTS.md focused while directing users to specialized documentation by task domain—aligning perfectly with the progressive disclosure approach outlined in learnings.


267-267: Folder structure verified. .agent/scripts/commands/ exists and contains save-todo.md as documented. The subagent reference in line 267 is accurate and consistent with the codebase.

@marcusquinn marcusquinn merged commit 5261836 into main Jan 9, 2026
12 of 13 checks passed
@marcusquinn marcusquinn deleted the chore/agents-md-progressive-disclosure branch January 11, 2026 05:30
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