What You Can Ask
Your agent chooses the entire-graph command that matches your question.What Happens After You Ask
For a task that requires finding code, your agent starts with an entire-graph query to narrow its investigation. It then reads the source around the most relevant results and uses follow-up entire-graph queries when it needs to trace relationships or assess impact. entire-graph returns evidence for your agent to check, not a final conclusion. Your agent should verify the results against the source and run a focused test before completing a change. The agent guide directs agents to query the committed-tree cache (--head) for speed and to drop --head only when the answer depends on uncommitted edits; when you run the interactive commands yourself, they read the working tree by default.
Example
In thegorilla/mux repository, you could ask:
Example result
Where route matching happensRouter.Match(mux.go:151-182) checks each registered route, builds the middleware chain, and handles not-found and method-not-allowed results.Route.Match(route.go:47-114) evaluates the matchers for an individual route and collects route variables.routeRegexp.Match(regexp.go:189-209) checks host, path, and query patterns.
Router.ServeHTTPcallsRouter.Matchfor incoming requests (mux.go:203).Router.MatchcallsRoute.Matchfor each registered route (mux.go:153).- The CORS middleware calls
Route.Matchwhen collecting allowed methods (middleware.go:79).
- Handler selection and middleware execution
- 404 and 405 responses
- Route variables used by handlers
- The
Access-Control-Allow-Methodsheader produced by the CORS middleware
When entire-graph Is Not Needed
entire-graph is for finding code and tracing relationships. For literal text — config keys, environment-variable names, log strings, file names — the agent guide directs agents to use plain text search instead. A task that names the exact file still gets a graph query, because a named file answers where code is, not what else depends on it.Run entire-graph Directly
You can also run entire-graph commands yourself for manual inspection, debugging, or automation. See the entire-graph CLI reference for commands and options.Continue With
Install and Enable entire-graph
Install entire-graph and add its instructions to a repository.
How entire-graph Works
Learn what entire-graph analyzes and where its results have limits.
entire-graph CLI Reference
Review entire-graph commands and options.
entire-graph Troubleshooting
Fix installation, adoption, cache, and coverage problems.