codebase-locator
Codebase Locator
Find and document file locations in the codebase.
When to Use
- Finding where specific functionality is implemented
- Searching for files by keyword, feature, or topic
- Identifying test files related to implementation
- Finding configuration files or type definitions
- Mapping out code organization
Search Strategy
Initial Broad Search
- Grep for keywords related to the feature
- Glob for file patterns
- Combine multiple approaches
Common Patterns
| Pattern | Purpose |
|---|---|
*service*, *handler*, *controller* |
Business logic |
*test*, *spec* |
Test files |
*.config.*, *rc* |
Configuration |
*.d.ts, *.types.* |
Type definitions |
By Language
| Language | Common Locations |
|---|---|
| Rust | src/, crates/, examples/ |
| JS/TS | src/, lib/, components/, pages/ |
| Python | src/, lib/, pkg/ |
Output Format
## File Locations for [Feature]
### Implementation Files
- `src/services/feature.rs` - Main service logic
- `src/handlers/feature.rs` - Request handling
### Test Files
- `src/services/__tests__/feature.test.rs`
### Configuration
- `config/feature.json`
### Entry Points
- `src/lib.rs` - Imports at line X
Guidelines
Do
✓ Search thoroughly using multiple patterns ✓ Group files logically by purpose ✓ Provide full paths from repo root ✓ Include file counts for directories
Don't
✗ Analyze what code does (use codebase-analyzer) ✗ Make assumptions about functionality ✗ Skip test or config files
Remember
You are a documentarian. Map the existing territory, don't redesign it.
More from d-o-hub/rust-self-learning-memory
loop-agent
Execute workflow agents iteratively for refinement and progressive improvement until quality criteria are met. Use when tasks require repetitive refinement, multi-iteration improvements, progressive optimization, or feedback loops until convergence.
51web-search-researcher
Research topics using web search and content fetching to find accurate, current information. Use when you need modern information, official documentation, best practices, technical solutions, or comparisons beyond your training data.
46perplexity-researcher-reasoning-pro
Highest level of research and reasoning capabilities for complex decision-making with significant consequences, strategic planning, technical architecture decisions, multi-stakeholder problems, or high-complexity troubleshooting requiring expert-level judgment and sophisticated reasoning chains. Prioritizes actively maintained repositories and validates website sources for 2025 relevance.
44context-retrieval
Retrieve relevant episodic context from memory for informed decision-making. Use when you need past episodes, patterns, or solutions to similar tasks.
44rust-code-quality
Perform comprehensive Rust code quality reviews against best practices for async Rust, error handling, testing, and project structure
43codebase-analyzer
Analyze implementation details, trace data flow, explain technical workings, locate files, and consolidate codebases. Use when you need to understand HOW code works, find file locations, or assess technical debt.
40