SynapseCode
Description
Ultra-fast Code Graph & AST Pruning MCP Server for LLMs. Reduces context token consumption by 75%-90% in Claude, Cursor & AI Coding Agents.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
SynapseCode
**High-Performance AST Code Graph & Context Optimization Engine for Large Language Models**
SynapseCode reduces context token consumption by 75% to 90% when interacting with LLMs such as Claude 3.5 Sonnet, GPT-4, and autonomous coding agents via the Model Context Protocol (MCP).

[](https://golang.org) [](https://modelcontextprotocol.io) [](LICENSE) [](https://github.com/nosleepman1/SynapseCode/actions)
1. Problem Statement
When using AI code assistants, injecting full raw source files or dumping repository trees consumes tens to hundreds of thousands of tokens per prompt.
This creates three critical engineering bottlenecks:
- Financial Cost: High token consumption multiplies API usage bills.
- Latency: Time-to-first-token (TTFT) degrades significantly with large prompt payloads.
- Context Degradation: Unnecessary implementation details dilute the attention of the model, increasing hallucination rates (Lost in the Middle phenomenon).
2. Technical Solution
SynapseCode continuously analyzes your codebase into an in-memory directed dependency graph:
- AST Extraction: Extracts symbol declarations, types, interfaces, and signatures without full function bodies.
- Multi-Edge Dependency Graph: Maps relations including
CALLS,IMPORTS,DEFINES,IMPLEMENTS, andEXTENDS. - Personalized PageRank (PPR): Calculates centrality and relevance scores seeded by user task terms.
- Knapsack Token Budgeting: Selects target implementations and direct 1-hop dependency skeletons under a strict token budget (e.g.,
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI