ACDD Index๐
ACDD Index (crates/acdd-index) replaces noisy text grepping with an incremental SQLite code & documentation graph stored in .acdd/code-map.sqlite.
How the indexer works๐
- Discovery & path confinement: Walks admitted
roots:anddocs:fromacdd.yaml, skippingignore:entries (target,node_modules,.git,.acdd, etc.) and enforcing symlink-safe workspace confinement. - Tree-sitter AST extraction: Parses source files across 11 default languages (and 8 Tier-2 languages with
--features all-languages) to extract declarations, imports, calls, inheritance, and test relationships. Mixed template languages (HTML, Vue, Jinja/Django) pass throughTemplateMaskerso directive spans ({% ... %},{{ ... }}) are masked byte-for-byte without shifting line numbers. - Cross-file linking & framework packs: Resolves relative imports, type-aliased Python/TS paths, and method receivers using language-specific linkers plus declarative
FrameworkManifestpacks (Django, HTMX, Alpine, Nuxt/Vue/Pinia, GridViewSpec). - Documentation BM25 & code linking: Splits Markdown/MDX under
docs:at##/###headings into BM25-searchable sections (search_docs,get_doc), resolving code claims andINV-*invariants into verifiedgovernsedges visible incode_map_inspectandcode_map_explain. - Auto-refresh & digest verification:
- Over MCP (
acdd serve), every request validates workspace identity andadapter.digest, automatically triggering incrementaldeltaor fullbuildwhen files or config change (reusing a valid inventory check for up to 5 seconds on warm calls). acdd_read(selector=...)verifies the indexed SHA-256 digest before returning symbol bodies.- CLI commands trigger
open_or_rebuildif the index is missing or schema-mismatched, whileacdd deltaupdates only modified/deleted paths.
- Over MCP (
- Linked Workspaces: Add shared libraries under
linked_workspaces:inacdd.yaml(with per-reporoots,docs,ignore) so cross-repository imports and docs resolve cleanly while tracking coverage separately (coverage_by_workspace).
Pages in this section๐
- acdd.yaml Configuration & Limits โ Full schema for
roots,docs,specs,linked_workspaces,sensitive,modules,response, plus operational limits & freshness guarantees. - Languages & Coverage โ Compiled default & Tier-2 language profiles, static extraction scope, and receiver resolution.
- Framework Manifests & Workspace Packs โ Bundled framework packs, overriding or disabling rules in
.acdd/frameworks/, and verifying resolved edges.