Workflow · AI agent code search workflow
AI agent code search workflow
Use an AI agent to search a codebase with ripgrep, file maps and evidence before changing implementation.
Quick answer
An AI code search workflow starts with fast text search, then verifies call sites, ownership boundaries and tests before proposing a change.
Workflow
Search symbols with ripgrep, open the narrowest files, trace callers, check tests and summarize the evidence before editing.
Risk check
The common failure is editing the first matching file without proving it is the path used by the product.
FAQ
Why should agents search before editing?
Because modern repos often contain old paths, duplicated helpers and generated files that look relevant but are not active.