Optimize your repository
before your AI reads it
Forge prepares a precise, repository-aware context before your AI assistant runs — so it reads only what matters, responds with higher accuracy, and wastes fewer tokens on noise. It optimizes context quality, not your billing.
- 1,284 Files Indexed
- AST Pruning Complete
- Saves tokens (Active)
Watch context compilation in real time
Forge intercepts your prompt, analyzes repository intelligence, and compiles pruned context before your AI assistant runs.
Four pillars, one runtime
Forge focuses on what it controls — repository context, behavior, output, and the runtime that orchestrates them.
Repository Intelligence
Scanning, caching, symbol extraction, dependency analysis, and semantic ranking.
Behavior Optimization
Configurable implementation guidance inspired by YAGNI rules.
Output Optimization
Response-style and token optimization for tighter, cheaper responses.
Runtime Infrastructure
Zero-config wrappers, context preparation, and runtime orchestration.
One command per tool. Zero configuration.
Every wrapper auto-prepares and optimizes context, updates config, and launches your assistant under an optimized environment.
Handcrafted for correctness
Every piece of the runtime exists to give your assistant a better starting point — and to stay out of everything it shouldn't touch.
Relevant context only
Selection plus aggressive caching keep the payload lean — only what your prompt actually needs is sent to the model, never the whole tree.
Incremental caching
Repository representations are cached between runs and updated incrementally.
Standard MCP runtime
Speak the Model Context Protocol over stdio, or let a convenience wrapper prepare and launch your tool for you.
Optimizes what it controls
Forge never modifies provider billing, quota accounting, model pricing, or the remote model's internal reasoning.
Bring Your Own Key (BYOK)
Configure credentials locally via 'forge auth login' to dynamically switch and authenticate multiple AI providers (OpenAI, Anthropic, Gemini, DeepSeek) without lock-in.
AI Git Commit Generator
Auto-generate semantic Conventional Commit messages by analyzing staged changes ('git diff --cached'). Review, edit, and commit instantly.
Three steps, zero configuration
From a cold repository to an optimized assistant in a single command.
Scan & cache
Forge scans the repository, analyzes dependencies, and caches an incremental representation of the codebase.
Rank & prune context
Semantic ranking picks the files that match your prompt, then AST pruning keeps only the symbols that matter.
Launch optimized
Rulesets are applied and your AI tool launches under an optimized environment — over MCP or a convenience wrapper.
Frequently asked questions
How Forge prepares context and launches your tools. Still curious?
Forge is a lightweight, high-performance runtime designed for modern AI coding tools that optimizes repository context before your model reads it. Rather than sending raw, whole-repo dumps, it indexes your workspace to perform precise AI context engineering, selecting only the relevant definitions, files, and imports. This ensures higher correctness, lower latency, and less wasted token budget.
Give your assistant a
better starting point
Install the CLI and wrap your first tool in under a minute. Star the repo to follow along.
uv tool install forgeoptimizer