Crux

•
4
•

Optimizes token usage for AI coding agents by 60–95% across real workloads without degrading task quality.

Crux is a local-first token-optimization runtime designed to sit between AI coding agents (such as Claude Code, Cursor, and Cline) and their development tools. It dramatically reduces token usage by addressing inefficiencies across eleven distinct layers, including verbose model output, bloated tool descriptions, redundant file reads, missing structure, lost context, and conversation history bloat. This allows AI agents to operate more efficiently, intelligently, and cost-effectively.

Características Principales

010 GitHub stars
02Optimizes across 11 independent layers, including read caching, AST graph analysis, and conversation digestion
03Enables sandboxed execution of code snippets (Python, Bash, Node) with resource limits and isolation features
04Manages persistent memory for AI agents with FTS5 and decay-ranked observations for long-term context
05Achieves 60–95% token reduction across real-world AI agent workloads
06Provides hybrid code search combining BM25, dense vectors, and Reciprocal Rank Fusion (RRF)

Casos de Uso

01Improve the efficiency and reduce token costs of AI coding agents interacting with codebases
02Enhance AI agents' ability to understand, navigate, and search large code projects with deep context
03Provide a secure and controlled environment for AI agents to execute and test code snippets during development