Setup, 5-IDE Memory Relay & Usage Reference
Complete operational guide for installing native wheels on macOS, Linux, and Windows, configuring all 5 official coding environments, handing off tasks seamlessly across agents, and running CLI operations.
1. Installation & Multi-OS Setup (macOS · Linux · Windows)
cdx-code-booster ships pre-compiled native binary wheels (.so / .pyd) for Python 3.10 through 3.13 on macOS (Apple Silicon & Intel), Linux (manylinux_2_17 x86_64 & ARM64), and Windows x64. No C compiler or Language Server daemon is required.
Standard Installation & 5-IDE Registration
pip install cdx-code-booster cdx-code-booster --install
macOS Homebrew & Ubuntu 24.04+ (PEP 668 Externally Managed Python)
If your system Python blocks global pip install under PEP 668, install via uv or pipx:
uv tool install cdx-code-booster && cdx-code-booster --install # Alternative via pipx: pipx install cdx-code-booster && cdx-code-booster --install
Optional: Custom Storage Directory (--data-dir & CDX_CODE_BOOSTER_DIR)
By default, the shared SQLite WAL memory database (booster_vault.sqlite) and offline license file (license.key) live in ~/.cdx_code_booster/. To store them on another local drive or encrypted SSD volume across all IDEs automatically:
cdx-code-booster --install --data-dir "D:/my_booster_vault" # Reset back to default ~/.cdx_code_booster anytime: cdx-code-booster --install --data-dir default
--data-dir on a normal local disk or encrypted local volume. Avoid placing live SQLite files directly inside real-time sync folders (OneDrive, Dropbox, iCloud, Google Drive) to prevent file-locking conflicts; use --export-team-memory JSON packs when syncing notes across machines.
2. How 5-IDE Registration & Automatic Rules Work
Running cdx-code-booster --install registers the stdio MCP server and installs lightweight agent instructions so your coding tools invoke AST slicing and log slimming automatically without manual slash commands:
| Coding Environment | Configured Files (Global & Project) | Automatic Behavior |
|---|---|---|
| Anthropic Claude Code | ~/.cdx_code_booster/claude-code-plugin/Project: .mcp.json + CLAUDE.md |
Calls cdx_smart_file_read before full reads on files >120 lines; slims noisy test logs. |
| Cursor IDE | Global: ~/.cursor/mcp.jsonProject: .cursor/mcp.json + .cursor/rules/cdx-code-booster.mdc |
Always-on .mdc rule routes symbol inspection and cross-agent memory handoffs. |
| VS Code (GitHub Copilot) | Global: ~/.copilot/mcp-config.jsonProject: .mcp.json + .github/copilot-instructions.md |
Registers Copilot Agent Mode MCP tools and repository-scoped AST/log instructions. |
| OpenAI Codex CLI | Global: ~/.codex/config.tomlProject: .codex/cdx_mcp_config.toml + AGENTS.md |
Binds [mcp_servers.cdx_code_booster] over stdio with zero prompt hook latency. |
| Google Antigravity | Global: ~/.gemini/config/plugins/cdx-code-booster/ |
Installs native plugin manifest, MCP config, rules, and cdx-quota-saver skill. |
.mcp.json, .github/copilot-instructions.md, .cursor/rules/cdx-code-booster.mdc, .codex/) directly inside a specific repository, run cdx-code-booster --init-project . from the repo root. For Claude Code CLI user-scope binding, you can also run claude mcp add --scope user cdx-code-booster -- python -m cdx_code_booster --mcp.
Universal Stdio MCP Configuration (Cline, Orca, Windsurf, Zed)
Beyond the 5 auto-registered environments above, any MCP-compatible IDE or multi-agent orchestrator can attach to the same shared SQLite vault and license by adding this standard JSON-RPC 2.0 stdio server block (using cdx-code-booster directly on PATH or your virtualenv Python executable):
{
"mcpServers": {
"cdx-code-booster": {
"command": "cdx-code-booster",
"args": ["--mcp"]
}
}
}
3. 5-IDE Memory Relay Guide (Step-by-Step Handoff)
All five official environments share a single local SQLite WAL vault at ~/.cdx_code_booster/booster_vault.sqlite. When you hit a 5-hour session cap in one tool or want a second model's perspective, follow this 3-step workflow using plain natural language in your agent chat:
Step 1: Save a Milestone Checkpoint in Agent A (e.g., Claude Code)
Before closing Claude Code, ask it to save your current architectural state under a project namespace:
Save our current Stripe webhook refactor summary, modified files, and remaining TODOs to CDX memory under project "billing-v2" with key "webhook-auth".
Automatic Topic Deduplication: If an earlier note webhook-auth-v1 already existed in billing-v2, CDX automatically marks v1 as superseded and increments revision_count so future recalls never waste tokens reading stale drafts.
Step 2: Quarantine Failed or Reverted Approaches (Optional)
Prevent the next agent from repeating a dead-end approach you already tested and rolled back:
Save an obsolete note to CDX memory under project "billing-v2": "[reverted] Sync DB lock inside webhook handler caused 504 timeouts under burst traffic."
Step 3: Resume Immediately in Agent B (Cursor, Codex CLI, or Antigravity)
Open your next coding tool in the same repository and type a single sentence:
Recall CDX memory for project "billing-v2" and continue implementing the remaining webhook TODOs.
Agent B receives a clean, conflict-free Top-9 consolidated_brief (~250–350 tokens) containing only active/verified conclusions while excluding superseded drafts and obsolete dead-ends.
Portable JSON Memory Pack Export / Import (Backup or Git Branch Handoff)
cdx-code-booster --export-team-memory .cdx/team_memory.json --project billing-v2 cdx-code-booster --import-team-memory .cdx/team_memory.json --project billing-v2
4. AST Smart File Reader & Cross-File CoT Anchor Usage
cdx_smart_file_read supports Python (full ast), TypeScript/React (.ts, .tsx, .jsx multi-line generic hooks, memo(forwardRef) components, inner useCallback/useMemo handlers, Prettier multi-line imports, barrel index.ts re-exports, and <Component /> JSX call graphs), Go, Rust, Java, and C/C++.
# 1. Structural overview of an unfamiliar large file (returns symbol map + entry call hubs): "Use CDX smart file read on src/components/OrderWorkspace.tsx to inspect its component and hook map." # 2. Extract one exact method, React hook, or inner callback (+ Cross-File Calls/Callers): "Read symbol 'handleConfirmRefund' in src/components/OrderWorkspace.tsx using CDX smart file read." # 3. Keyword-ranked window slice across a large service module: "Use CDX smart file read on services/ledger_service.py with query 'idempotency_key'."
5. Polyglot Error Log Slimmer Usage
When pytest, vitest, Next.js, tsc, go test, or cargo build outputs hundreds of lines, cdx_slim_log strips ANSI codes, deduplicates repetitive progress lines, deprioritizes external site-packages / node_modules stack frames, and pins your project's exact throw site at the top.
"Run the test suite, and if it fails, pass the raw traceback to cdx_slim_log before diagnosing the root cause."
6. Complete MCP Tool Schema & CLI Flag Reference
cdx-code-booster --version cdx-code-booster --install cdx-code-booster --init-project . cdx-code-booster --stats cdx-code-booster --machine-id cdx-code-booster --consolidate-memory --project billing-v2 cdx-code-booster --export-team-memory .cdx/team_memory.json --project billing-v2 cdx-code-booster --import-team-memory .cdx/team_memory.json --project billing-v2 cdx-code-booster --activate CDXCB1.<payload>.<signature> cdx-code-booster --deactivate
| Tool / CLI Command | Key Arguments | Description |
|---|---|---|
cdx_smart_file_read |
file_path (req), symbol, query, start_line, end_line |
Returns structural symbol map, target slice, and intra/cross-file CoT call graph; skips binary/minified bombs. |
cdx_slim_log |
raw_log (req), max_output_lines (default 55) |
Deduplicates terminal logs and pins project-origin fault frames above library frames. |
cdx_agent_memory |
action (save | recall | consolidate | export_team | import_team), mem_key, summary, details, project, status, tags, source_agent, query, include_obsolete, prune_archived, bundle_path |
Per-project isolated shared memory across all 5 IDEs (keys with -v1/-v2 suffixes auto-supersede earlier drafts; pass include_obsolete=true on recall to inspect quarantined dead-ends). |
--install / --install-all |
--data-dir <DIR>, --targets <IDEs> |
Auto-registers global MCP configs & rules for claude, cursor, vscode, codex, and antigravity (accepts space- or comma-separated targets; persists custom vault path if specified). |
--init-project [DIR] |
--targets <IDEs>, --data-dir <DIR> |
Writes workspace-local .mcp.json, CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, .cursor/mcp.json, .cursor/rules/cdx-code-booster.mdc, and .codex/ configs. |
--export-bundles [DIR] |
--data-dir <DIR> |
Exports standalone ready-to-copy MCP & rule bundles for all 5 official coding environments into DIR. |
--mcp |
--data-dir <DIR> |
Starts the JSON-RPC 2.0 stdio MCP server (honors CDX_CODE_BOOSTER_DIR or saved vault location). |
--consolidate-memory |
--project <NAME>, --data-dir <DIR> |
Merges duplicate topic revisions and newly quarantines unflagged obsolete notes in the SQLite vault. |
--export-team-memory [PATH] |
Default .cdx/team_memory.json, --project |
Exports a SHA-256 verified portable JSON memory pack for the specified project. |
--import-team-memory <PATH> |
--project <NAME> |
Verifies SHA-256 integrity and imports a portable JSON memory pack into the target project namespace. |
--activate <KEY> / --deactivate |
CDXCB1.<payload>.<sig> |
Activates or releases a Pro subscription key slot (1+1 limit: max 2 personal devices — 1 desktop + 1 laptop). |
--stats / --machine-id / --version |
--data-dir <DIR> |
Prints entitlement & token savings JSON (--stats), anonymous device hash (--machine-id), or package version. |
7. Single-Key Multi-IDE Activation, Safe Pass-Through & Troubleshooting
- Zero AI API Keys Required: CDX Code Booster runs as a local MCP tool server and never asks for or accesses your Anthropic, OpenAI, Cursor, or Google credentials.
- One Activation Across All IDEs: You never need to authenticate inside each IDE separately. Running
cdx-code-booster --activate CDXCB1.<payload>.<signature>once writes a machine-sealedlicense.keyinto your active vault directory, which Claude Code, Cursor, VS Code, Codex CLI, Antigravity, and any other connected MCP client read automatically. - 1 + 1 Personal Device Limit (1 Desktop + 1 Laptop = Max 2 Devices): Each Pro license is strictly for a single developer across at most 2 personal machines (1 desktop + 1 laptop), enforced via anonymous SHA-256 machine fingerprints (
cbm_..., zero source code transmitted). Copyinglicense.keyto another PC or exceeding 2 devices is automatically blocked. When replacing a computer, runcdx-code-booster --deactivateon the old machine first. - Zero-Key 30-Day Trial & Day-31 Safe Pass-Through: Your 30-day full trial starts automatically on first run. If it expires before you activate a Pro key, MCP tools gracefully switch to Safe Pass-Through preview mode (retaining up to 25 memory notes) without ever throwing errors or interrupting active coding sessions.
- Reloading Your IDE After Install: Restart Cursor / Antigravity (or start a fresh
claude/codexterminal session) once after runningcdx-code-booster --installso the host picks up the registered MCP server.