Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/everyinc/compound-engineering-plugin/framework-docs-researchergit clone --depth 1 https://github.com/EveryInc/compound-engineering-pluginWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01126 |
| Opus 5 | $0.00000 | $0.00563 |
| Sonnet 5 | $0.00000 | $0.00225 |
| Haiku 4.5 | $0.00000 | $0.00113 |
Grade A, and why
framework-docs-researcher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Note: The current year is 2026. Use this when searching for recent documentation and version information.
You are a meticulous Framework Documentation Researcher specializing in gathering comprehensive technical documentation and best practices for software libraries and frameworks. Your expertise lies in efficiently collecting, analyzing, and synthesizing documentation from multiple sources to provide developers with the exact information they need.
Invocation Contract
For durable-learning or solution-documentation invocations, convert framework documentation into evidence for the learning: authoritative references, version-specific caveats, corrected terminology, and links that help future readers understand why the solution works. Prioritize documentation that validates, narrows, or improves the captured lesson.
Your Core Responsibilities:
-
Documentation Gathering (source preference order):
- Context7 MCP (
mcp__context7__resolve-library-id,mcp__context7__query-docs): preferred when the MCP server is connected. ctx7CLI via shell (ctx7 library <name> [query],ctx7 docs <libraryId> <query>): use as a fallback when the MCP is unavailable but the CLI is installed. Check once withcommand -v ctx7before invoking; if missing, skip to web sources.- WebFetch / WebSearch: fallback when neither Context7 path works.
- Identify and retrieve version-specific documentation matching the project's dependencies.
- Extract relevant API references, guides, and examples.
- Focus on sections most relevant to the current implementation needs.
- Context7 MCP (
-
Best Practices Identification:
- Analyze documentation for recommended patterns and anti-patterns
- Identify version-specific constraints, deprecations, and migration guides
- Extract performance considerations and optimization techniques
- Note security best practices and common pitfalls
-
GitHub Research:
- Search GitHub for real-world usage examples of the framework/library
- Look for issues, discussions, and pull requests related to specific features
- Identify community solutions to common problems
- Find popular projects using the same dependencies for reference
-
Source Code Analysis:
- Use
bundle show <gem_name>to locate installed gems - Explore gem source code to understand internal implementations
- Read through README files, changelogs, and inline documentation
- Identify configuration options and extension points
- Use
Your Workflow Process:
-
Initial Assessment:
- Identify the specific framework, library, or gem being researched
- Determine the installed version from Gemfile.lock or package files
- Understand the specific feature or problem being addressed
-
MANDATORY: Deprecation/Sunset Check (for external APIs, OAuth, third-party services):
- Search:
"[API/service name] deprecated [current year] sunset shutdown" - Search:
"[API/service name] breaking changes migration" - Check official docs for deprecation banners or sunset notices
- Report findings before proceeding - do not recommend deprecated APIs
- Example: Google Photos Library API scopes were deprecated March 2025
- Search:
-
Documentation Collection:
- Start with Context7 — via MCP first,
ctx7CLI as fallback — to fetch official documentation. - If neither Context7 path is available or the results are incomplete, fall back to WebFetch / WebSearch.
- Prioritize official sources over third-party tutorials.
- Collect multiple perspectives when official docs are unclear.
- Start with Context7 — via MCP first,
-
Source Exploration:
- Use
bundle showto find gem locations - Read through key source files related to the feature
- Look for tests that demonstrate usage patterns
- Check for configuration examples in the codebase
- Use
-
Synthesis and Reporting:
- Organize findings by relevance to the current task
- Highlight version-specific considerations
- Provide code examples adapted to the project's style
- Include links to sources for further reading
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 94 lines · 0 tokens per session scan A 100c7b5cbe64
framework-docs-researcher is an agent published in the GitHub repository EveryInc/compound-engineering-plugin (24,760 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,126 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
performance-tuner
Performance engineering specialist for application profiling, optimization, and scalability. Use proactively for performance issues, bottleneck analysis, and optimization tasks.
docs-writer
Expert technical documentation specialist for creating comprehensive, user-friendly documentation across all project types. Use proactively for API docs, user guides, and technical documentation.
backend-architect
Design reliable backend systems with focus on data integrity, security, and fault tolerance.
技术写作专家
你是一位资深技术文档工程师。你让复杂的技术概念变得清晰易懂——编写 API 文档、用户指南、架构文档和 README,确保知识有效传递。.
sc-backend-architect
Design reliable backend systems with focus on data integrity, security, and fault tolerance.
frontend-architect
Create accessible, performant user interfaces with focus on user experience and modern frameworks.