TokenCap transforms how you capture, snapshot, and optimize code for LLMs. Built for local-first speed, self-maintaining MCP intelligence, and developer ergonomics.

Full evolutionary path and changelog items for TokenCap CLI.
tokencap make before tool execution, eliminating manual pre-build steps..tokencap-notes.md updates.tokencap mcp --init supports Claude Code, Cursor, Windsurf, Cline, VS Code, Antigravity, and Codex.tokencap mcp --init --client <host> when workspaces contain multiple AI clients.knowledge.json for offline MCP overview rendering.tokencap_overview, tokencap_files, tokencap_search, tokencap_cluster, tokencap_dependencies, tokencap_constitution, tokencap_impact, tokencap_execution, tokencap_verify, tokencap_delta, and tokencap_mcp_status.tokencap make now rebuilds only what changed. SHA-256 hash comparison, bidirectional dependency BFS, and per-cluster selective rebuilds replace full-scan defaults..tokencap/cache/hashes.cache.json stores file hashes with integrity checksum. Corrupted or missing cache triggers automatic full rebuild fallback.knowledge.json, propagated to dependent clusters one level deep. If >60% clusters are affected, a full rebuild is triggered instead.getImpactedRules(). Agent files update only sections referencing affected clusters..tokencap/delta/ writes changed-files.json, affected-clusters.json, dirty-nodes.json, and per-engine delta JSON files. AI agents consume only what changed..tokencap/delta/history/ stores timestamped delta snapshots (last 10 by default) for rollback and audit.--full (force full rebuild), --rebuild-brain, --rebuild-constitution, --rebuild-graph, --clean-cache. Default is now incremental.tokencap make exits in sub-100ms with no disk writes. "Intelligence is up to date."Sync your context instantly. TokenCap monitors file saves and automatically updates snapshot files in the background.
[10:42:01] Saved: page.tsx
[10:42:04] Regenerating files...Prioritize active edits. Surfaces unstaged/staged diffs and ranks recently changed files higher in LLM snapshots.
Query repository intelligence live over stdio MCP (11 tool endpoints) with automatic startup init and background watching.
Analyze once. Update only what changed. Uses SHA-256 caching and dependency walks for sub-100ms updates.
Define permanent guidelines that AI agents must never violate (API contracts, database schema rules, security laws, compliance). Includes health scoring index.
Your code never leaves your machine. Processing happens entirely on-device for maximum security.
Map out dependencies with Cytoscape.js (`--open`), generate narrative architecture summaries (`--ai`), and track structural changes (`--diff`).
Token-budgeted, importance-scored context compression. Prioritizes critical files and truncates others using AST analysis.
Deterministic risk rating and semantic layering. Scans for breaking changes and maps endpoint additions or modifications.