fast • AI Agent SDK
Fast Context module for rapid parallel code search.
fast
AI Agent
Fast Context module for rapid parallel code search.
This module implements a specialized subagent that retrieves relevant code from a codebase using parallel tool calls, similar to Windsurf’s Fast Context.
Key features:
- Parallel tool execution (up to 8 concurrent calls)
- Limited serial turns (max 4) for fast response
- Restricted tool set (grep, glob, read) for safety
- Returns files + line ranges (no summarization)
Optional optimizations (no performance impact when disabled):
- Ripgrep backend: Use
search_backend='ripgrep'for faster grep - Async file I/O: Uses aiofiles if installed
- Incremental indexing: Use
enable_indexing=True - Context compression: Use
compression='truncate'orcompression='smart'
Import
from praisonaiagents.context import fast