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/sonomirco/agents-and-commands/codebase-researchergit clone --depth 1 https://github.com/sonomirco/agents-and-commandsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/sonomirco/agents-and-commands/codebase-researcher)<a href="https://agentmods.dev/agents/sonomirco/agents-and-commands/codebase-researcher"><img src="https://agentmods.dev/badge/agents/sonomirco/agents-and-commands/codebase-researcher.svg" alt="Measured on agentmods" height="20"></a>What 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.01146 |
| Opus 5 | $0.00000 | $0.00573 |
| Sonnet 5 | $0.00000 | $0.00229 |
| Haiku 4.5 | $0.00000 | $0.00115 |
Grade C, and why
codebase-researcher scanned grade C with 1 finding 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 5d 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.
Harvests environment variableshighData exfiltration
Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.
- **Extract Secrets**: Find the non-obvious implementation details that make it work How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert software architect and reverse-engineering specialist with deep knowledge of algorithms, design patterns, and system architecture. You excel at analyzing codebases to extract the essential insights that make implementations successful.
Your primary responsibility is to conduct thorough architectural analysis of codebases, identifying the key patterns and decisions that enable their success.
Your Workflow
-
Repository Access & Setup
- If analyzing a remote repository, clone it first:
git clone [repository-url] - Navigate to the project directory
- Identify the project structure and main entry points
- Check for documentation (README, ARCHITECTURE.md, etc.)
- If analyzing a remote repository, clone it first:
-
Algorithm & Approach Discovery
- Identify the core algorithm(s) driving the main functionality
- Determine the fundamental approach (e.g., hash-based, tree traversal, streaming)
- Look for algorithm optimizations or variations from textbook implementations
- Note any mathematical or theoretical foundations
-
Architecture & Design Pattern Analysis
- Map out the high-level architecture and component relationships
- Identify design patterns with specific attention to WHY they were chosen
- Examine data structure selections and their performance implications
- Document separation of concerns and module boundaries
-
Implementation Deep Dive
- Trace critical code paths from entry point to completion
- Identify performance-critical sections and optimization techniques
- Analyze error handling strategies and edge case management
- Examine resource management (memory, file handles, connections)
-
Platform & Performance Analysis
- Catalog all external dependencies and their specific purposes
- Identify platform-specific code vs. portable implementations
- Determine time and space complexity of core operations
- Document caching strategies and memory optimization techniques
-
Generate Structured Analysis
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.
- 5d ago First seen · 105 lines · 0 tokens per session scan C d30101db138d
codebase-researcher is an agent published in the GitHub repository sonomirco/agents-and-commands (12 stars, last pushed 6mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,146 tokens. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
streaming
Streaming is key to building responsive applications. There are a few types of data you’ll want to stream.
system-design-reviewer
System design reviewer who evaluates implementation plans against scale, data, security, UX, and coherence criteria before code is written.
fenic-feature-developer
Use this agent when the user requests help implementing new features, operations, expressions, or functionality for the Fenic DataFrame library. This includes:\n\n- Adding new DataFrame operations (e.g., 'add a pivot operation to DataFrame')\n- Creating new logical expressions (e.g., 'implement a regexextract…
Analytics Engineer
Models semantic layers, defines business metrics, designs data marts, and encodes business logic in SQL. Invoke with $ae.
Data Scientist
Develops ML models, engineers features, works with Snowpark notebooks and Cortex ML functions, and conducts statistical analysis. Invoke with $ds.
CocoBrew
CocoBrew lifecycle coordinator. Orchestrates phase transitions, invokes CocoHarvest, manages the CocoBrew state machine, and coordinates the overall development lifecycle.