fewer input tokens for your AI coding agent
CCE indexes your codebase with Tree-sitter and serves relevant chunks via MCP. Your agent stops re-reading entire files. Benchmarked on FastAPI with 20 real queries.
One command to set up
30-second demo
Benchmark
20 real questions against FastAPI. No synthetic queries.
Full results: benchmarks/results/fastapi.md
Capabilities
Tree-sitter parses your code into semantic chunks (functions, classes, modules). Stored locally with vector embeddings. Git hooks keep the index current after every commit.
$ cce init && cce index
Your agent calls context_search via MCP. Vector similarity + BM25 keyword search merged via Reciprocal Rank Fusion. If auth.py is a hit, utils.py it imports comes too.
context_search("how does auth work?")
With Ollama running locally, chunks are summarized by phi3:mini. Without it, smart truncation extracts signatures and docstrings. Four output levels: off, lite, standard, max.
Decisions and code areas persist across sessions via record_decision, record_code_area, and session_recall. No re-explaining your architecture every time.
Every query is recorded. cce dashboard for charts and live polling. cce savings for token counts and dollar estimates from live Anthropic pricing.
cce init --plugin generates a portable Agent Plugin directory. VS Code, Cursor, Copilot, Codex, ChatGPT, and Kiro load it automatically via uvx. Zero install.
$ cce init --plugin
Comparison
| Feature | No tool | Caveman | CCE (default) | CCE + Ollama Best |
|---|---|---|---|---|
| Compress output tokens | ✗ | ✓ | ✓ | ✓ |
| Compress input tokens | ✗ | ✗ | ✓ | ✓ |
| Codebase indexing | ✗ | ✗ | ✓ | ✓ |
| Session memory | ✗ | ✗ | ✓ | ✓ |
| LLM summarization | ✗ | ✗ | ✗ | ✓ |
| Agent Plugin (zero-install) | ✗ | ✗ | ✓ | ✓ |
| Cost per session (Sonnet, medium project) | $0.45 | $0.26 | $0.14 | $0.09 |
Three commands. Permanent token savings. Everything stays local.