DGC v0.41.1 is out
Navigate
Install DGC
DGC v0.41.1Edit on GitHub ↗
Features/Code intelligence

symbols, definitions, references, and a repo map

Code intelligence

#

Two native tools help the agent find its way around a project without a lock-in to one editor language server.

repo_map

#

A compact inventory: tracked and source files, sizes, SHA-256 prefixes, and language-aware symbol definitions. The agent uses it near the start of unfamiliar multi-file work. Optional path narrows the tree; max_files defaults to 300 (at most 1,000).

code_intel

#

Find symbols, exact definitions or references, or syntax diagnostics.

  • operation: symbols · definition · references · diagnostics
  • path: file or directory (default: project root)
  • symbol, or line / column (1-based) when the symbol is omitted

A bounded built-in static analyzer is always available. Configure a stdio language server for richer results; DGC confines returned paths to the project and reuses up to four project/spec sessions with serialized queries and idle cleanup.

{
  "language_servers": {
    "python": {"command": "pyright-langserver", "args": ["--stdio"]}
  }
}

Key by language (python) or extension (.py). Servers get a minimal environment, no shell. Default idle is 120 seconds; set code_intel_lsp_idle_s to 0 for one-shot isolation. code_intel_timeout bounds a query. Approved external-file queries always run one-shot.

Prefer code_intel over a broad grep for navigation. Returned locations never escape the project.

Documentation