{"slug": "show-hn-cdx-code-booster-cut-claude-code-and-cursor-token-burn-via-ast-mcp", "title": "Show HN: CDX Code Booster – Cut Claude Code and Cursor Token Burn via AST/MCP", "summary": "A new tool called CDX Code Booster, distributed via `pip install cdx-code-booster`, claims to cut redundant session context consumption in coding agents by roughly 40%–50% through native AST code slicing, cross-file chain-of-thought anchors, causal log filtering and auto-compacting local memory, according to the project's own internal benchmark. The tool configures official MCP endpoints across Claude Code, Cursor, VS Code, OpenAI Codex CLI and Google Antigravity in one command, and reports input token reductions of about 65%–92% for its `cdx_smart_file_read` MCP tool and 70%–96% for `cdx_slim_log`. CDX Code Booster runs entirely on the user's machine, compiled into native Cython binaries, and sends 0 bytes to external clouds.", "body_md": "# \n                Local AST Context Optimization\n\n                & Cross-Agent Shared Memory.\n            \n\n                Connect **Claude Code · Cursor · VS Code · OpenAI Codex CLI · Google Antigravity** in one command.\n                Native AST code slicing, Cross-File CoT Anchors, causal log filtering, and auto-compacting local memory reduce redundant session context consumption by ~40%–50% *(Internal Benchmark; varies by codebase and prompt pattern)* — 100% on your machine.\n            \n\n```\npip install cdx-code-booster && cdx-code-booster --install\n```\n\n## 3 Ultra-Lean Native Engines, Zero Schema Bloat\n\n0ms prompt hook overhead, zero background indexers, and 0 bytes sent to external clouds — compiled into native Cython (.pyd/.so) binaries.\n\n### 1. AST Smart Reader + CoT Anchor\n\nSlices exact target classes/functions instead of loading entire files, and pins both intra-file and cross-file imported symbol line numbers to eliminate speculative CoT loops.\n\n### 2. Polyglot Error Log Slimmer\n\nStrips repetitive CI/compiler progress noise and separates external site-packages and node_modules frames so your exact project fault line appears first.\n\n### 3. Auto-Tidy 5-IDE Memory Relay\n\nHit a 5-hour session cap in Claude Code? Switch immediately to Cursor, VS Code, Codex CLI, or Antigravity with an auto-deduplicated Top-9 handoff brief that supersedes stale drafts and quarantines reverted dead-ends.\n\n## Seamless 5-IDE Native Configuration\n\nOne command configures official MCP endpoints and always-on quota-saving rules across all five primary coding environments.\n\n```\n# Verify Claude Code integration & live token savings\ncdx-code-booster --stats\n# Generated bundle: ~/.cdx_code_booster/claude-code-plugin/.mcp.json + CLAUDE.md\n```\n\n## Payload Architecture: Raw Injection vs. AST Surgical Extraction\n\nStandardized payload comparison on representative engineering tasks (Internal Benchmark). Operates identically across cloud subscriptions, API keys, and local LLM runtimes.\n\n## Exposed MCP Tool Reference\n\n| MCP Tool Identifier | Core Capability | Measured Reduction (Internal Benchmark) | \n|---|---|---|\n| `cdx_smart_file_read` | AST symbol map, targeted slices, and intra/cross-file CoT call coordinates | ~65% to 92% input token reduction | \n| `cdx_slim_log` | CI/compiler log deduplication and project fault frame pinning above library noise | ~70% to 96% log token reduction | \n| `cdx_agent_memory` | Auto-compacting shared memory across Claude Code, Cursor, VS Code, Codex CLI & Antigravity (topic deduplication & obsolete dead-end pruning) | Top-9 brief eliminates stale re-briefing overhead | \n\n## Practical Usage Guide & Cross-Agent Relay Examples\n\nAfter running `cdx-code-booster --install`, installed rules trigger AST slicing and log filtering automatically. For cross-agent handoffs or targeted reads, simply ask in plain English or run CLI commands.\n\n### 1. Save State Before Switching\n\nWhen hitting a 5-hour cap or switching from Claude Code to Cursor/VS Code/Codex, ask the current agent to checkpoint your progress:\n\n```\nSave our current auth refactor summary and remaining TODOs to CDX memory under project 'checkout-api'.\n```\n\n### 2. Quarantine Reverted Attempts\n\nIf an experiment failed or was rolled back, mark it `obsolete` so the next agent never wastes quota repeating it:\n\n```\nSave an obsolete note to CDX memory for 'checkout-api': [reverted] Redis lock caused timeout under load.\n```\n\n### 3. Pick Up Instantly in Next IDE\n\nOpen Cursor, VS Code, Codex CLI, or Antigravity and resume with one sentence — stale drafts and obsolete notes are filtered out:\n\n```\nRecall CDX memory for project 'checkout-api' and continue implementing the remaining TODOs.\n# 1. Targeted AST Read & Log Slimming (Automatic via installed rules, or ask explicitly in chat):\n#    Chat prompt: \"Use CDX smart file read on src/OrderWorkspace.tsx for symbol 'handleConfirmRefund'\"\n#    Chat prompt: \"Run pytest and pass any failure output through CDX slim log\"\n\n# 2. Initialize project-scoped MCP configs (.mcp.json, .github/copilot-instructions.md, .cursor/rules, .codex):\ncdx-code-booster --init-project .\n\n# 3. Inspect live subscription status & cumulative local token savings ledger:\ncdx-code-booster --stats\n\n# 4. Manually compact & deduplicate shared memory vault (or export portable JSON pack):\ncdx-code-booster --consolidate-memory --project checkout-api\ncdx-code-booster --export-team-memory .cdx/team_memory.json --project checkout-api\n\n# 5. Optional — Use a custom local storage folder across all 5 IDEs (local SSD recommended):\ncdx-code-booster --install --data-dir \"/path/to/custom_booster_vault\"\n\n# 6. Activate Pro license key ONCE (1+1 Limit: 1 desktop + 1 laptop; use --deactivate when replacing PC):\ncdx-code-booster --activate CDXCB1.<payload>.<signature>\n```\n\n## Technical Specifications, Authentication & Storage Architecture\n\nEverything runs 100% locally inside a pre-compiled native binary (`.pyd` / `.so`) with zero cloud proxies, zero background indexers, and zero third-party credential access.\n\n### 1 Key Unlocks All IDEs — Zero AI Credentials Needed\n\nKeep using your existing Claude, OpenAI, Cursor, or Google logins untouched — CDX never requests your LLM API keys or OAuth tokens. Running `--activate` **once per machine** saves an offline Ed25519 signature key shared automatically across every connected coding tool.\n\n### User-Selectable Storage Folder (`--data-dir`)\n\nDefaults to `~/.cdx_code_booster/` (SQLite WAL), or point all IDEs to any local drive or encrypted volume via `cdx-code-booster --install --data-dir <PATH>` or `CDX_CODE_BOOSTER_DIR`. *(Use local disks rather than live OneDrive/Dropbox sync folders; use JSON packs for multi-PC transfer.)*\n\n### Supported Languages & Parser Depth\n\nDeep symbol & call-graph extraction for **Python** (`ast`), **TypeScript / JavaScript / React** (`.ts`, `.tsx`, `.jsx` hooks, `memo(forwardRef)`, inner `useCallback`, JSX `<Component />` graph), **Go, Rust, C/C++, and Java**, plus automatic minified/binary file protection.\n\n### OS Runtimes & Wider Editor Compatibility\n\nPre-built native wheels for **macOS** (Apple Silicon & Intel), **Linux** (`x86_64` & `ARM64`), and **Windows x64** on **Python 3.10–3.13**. 1-command auto-setup for **Claude Code, Cursor, VS Code (Copilot), Codex CLI & Antigravity**, plus standard `stdio` MCP support for **Cline, Orca, Windsurf & Zed**.\n\n## Simple Plans & Zero-Downtime Guarantee\n\nStart instantly with 30 days of full access — no credit card or signup required. Post-trial sessions gracefully switch to Safe Pass-Through without interrupting your workflow.\n\n**[Open Beta Notice · Online Self-Serve Billing Coming Soon]** All features are immediately available via our\n\n**30-Day Free Local Trial (**. Automated online card checkout ($5/mo Launch Promo) is currently in preparation; for early commercial\n\n`pip install cdx-code-booster`, no credit card or signup required)` CDXCB1.*` license inquiries, contact [support@cdxengine.com](mailto:support@cdxengine.com).\n\n### 30-Day Full Trial\n\n- Instant start — zero signup or API key\n- AST smart code slicing & CoT Anchors\n- Polyglot CI & error log slimming\n- 5-IDE shared memory relay (isolated per project)\n\n[Install via pip](#quickstart)\n\n### Safe Pass-Through\n\n- Automatic graceful fallback on Day 31\n- Zero workflow errors or hard lockouts\n- Up to 25 shared memory notes retained\n- Offline license activation anytime\n\n[Included](#quickstart)\n\n### Pro (Single-Developer License)\n\n**$9/mo** from Month 4 · or\n\n**$59 first yr**($4.92/mo equiv., then $79/yr) · Cancel anytime\n\n- AST code slicing & Cross-File CoT Anchors\n- Polyglot CI & error log slimming\n- 5-IDE shared memory relay (isolated per project)\n- 1+1 Personal Device Limit (1 desktop + 1 laptop)\n\n                Need enterprise PII masking (BYOS Cloak) and server-grade multi-agent middleware? [Explore CDX Agent Dock v2.1 →](dock_en.html)\n\n## Frequently Asked Questions\n\nKey operational details on authentication, data privacy, custom storage directories, and multi-editor compatibility.\n\n### Do I have to authenticate separately in each AI tool or enter my LLM API keys?\n\nNo. Your existing subscriptions in Claude Code, Cursor, Codex CLI, and Antigravity stay untouched, and CDX never asks for your LLM API keys. During the 30-day trial, zero activation is needed; when upgrading to Pro, running `cdx-code-booster --activate` **once** unlocks all connected IDEs simultaneously.\n\n### Can I choose a custom folder for the shared memory DB and license file?\n\nYes. Run `cdx-code-booster --install --data-dir \"D:/my_vault\"` (or set `CDX_CODE_BOOSTER_DIR`) to store `booster_vault.sqlite` and `license.key` on any local drive or encrypted volume. Avoid placing live SQLite WAL databases directly inside OneDrive/Dropbox/iCloud sync folders; use `--export-team-memory` JSON packs to move notes across machines.\n\n### Does my source code, error log, or shared memory ever leave my computer?\n\nNever. AST parsing, log deduplication, SQLite storage, and Ed25519 license signature verification execute 100% locally with zero outbound network calls or telemetry.\n\n### Can I use my Pro license on both my desktop and my laptop?\n\nYes — up to **2 personal devices (1 + 1: 1 desktop + 1 laptop)** owned by the same developer. Device slots are enforced via anonymous SHA-256 machine fingerprints (zero source code sent); 3rd-device or multi-user key sharing is automatically blocked. Run `cdx-code-booster --deactivate` anytime when replacing a computer.\n\n### What happens on Day 31 if my free trial ends while I am coding?\n\nNothing breaks. Safe Pass-Through activates automatically so MCP tool calls continue returning clean preview slices without errors, while preserving your existing memory vault (up to 25 active notes) until you activate a Pro key.\n\n### Which IDEs are auto-configured, and what about Orca or Cline?\n\n`cdx-code-booster --install` auto-configures **Claude Code, Cursor, VS Code (GitHub Copilot), OpenAI Codex CLI, and Google Antigravity** in one step. Other MCP clients (**Cline, Orca, Windsurf, Zed**) attach via `python -m cdx_code_booster --mcp` ([Developer Docs](booster_docs_en.html#sec-ide-wiring)).\n\n**Performance Metrics & Internal Benchmark Disclaimer** All token reduction ranges (~40%–50% session average; ~65%–96% on individual large files and CI logs) and latencies presented on this page are Internal Benchmark Results measured on standard sample repositories and CI logs. Actual outcomes vary by codebase structure, prompt patterns, and upstream LLM provider policies, and do not constitute a legal warranty of specific numerical results.", "url": "https://wpnews.pro/news/show-hn-cdx-code-booster-cut-claude-code-and-cursor-token-burn-via-ast-mcp", "canonical_source": "https://cdxengine.com/booster_en", "published_at": "2026-11-30 16:42:49+00:00", "updated_at": "2026-11-30 16:46:36.085590+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "agent-protocols", "developer-tools"], "entities": ["CDX Code Booster", "Claude Code", "Cursor", "VS Code", "OpenAI Codex CLI", "Google Antigravity", "MCP"], "also_reported_by": [], "takeaway": "CDX Code Booster installs MCP tools that slice exact AST symbols instead of whole files and deduplicate CI logs, which the project's internal benchmark measures at ~65%–92% input-token reduction for `cdx_smart_file_read` and ~70%–96% for `cdx_slim_log`.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-cdx-code-booster-cut-claude-code-and-cursor-token-burn-via-ast-mcp", "markdown": "https://wpnews.pro/news/show-hn-cdx-code-booster-cut-claude-code-and-cursor-token-burn-via-ast-mcp.md", "text": "https://wpnews.pro/news/show-hn-cdx-code-booster-cut-claude-code-and-cursor-token-burn-via-ast-mcp.txt", "jsonld": "https://wpnews.pro/news/show-hn-cdx-code-booster-cut-claude-code-and-cursor-token-burn-via-ast-mcp.jsonld"}}