Skip to content

Enable Deep Mode

By default, graft build uses tree-sitter for deterministic, model-free structural parsing. The --deep flag adds a second pass that uses an LLM to generate richer summaries.

Feature Standard build Deep build
File structure & symbols
Call graph & dependencies
Per-symbol one-line summaries
Concept nodes
“Crux” architectural insights
  1. Set your LLM provider credentials

    Terminal window
    export GRAFT_PROVIDER=openai # or anthropic, ollama, openrouter, google
    export GRAFT_API_KEY=your-key

    See Configure Providers for all supported providers.

  2. Run the deep build

    Terminal window
    graft build --deep

    The first deep build summarizes every source file, then groups summaries into curated nodes. Results are cached by content hash — subsequent builds only re-process changed files.