Using the Explorer Agent for Codebase Discovery
Suppose you’re new to a large codebase and need to find where specific functionality is implemented.1
Ask broad discovery questions
2
Explorer searches efficiently
The Explorer agent:
- Searches file names and paths
- Greps code content for keywords
- Analyzes architectural patterns
- Returns results with file paths and code snippets
3
Refine your search
4
Parallelize complex searches
For comprehensive discovery, Verdent can run multiple Explorer agents in parallel:
- Explorer 1: Find authentication logic
- Explorer 2: Find authorization logic
- Explorer 3: Find session management
Breaking Tasks Into Manageable Chunks
Suppose you’re working on a large codebase and need to add a feature that touches many files.1
Identify natural task boundaries
Instead of requesting everything at once:Focus on one self-contained component first.
2
Complete the phase fully
Work through Phase 1 completely including testing before moving to Phase 2. This creates a clean checkpoint.
3
Commit your progress
4
Clear context for next phase
For complex tasks, clear the context before moving to the next phase. This ensures Verdent has sufficient context capacity to maintain peak performance.Start a new session with fresh context focused only on Phase 2.
Leveraging Plan Mode for Large-Scale Changes
Suppose you need to refactor a feature scattered across dozens of files in a large codebase.1
Start in Plan Mode
2
Use Explorer to find all affected files
3
Review the comprehensive plan
Verdent presents a plan showing:
- All files requiring changes (25 files identified)
- Minimal set of files to include in main context
- Order of operations
- Dependencies between changes
4
Approve execution
Once satisfied with the plan, approve execution. Verdent works through the changes methodically.
Making Coordinated Changes Across Many Files
Suppose you need to rename a function that’s used in 50+ files across a large codebase.1
Use Explorer to find all usages
2
Review the scope in Plan Mode
3
Verify no files are missed
Verdent shows all 52 files requiring updates. Review the list to ensure completeness.
4
Execute coordinated changes
Approve the plan. Verdent updates all files systematically, ensuring consistent renaming everywhere.
5
Run tests to verify
Frequently Asked Questions
How do I know when I'm approaching context limits?
How do I know when I'm approaching context limits?
Signs include slower response times, sessions running for several hours, or many large files loaded. Monitor your session length and file count. When you notice performance degradation, complete your current task, commit your progress, and start a fresh session with clean context.
Is it safe to let Verdent modify dozens of files at once?
Is it safe to let Verdent modify dozens of files at once?
Yes, when used properly. Always use Plan Mode to review the complete scope first, ensure you have comprehensive test coverage, and commit frequently between phases. This allows you to verify changes incrementally and rollback easily if needed.
When should I use the Explorer agent versus loading files directly?
When should I use the Explorer agent versus loading files directly?
Use the Explorer agent for discovery and search tasks without consuming main context. Load files directly with @-mentions only when you need to modify them. Explorer is ideal for “find all files that…” questions, while @-mentions are for “update this specific file” tasks.
Which model preset is best for large codebase work?
Which model preset is best for large codebase work?
Use the Performance preset for complex multi-file operations and refactoring. Use the Efficiency preset for simple searches and discovery tasks. Performance provides more reasoning capability for coordinated changes, while Efficiency is faster and more cost-effective for exploration.