Open-source Shanaxon compresses repo context with AST + PageRank and skips compression when it isn't cost-effective
Ok_Heart_7687 · reddit · 2026-11-27
A Reddit user released Shanaxon (shanaxon-mcp), a local-first, MIT-licensed MCP server for Claude Code, Cursor, and Gemini CLI that tackles token bloat from raw repos and information loss from naive summarization.
Key features:
- AST + PageRank compression: ranks structural importance via web-tree-sitter, stripping boilerplate while keeping critical symbols, types, and signatures
- Reversible context: injects [shanaxon:retrieve hash=...] markers so agents can pull exact verbatim files from local cache before editing
- Preflight cost-vs-savings gate: checks the active model's token pricing and falls back to raw files when compression doesn't pay off
- Local security: workspace containment with .env, private keys, and credentials blocked by default
Install with npx -y shanaxon-mcp init --yes. Currently supports TypeScript/JavaScript, Python, and common config formats; formal CI benchmarks are on the roadmap.
More from coding & agent
- Claude Duet research preview expands to India, Brazil, Indonesia and Japan, adds Teams access — rudrank · 2026-11-27
- Coding agents tackle generalized task and motion planning across 28 simulated environments — chris_j_paxton · 2026-11-27
- Add a Blender layer before AI video agents: RunPod cloud GPU rendering workflow, destroy after use — huangyun_122 · 2026-11-27
- AIChipBench: 9,136 attempts show LLM agents building RTL chips fail on stored state; feedback adds 25-47 points — Guangyuan Wang · 2026-11-27
- Dev drops LLMs from the loop: iterating on fast heuristics beats slow agents — snikolov · 2026-11-27
- PyTorch Lightning can now save checkpoints to HF Storage Buckets and resume from them — vanstriendaniel · 2026-11-27