A zero-cost SQLite index built from your code’s AST, document keywords, and
git history. No LLM. No servers. No API keys. 60+ query modes, architecture
visualization, community detection, clone detection, call graph, and more —
in under 3 seconds. The foundation. Always free. Always local.
Intent Engine
Three enforcement domains in one pass: structural (import graphs),
behavioral (Mermaid sequence/flow rules), and documentary (coverage,
staleness, terminology). All at $0 after a one-time LLM extraction step.
Semantic Enrichment (optional)
Selectively apply LLM extraction to the files CARI flags as highest-value.
Budget-controlled, stored in the same SQLite index. Unlocks decision tracking,
diagram validation, and cross-doc contradiction detection.
Knowledge Graph (optional)
Persist to Neo4j for full-scale semantic queries and impact analysis. CypherLite
lets the same queries run against both SQLite and Neo4j — swap backends without
changing code.
The Insights Book shows your architecture, violations grouped by domain
(structural / behavioral / documentary), per-ADR flow diagrams, call graph, and a
living documentation score — all from a single local SQLite file. No LLM, no
servers, no API keys required for steps 1–3.
Auto-infer architectural layers from your import graph. Generate an
interactive HTML report with layered views, community clusters, dependency
trees, vertical slice detection, and optional LLM-generated names — all in
a single shareable file. No similar tool exists for this.
Ranked Retrieval
Find the right files for any topic. CARI combines code structure, document
semantics, and git history into a single ranked score with explanations.
Connections & Gaps
See which entities co-occur in docs, co-change in git, or share code imports
— and where these signals disagree. Disagreement reveals hidden
couplings.
CI Drift Checks
Catch stale documentation before it ships. iw index check detects docs
that reference changed code and reports them as CI warnings.
Diagram Validation
LLM reads ASCII art and Mermaid diagrams in your docs, extracts component
flows, and CARI validates them against the actual import graph. The diagram
in your docs is the architecture spec — no YAML config needed.
Run iw index enrich then iw index arch-check --from-diagrams.
Decision Tracking
Selective LLM extraction finds decisions in your ADRs and docs. CARI checks
which decisions have code grounding and which are unimplemented or stale.
Run iw index enrich --provider openai.
Dead Feature Detection
Combine unused exports, undocumented symbols, and stale files to surface
likely dead features. Three independent signals means fewer false positives.
Plugin Architecture
Install only what you need. Core ships zero-cost. Add LLM capability,
Neo4j persistence, or language support (Swift, Python) as plugins.
iw plugin add llm — done.
Measured on the IntentWeave monorepo (264 code files, 7 docs, 5316 symbols):
Metric
Structured
Full-Depth
Build time
1.1 s
2.8 s
Annotations
6,721
11,533
Grounded (linked to code)
2,548 (38%)
7,360 (64%)
Co-occurrence edges
1,099
2,631
LLM calls
0
0
Index file size
~2 MB
~4 MB
Full-depth mode adds +72% more annotations and +189% more grounded links by scanning
document body text with dictionary matching and IDF-based noise filtering.
Vibe-coding AI agents and busy developers can easily implement against architectural decisions. IntentWeave turns your Architectural Decision Records (ADRs) and conventions into enforceable code constraints—without requiring Neo4j or LLMs in your CI.
Let the diagram be the specification. Extract component flows directly from Mermaid or ASCII diagrams in your markdown files and validate them against actual code imports.
Terminal window
# Validate AST imports against flows found in diagrams
Type safety bypassed: Track down as any casts in high-fan-in (highly depended upon) files.
Terminal window
iwindextype-assertions--kindas_any--risk-sort
Test-intent drift: Detect tests whose descriptions refer to code symbols that no longer exist.
Terminal window
iwindextest-intent--formatjson
These rules run offline in milliseconds and plug straight into CI. Let standard tools review formatting, and let IntentWeave guard the architectural intent.
CARI automatically infers your project’s architectural layers from the import graph and
generates an interactive HTML report — zero cost, zero configuration:
Terminal window
iwindexlayers-infer# infer layers from import topology
iwindexlayers-check# validate imports against layer boundaries
An optional LLM pass names layers (“HTTP Layer”, “Core Types”) and directories (“CLI Subcommands”,
“Pipeline Stages”) with one-sentence architectural descriptions. The report remains
fully functional without this — heuristic labels are used by default.