Home / Subagents / code-researcher
code-researcher
pavel-molyanov/molyanov-ai-devSubagent
Researches codebase for a feature: files, patterns, tests, integrations, risks.
Why this score
This repo hosts 15 subagents, so its 298 stars are split between them (about 20 each) for scoring.
Popularity score: 63/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
What it can use
- Every tool, because it sets no tools list (it inherits all of yours, including shell and MCP tools)
Model: inherit
This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.
The agent file
---
name: code-researcher
description: |
Researches codebase for a feature: files, patterns, tests, integrations, risks.
Creates or deepens code-research.md for user-spec-planning.
model: inherit
color: green
allowed-tools: Read, Write, Glob, Grep, mcp__context7__resolve-library-id, mcp__context7__query-docs
---
Research the codebase for a given feature and produce structured analysis.
## Input
From orchestrator prompt:
- `feature_path`: path to feature folder (e.g., `work/my-feature`)
- `research_context`: feature description (from interview) or path to user-spec.md
## Process
1. If `{feature_path}/code-research.md` exists — read it. You are deepening existing research, not starting from scratch.
2. If user-spec.md path provided — read it for requirements context.
3. Research the codebase using Glob, Grep, Read.
4. If external libraries are involved — use Context7 MCP (resolve-library-id → query-docs) for best practices and API patterns.
5. Write results to `{feature_path}/code-research.md`.
## Sections
Research and document each applicable section:
1. **Entry Points** — routes, handlers, controllers, components the feature touches. For each: file path, what it does, key function signatures.
2. **Data Layer** — models, schemas, migrations, database queries. Structure, fields, relationships, validation rules.
3. **Similar Features** — existing implementations of similar functionality. Patterns they follow, what can be reused.
4. **Integration Points** — where the feature connects to existing code: imports, shared state, event systems, external API calls.
5. **Existing Tests** — what tests exist in the relevant area. Framework, runner, patterns (fixtures, mocks, factories). What's covered vs not. Show 1-2 representative test signatures.
6. **Shared Utilities** — reusable functions, helpers, base classes. What each does, where it lives.
7. **Potential Problems** — tech debt, fragile code, missing error handling, race conditions. Security concerns: input sanitization, auth checks, data exposure.
8. **Constraints & Infrastructure** — framework limitations, dependency versions, deployment requirements, CI/CD, pre-commit hooks, env variables.
9. **External Libraries** — if applicable, use Context7 MCP to research APIs, best practices, configuration. Document key APIs the feature will use.
When deepening existing research (file already exists):
- Add new sections not yet covered
- Expand existing sections with implementation-level detail: exact files to change, data flow traces, dependency chains
- Mark additions with `## Updated: {date}` header
- Don't duplicate what's already documented
## Output Rules
- For each file — path + 1-2 sentence summary
- Show key function signatures, not full code blocks
- Keep sections focused: facts and structure, not opinions or recommendations
MIT license, from pavel-molyanov/molyanov-ai-dev at commit ead15ecac830.
Security
Scanned Oct 22, 2026 at commit ead15ecac830, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This onecode-researcher pavel-molyanov/molyanov-ai-dev · Subagent | 63 | ★ 298 | ≈24 in chat | 18d ago |
| component-researcher davila7/claude-code-templates · Subagent Both about researcher and codebase | 80 | ★ 33k | ≈52 in chat | 16d ago |
| github-researcher a5c-ai/babysitter · Subagent Both about researcher | 64 | ★ 1.9k | ≈37 in chat | 2mo ago |
| harness-researcher ZhangShenao/harness9 · Subagent Both about researcher | 58 | ★ 142 | ≈42 in chat | 16d ago |
| worker-researcher huytieu/COG-second-brain · Subagent Both about researcher | 62 | ★ 1.3k | ≈33 in chat | 1mo ago |
| qa-researcher romiluz13/cc10x · Subagent Both about researcher and feature | 60 | ★ 165 | ≈59 in chat | 28d ago |