CodePulse – token-efficient codebase indexer for AI coding tools CodePulse has launched a token-efficient codebase indexer that reduces AI coding tool token consumption by up to 87% by replacing the need for AI assistants to explore repositories during new sessions. The tool maintains a persistent, git-diff-aware index that injects a compact snapshot of repo structure, exported symbols, and import graphs at session start, eliminating the typical 10-30 file reads per session. CodePulse works with Claude Code, OpenAI Codex CLI, Cursor, and Continue.dev, and its token savings translate to monthly cost reductions of up to $90 per developer at current API pricing. Token-efficient codebase indexing for AI coding tools. AI assistants waste 60–80% of their token budget exploring your repo on every new conversation. CodePulse maintains a persistent, git-diff-aware index and injects a compact snapshot — repo structure, exported symbols, import graph — at session start. Works with Claude Code skill , OpenAI Codex CLI pipe or AGENTS.md , Cursor/Continue.dev MCP server , and any tool that can consume CLI output. Without CodePulse, an AI assistant typically reads 10–30 files per session just to understand your repo before it can help. With CodePulse, it gets a pre-built snapshot instead — no exploration needed. | Repo Size | Without CodePulse | With CodePulse | Saved | |---|---|---|---| | Small < 5k lines | ~8,000 tokens | ~2,000 tokens | ~75% | | Medium 5k–50k lines | ~25,000 tokens | ~4,000 tokens | ~84% | | Large 50k+ lines | ~60,000 tokens | ~8,000 tokens | ~87% | Estimates based on typical file-read patterns. Actual savings vary by repo structure and session type. Use codepulse context --budget to tune the snapshot size. At current API pricing Claude Sonnet ~$3/MTok input , saving 20,000 tokens per session adds up fast across a team: | Sessions/day | Tokens saved/day | Monthly savings per developer | |---|---|---| | 5 | 100,000 | ~$9 | | 20 | 400,000 | ~$36 | | 50 | 1,000,000 | ~$90 | Beyond cost, fewer tokens spent on exploration means faster responses and more of the context window available for actual work. npm install -g @aicodepulse/cli In your repo: build the index one-time codepulse init Emit context into any AI session codepulse context Keep it fresh after commits codepulse update In Claude Code: install the skill, then type /codepulse at the start of a session. There are three ways to use CodePulse depending on your AI tool. Pick the one that fits your workflow. Install and index your repo: npm install -g @aicodepulse/cli cd your-project codepulse init Pipe context into any AI session: codepulse context --format markdown Keep the index up to date: codepulse update incremental fast codepulse watch auto-update on file changes codepulse install-hooks auto-update after every git commit recommended - Copy skill/codepulse/ into your project's .claude/skills/ directory - Run codepulse init in your repo once - Type /codepulse at the start of any Claude Code session — it injects a fresh context snapshot automatically For always-on injection without typing the command, add this to .claude/settings.json : { "hooks": { "PreToolUse": { "matcher": ". ", "hooks": { "type": "command", "command": "codepulse context --format xml" } } } } Install the MCP package: npm install -g @aicodepulse/cli @aicodepulse/mcp cd your-project && codepulse init Add to your MCP config e.g. .cursor/mcp.json : { "codepulse": { "command": "codepulse-mcp", "args": } } The MCP server exposes three tools your AI editor can call on demand: get context budget tokens, focus path? — full context snapshot search symbols query — find exported symbols by name get file summary path — symbols, imports, and importers for one file | Command | Description | |---|---| codepulse init | Build the initial full index | codepulse update | Incremental update git-diff-aware | codepulse update --full | Force full re-index | codepulse context | Emit context snapshot default: 4000 tokens, XML | codepulse context --auto | Auto-scale budget by repo complexity | codepulse context --task "description" | Rank files relevant to the task first | codepulse context --budget 8000 | Larger budget for bigger repos | codepulse context --focus src/auth | Deep detail on one subsystem | codepulse context --format markdown | Human-readable output | codepulse search