--fast-context flag searches your codebase for relevant code and adds it as context to the agentโs prompt.
Quick Start

Usage
Basic Fast Context
Specify Search Path
Combine with Other Features
How It Works
- Query Analysis: Analyzes your prompt to understand what code is relevant
- Codebase Search: Searches the specified directory for matching files
- Relevance Ranking: Ranks files by relevance to your query
- Context Injection: Adds relevant code snippets to the agentโs context
- Enhanced Response: Agent responds with full codebase awareness
Use Cases
Code Explanation
Bug Investigation
Code Review
Feature Planning
Documentation Generation
Search Configuration
File Types Searched
By default, Fast Context searches common code files:Ignored Paths
These directories are automatically excluded:node_modules/venv/,.venv/__pycache__/.git/dist/,build/
Best Practices
Specific Paths
Target specific directories for better relevance
Clear Prompts
Use specific technical terms that match your code
Iterative Search
Start broad, then narrow down to specific modules
Monitor Tokens
Use
--metrics to track context size and costs
