TokenCap transforms how you capture, snapshot, and optimize code for LLMs. Built for scale performance, safe layout compression, workspace intelligence, local-first speed, and self-maintaining MCP.
820K raw AST tokens compressed into 14.6K packaged tokens in 82ms.
Sub-2ms IPC queries across Cursor, Claude Code, Windsurf & Cline.
Deep symbol tracing across Rust, Go, Java, Python, and TypeScript.
Full evolutionary path and changelog items for TokenCap CLI.
defineProps / props: / export let) and Angular component analysis without additional WASM grammars.tokencap analyze schema extracts tables and types from CREATE TABLE DDL and GraphQL type blocks, surfacing heuristic code links as evidence candidates.tokencap analyze taint tracks intra-procedural JS/TS data flow from user-input sources to dangerous sinks (SQL / exec / fs) with sanitizer modeling.dist/; the published npm package no longer requires src/.tokencap refactor rename) and uncalled dead code removal (tokencap refactor rm-dead) with byte-exact transform guarantees outside target ranges.tokencap analyze tests statically associates tests with exercised symbols, while --gaps identifies called-but-untested functions.lcov or Istanbul JSON reports (tokencap analyze tests --coverage <path>) annotating symbol-level line ranges without executing test suites.tokencap feedback record|report) with explicit telemetry: false.tokencap_refactor_plan and tokencap_test_map provide dry-run refactoring previews and static test associations over MCP.tokencap analyze review and tokencap_review MCP tool compile bounded review packets with base-ref symbol evidence, caller candidates, test associations, and Constitution/ADR context.tokencap analyze ownership --history and tokencap_ownership surface local Git churn, contributor distributions, and bounded co-change signals strictly as advisory context.tokencap mcp --init --client <host> records one selected host, and subsequent builds write only that host's entry point without overwriting existing files.tokencap.diff VS Code command and CLI diff intelligence for faster advisory reviews..tokencap/; never posts to Git providers, assigns PR reviewers, or creates commits.tokencap analyze simplify and tokencap_simplify report high-confidence unreachable code, duplicate artifacts, and review candidates without recommending automatic deletion..tokencap/debt/ledger.json and .tokencap/debt/TOKENCAP-DEBT.md, monitoring TODO/FIXME/HACK/DEBT markers and stable first-seen dates.tokencap stats --share, and VS Code shows saved tokens.tokencap compress <file> is now a dry-run by default, displaying a bounded diff and token savings before modifying any codebase files.tokencap compress <file> uses property-tested preserve rules to shrink generated Markdown formatting while guaranteeing code blocks stay 100% byte-exact.tokencap) and OpenAI Codex (tokencap-context).tokencap make, tokencap ask, tokencap ask brain, tokencap analyze diff, tokencap analyze constitution, tokencap analyze agent, tokencap security scan, tokencap security audit, tokencap mcp, tokencap debug..tokencap-notes.md and .tokencap-debug.md files directly from Git commit history and codebase structure..tokencap/savings.json on every build.js-tiktoken counting.AGENTS.md, CLAUDE.md, .cursor/rules/tokencap.md, .windsurf/rules/tokencap.md, .clinerules/tokencap.md, .github/copilot-instructions.md, and .kiro/steering/tokencap.md.tokencap scan (entropy & regex secret scanning), tokencap audit (security verification), and tokencap upgrade CLI utilities.--no-pointers Flag — Skip multi-host pointer creation when custom configuration management is preferred.Calculate exact token and dollar savings in real-time. Verified 12.2× average reduction (94.3% cost savings) with exact tiktoken counting.
Auto-wires non-overwriting pointer files for AGENTS.md, CLAUDE.md, Cursor, Windsurf, Cline, Copilot, and Kiro seamlessly.
Query repository intelligence live over stdio MCP (12 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.