Skip to content

Explore ​

Package: elsai-codegraph  v1.6.2

elsai_codegraph_explore is the one tool an agent calls. It takes a question or a symbol name and returns:

  • the relevant source, verbatim and line-numbered
  • the call path between the symbols
  • a blast-radius list of what depends on them

Lookup is by symbol name and graph links. There is no embedding step and no model call inside the graph. The agent's own model writes the final answer from that context.

From the command line ​

bash
docker run --rm -v /path/to/repos:/repos \
  elsai-codegraph explore -p /repos/helpdesk \
  "If I change ClassifierModel.classify, which functions and endpoints are affected?"

The top of the result names the callers. For that question they are classify() and POST /classify in services/classifier_service/main.py, with the call chain back to ClassifierModel.classify.

Name the symbol, the class, or the file. A vague question returns a wider set of matches and often needs a second call.

From an agent ​

The same call is the MCP tool elsai_codegraph_explore. With one repository and --path set, the agent does not pass a project path. With several repositories, every call includes projectPath. See Connect an agent.

Copyright © 2026 elsai foundry.