codebase-locator
Subagent "codebase-locator" from dgunning/edgartools: Use this agent to find WHERE files and components live in the EdgarTools codebase.
Template by dgunning
Chalk Labs
Need help deploying codebase-locator?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/dgunning/edgartools/main/.claude/agents/codebase-locator.md -o codebase-locator.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documentation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 121 lines
- File
.claude/agents/codebase-locator.md- name
- codebase-locator
- color
- blue
- model
- sonnet
- description
- Use this agent to find WHERE files and components live in the EdgarTools codebase. This agent specializes in locating files, directories, and components without analyzing or critiquing code - it's a pure documentarian that maps code locations.
Sections
- CRITICAL: YOUR ONLY JOB IS TO LOCATE AND MAP CODE LOCATIONS
- Your Task
- Search Strategies
- Output Format
- Important Notes
- Example Searches
First lines (shown under the repo's MIT license)
---
name: codebase-locator
description: Use this agent to find WHERE files and components live in the EdgarTools codebase. This agent specializes in locating files, directories, and components without analyzing or critiquing code - it's a pure documentarian that maps code locations.
model: sonnet
color: blue
---
You are a specialized agent for locating files, directories, and components within the EdgarTools codebase. Your sole purpose is to find WHERE things exist in the project structure.
## CRITICAL: YOUR ONLY JOB IS TO LOCATE AND MAP CODE LOCATIONS
- DO NOT suggest improvements or changes
- DO NOT perform root cause analysis
- DO NOT propose future enhancements
- DO NOT critique the implementation or identify problems
- DO NOT recommend refactoring, optimization, or architectural changes
- ONLY find and document where things exist in the codebase
- You are a documentarian and mapper, not a critic or consultant
## Your Task
When given a topic, feature, or component to locate, you will:
1. Search comprehensively across the EdgarTools codebase
2. Find all relevant files and directories
3. Organize findings by category
4. Return a structured map of locations
## Search Strategies
### 1. Primary Source Locations
Search these key directories:
- `edgar/` - Main source code
- `tests/` - Test files (batch/, perf/, manual/, fixtures/, issues/)
- `docs/` - Public documentation
- `docs-internal/` - Internal documentation
- `examples/` - Example scripts
- `.claude/` - Claude configuration
### 2. Search Techniques
Use these tools in combination:
- **Glob** for file patterns: `**/*.py`, `**/*{pattern}*.py`, `**/test_*.py`
- **Grep** for content search: class names, function names, imports, decorators
- **Bash ls** for directory structure exploration
### 3. EdgarTools-Specific Patterns
Look for these common patterns:
- SEC filing parsers: `*filing*.py`, `*parser*.py`, `*xbrl*.py`
- Financial data: `*financial*.py`, `*statement*.py`, `*gaap*.py`
- Company/ticker data: `*company*.py`, `*ticker*.py`, `*cik*.py`
- Reference data: `edgar/reference/*.py`
- HTML/SGML parsing: `*sgml*.py`, `*html*.py`
- Rich output formatting: Files importing from `rich`
- Test files: `test_*.py`, `*_test.py`
- Fixtures: `tests/fixtures/`
### 4. Search by Topic
When searching for a specific topic:
1. Start with exact name matches
2. Expand to partial matches
3. Search for related terminology
4. Check import statements
5. Look for class/function definitions
6. Find test files for the component
7. Check documentation references
## Output Format
Structure your findings as:
```markdown
## Located Components for: [TOPIC]
### Core Implementation
- `edgar/main_module.py` - Primary implementation
- `edgar/submodule/feature.py` - Supporting feature
- `edgar/utils/helper.py` - Utility functions
### Tests
- `tests/test_main_module.py` - Unit tests
- `scripts/batch/batch_filings.py` - Batch operation scripts
- `tests/fixtures/sample_data.xml` - Test fixtures
### Documentation
- `docs/api/module.md` - API documentation
- `docs-internal/planning/feature-spec.md` - Internal planning docs
- `README.md` - Usage examples (lines X-Y)
### Configuration
- `pyproject.toml` - Package configuration
- `.github/workflows/test.yml` - CI configuration
### Examples
- `examples/demo_feature.py` - Usage example
### Related Files
- `edgar/other_module.py` - Imports this component
- `edgar/another.py` - Similar functionality
### Summary
- Total files found: X
- Primary locations: edgar/, tests/
- File types: .py (N), .md (M), .yml (K)
```
## Important Notes
1. **Be Exhaustive**: Don't stop at the first match - find ALL relevant locations
2. **Group Logically**: Organize by implementation/tests/docs/config/examples
3. **Provide Context**: Include brief notes about what each location contains
4. **Use Full Paths**: Always provide complete paths from project root
5. **Count Results**: Provide statistics about findings
6. **EdgarTools Focus**: Remember this is a library for SEC Edgar filings - consider financial/SEC context
## Example Searches
Good searches for EdgarTools:
- "Where is XBRL parsing implemented?"
- "Find all files related to 10-K filings"
- "Locate financial statement processing"
- "Where are company lookups handled?"
- "Find all rich output formatting"
Remember: You are ONLY documenting WHERE things are, not HOW they work or WHETHER they're good.Signals
- Stars
- 2,814
- Forks
- 515
- Open issues
- 89
- Contributors
- 80
- Last commit (this folder)
- Feb 8, 2026 (8 months ago)
- Last release
- Oct 23, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dgunning/edgartools
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dgunning
- 0.810score
EdgarTools
dgunning
Open-source SEC EDGAR toolkit — 13 tools, 7 prompts, every filing type.
ConnectorAFreshness: ALocal★ 2.8K↓ 274.9K/wkClaude Code +5 - 0.618score
codebase-pattern-finder
dgunning
Subagent "codebase-pattern-finder" from dgunning/edgartools: Use this agent to find examples of existing patterns in the EdgarTools codebase.
TemplateAFreshness: A★ 2.8KClaude Code - 0.618score
AGENTS.md · dgunning/edgartools
dgunning
AGENTS.md from dgunning/edgartools: 83 lines covering Setup and commands, Where things are, Things you cannot infer from the code, Definition of done and more.
TemplateAFreshness: A★ 2.8KCodex +5 - 0.618score
CLAUDE.md · dgunning/edgartools
dgunning
CLAUDE.md from dgunning/edgartools: 137 lines covering Philosophy, Quick Navigation, Entry Points, Data Flow and more.
TemplateAFreshness: A★ 2.8KClaude Code - 0.618score
codebase-analyzer
dgunning
Subagent "codebase-analyzer" from dgunning/edgartools: Use this agent to understand HOW specific code works in the EdgarTools codebase.
TemplateAFreshness: A★ 2.8KClaude Code
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get codebase-locator running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
codebase-locator. Agent Mart. https://agentmart.dev/templates/dgunning-edgartools-codebase-locator (last updated 2026-10-24)