TokenForge
Less Context. More Coding.
TokenForge is an open-source context optimization engine designed to reduce token consumption, preserve session memory, and improve efficiency across AI-powered coding workflows.
Stop wasting context on massive tool outputs and repeated explanations. TokenForge filters unnecessary output, stores persistent session knowledge, and routes tool interactions through a unified optimization layer.
✨ Features
- Context Compression — reduce unnecessary tool output by up to 98% in supported workflows.
- Persistent Memory — store and retrieve session knowledge using SQLite and FTS5 full-text search.
- Smart Tool Routing — manage tool interactions across 17 supported platforms.
- MCP Integration — connect AI coding agents through the Model Context Protocol.
- Automatic Hooks — optimize tool output and context flow directly within supported workflows.
- Session Continuity — retain useful context between sessions without repeatedly explaining the same things.
- Token Efficiency — reduce redundant context and keep coding sessions focused.
- Multi-Agent Support — integrate with popular AI-powered development environments.
🧩 Supported Platforms
Designed for workflows involving:
- Claude Code
- Gemini CLI
- VS Code Copilot
- OpenCode
- Codex CLI
⚙️ How It Works
- Intercepts supported tool interactions through hooks and MCP integrations.
- Filters or compresses excessive tool output before it reaches the agent.
- Stores useful session information in a local SQLite database.
- Retrieves relevant memories through FTS5 search.
- Routes supported interactions through a consistent optimization layer.
🎯 Why TokenForge?
- Less context wasted on repetitive tool output.
- Lower token consumption in supported workflows.
- Persistent knowledge across coding sessions.
- A unified approach to AI agent integrations.
- A more focused development experience.
🔍 Project Keywords
ai-agents token-optimization context-engineering
mcp sqlite fts5 claude-code gemini-cli
codex-cli opencode github-copilot developer-tools
TokenForge — Keep the context. Cut the noise.