A highly optimized, token-efficient AI developer environment.
This repository provides a zero-bloat pipeline for AI coding assistants. By combining Model Context Protocol (MCP) semantic routing, local CLI sandboxing, and progressive prompt disclosure, this stack prevents context rot and reduces input and output token costs. It is designed for token-efficient local development without exhausting system memory.
This stack is primarily built and tested for UNIX-like environments and modern AI coding assistants.
- Operating Systems: macOS (Apple Silicon / M-Series tested) and Linux.
- AI Assistants: Fully compatible with Codex (Claude Code CLI). The underlying MCP servers and orchestration patterns can also be ported to Cursor and Google Antigravity with minor configuration tweaks.
- Prerequisites: Git, Node.js (npm), Python 3 (pip), and bash/zsh.
This dotfiles configuration automatically installs and links the following open-source tools:
- n2-qln: A semantic MCP proxy router that acts as a gatekeeper, dynamically fetching tools only when the AI explicitly needs them.
- Context-Mode: Intercepts large terminal outputs (like test suites), runs them in an isolated sandbox, and returns compressed summaries to the AI.
- Graphifyy: Builds a structural knowledge graph of your project, preventing the AI from reading raw files to understand architecture.
- RTK (Rust Token Killer): A background CLI hook that automatically strips formatting and verbosity from terminal logs before the LLM processes them.
- Caveman: A system prompt skill that forces the AI to drop conversational filler and output bare-metal code.
- Agent Skills: Addy Osmani's progressive disclosure engineering prompts for modular, zero-bloat interactions.
Clone this repository into a .dotfiles directory and run the installer.
git clone https://github.com/JacobThree/zero-bloat-mcp-stack.git ~/.dotfiles
cd ~/.dotfiles
chmod +x install.sh
./install.shIf stack already cloned and you want to reinstall everything:
cd ~/.dotfiles
chmod +x install.sh
./install.shIf you want full fresh reinstall:
rm -rf ~/.dotfiles
git clone https://github.com/JacobThree/zero-bloat-mcp-stack.git ~/.dotfiles
cd ~/.dotfiles
chmod +x install.sh
./install.shWhat the script does:
- Installs global NPM packages for routing and sandboxing.
- Installs Python MCP servers for codebase mapping.
- Installs and initializes the Rust Token Killer.
- Maps Agent Skills lifecycle commands into global skill aliases (
/spec,/plan,/build,/test,/review,/ship). - Runs global smoke checks for
rtk,n2-qln,context-mode, andgraphify.
To initialize this architecture in a new or existing project, navigate to your project directory and run:
$caveman Execute ~/.dotfiles/ai_blueprints/project_init.md strictly.This command will:
- Create
CLAUDE.mdwith project context and lifecycle command mapping. - Generate
.codex/config.tomlforn2-qln,context-mode, andgraphify. - Run stack checks and write
.codex/stack-check.md.
Run this sequence in any existing repo:
# 1) Enter project
cd /path/to/your/project
# 2) Initialize project wiring (CLAUDE.md + .codex/config.toml + stack check)
$caveman Execute ~/.dotfiles/ai_blueprints/project_init.md strictly.
# 3) Verify project stack health
~/.dotfiles/ai_blueprints/stack_smoke_test.sh
cat .codex/stack-check.md
# 4) Build graph index for architecture-aware queries
graphify update .
ls -la graphify-out
# 5) Start working with lifecycle commands in Codex
# /spec -> /plan -> /build -> /test -> /review -> /shipPractical daily loop:
/plan
/build
/test
/review
When codebase changes heavily, refresh graph:
graphify update .Run per-project smoke test:
~/.dotfiles/ai_blueprints/stack_smoke_test.shRead results:
cat .codex/stack-check.mdGlobal checks:
rtk --version
n2-qln --help
context-mode --help
python -m graphify --helpLatest full-stack benchmark (RTK + Caveman) shows 15.92% fewer total tokens in this repository.
Install stack:
cd ~/.dotfiles && ./install.shInitialize current repo:
$caveman Execute ~/.dotfiles/ai_blueprints/project_init.md strictly.Skill lifecycle commands (inside Codex):
/spec
/plan
/build
/test
/review
/code-simplify
/ship
Graphify map + report:
graphify update .
ls -la graphify-outRTK stats:
rtk gainLicense
This project is licensed under the MIT License. See the LICENSE file for details.
