Coding Vertical • Controlled Engineering Harness
Turn Any Coding Subscription Into a Controlled, Auditable Engineering Loop
AI coding subscriptions burn quota fast and edit working trees blindly. Kompile wraps Claude, Codex, Antigravity (agy), Copilot, OpenCode, and local models in a folder-first harness with version-controlled off-tree drafts, fail-closed LSP edit gates, searchable diff & test history, live cost transparency, and plain-English agent self-configuration.
$ curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bashkompile chat · controlled coding flow
● verified
dev@workstation ~/acme-api
❯Stage a refactor of TokenRefreshService in a draft, verify with LSP before touching the working tree, and cap worker cost at $1.
index local_code_index debug_trace · 3 callers · blast radius bounded
config onboarding preview · subagent cap $1.00 · confirmed
draft draft_batch create · .kompile/drafts.git rev #2 (3 files)
lsp lsp check overlay=draft · OVERALL PASS (0 errors)
apply draft apply · atomic · diff_index + test_milestone stamped
Draft rev #2 passed fail-closed LSP verification across all 3 files and applied atomically with zero lock or drift conflicts.
48/48 tests captured in /test-milestones · $0.14 spent · run /diffs or draft revert anytime.
THE CONTROLLED CODING LOOP
Explore Cheaply. Stage Off-Tree. Verify Fail-Closed.
Every layer feeds the next so agents stop guessing line numbers, colliding on shared files, or declaring broken code done.
STEP 01
Orient without dumping files
Use local_code_index and file_context to locate symbols, callers, blast radius, fuzzy-typed code relationships, and pinned file_note rationale using 70–95% fewer tokens than raw file dumps.
STEP 02
Stage in version-controlled drafts
Write risky or parallel edits into .kompile/drafts.git via draft / draft_batch. Review unified diffs, 3-way rebase against moving live files, apply atomically under lock checks, or revert cleanly.
STEP 03
Verify fail-closed before done
Run lsp action=check across ~45 languages (including multi-compile-db C/C++/CUDA and draft overlays) and capture real test runs automatically in test_milestone stamped with Git HEAD.
STEP 04
Audit spend, diffs & carry context
Every edit and draft commit lands in searchable diff_index (/diffs), /usage & /cost attribute spend per session/model/subagent, and /compact + kompile peer carry context across machines.
CHANGE TRACKING & CODE INTELLIGENCE
Six Built-In Components That Keep Edits Under Control
draft / draft_batchVersion-Controlled Off-Tree Drafts
A JGit-backed staging repository per project. Prepare reviewable multi-file edits during active builds or multi-agent work, inspect unified diffs with show, 3-way rebase against moved files, apply atomically (refusing drift or foreign locks), and revert cleanly.
Draft Workflow Docs ↗
lsp action=checkFail-Closed LSP Edit Verification Gate
Real language-server intelligence (definition, references, call hierarchy, dry-run rename) plus a fail-closed check gate with multi-backend C/C++/CUDA compile databases and unsaved draft overlay checking before you pay for a full build.
LSP Gate Docs ↗
local_code_indexStructural Code Index & Fuzzy Code Graph
Offline SQLite FTS5 structural index with incremental background watchers, call graphs, blast-radius debug_trace, git co-change history, and portable .kgraph projection with fuzzy type resolution for messy, polyglot codebases.
Code Index Docs ↗
file_context · edit_coordinatorFile Dossiers, Durable Notes & Multi-Agent Locks
Assemble a fast read-only dossier (declarations, KGraph edges, pinned file_note warnings, open incidents) without reading entire files, and coordinate parallel subagents safely with file_activity and edit_coordinator named locks.
File Context Docs ↗
diff_index · /diffsSearchable Edit & Draft Diff Index
Every coding-agent edit and draft create/revise/rebase/apply/revert (including untracked files) is indexed with old/new strings, unified diff, session, agent, and model — searchable and filterable across sessions.
Diff Index Docs ↗
test_milestone · /test-milestonesAutomatic Test Milestone Tracking
Deterministic harness capture of real test runs across 20+ runners (Maven, Gradle, Jest, Vitest, Pytest, Cargo, Go, CTest) stamped with Git HEAD and session/subagent origin so green claims are always verifiable.
Test Milestones Docs ↗
GET MORE FROM EVERY CODING SUBSCRIPTION
Built Around the Real Friction of Daily AI Coding
Keep the providers you already pay for — add transparency, portability, agent-driven setup, local model control, and peer-to-peer memory ownership on top.
Real AI Subscription Cost Transparency
Stop guessing why your Claude, Codex, Antigravity, Copilot, or OpenRouter allowance vanished. Inspect live /usage meters alongside /cost breakdowns by session, model, and subagent — enforce per-worker dollar budgets and ban frontier models from subagent pools.
Unified Multi-Vendor Transcript Management
Import, search, compact (/compact), garbage-collect (/gc), archive (/blob-store), and resume conversations across 11+ external coding CLIs and IDEs (Claude Code, Codex, Antigravity, OpenCode, Cursor, Aider, Cline) — switch models mid-project without losing history.
Agent-Configurable Harness & Guardrails
Harness internals — Enforcer policies, Judge supervision, Tool Gateway, lifecycle Hooks, Skills, Roles, and subagent budgets — are exposed as MCP tools. Describe what you want in plain English and let your agent preview (dryRun=true) and apply the setup safely.
Local Model Compilers & P2P Ownership
Run and optimize local models (23-pass graph optimizer, quantization, PEFT/LoRA, GPU scheduling) from the same harness where you code via local-runtime — and pair a laptop with your GPU workstation over encrypted kompile peer so your memories and transcripts stay yours.
First-class slash commands in terminal & browser chat
/diffs/test-milestones/usage/cost/compact/enforcer/subagent-config/resume/import/sources/gcReady to Put Your Coding Agents on Rails?
Start in any repository folder in under 3 minutes — works in the terminal, in your browser, or as an MCP server for your existing coding CLI.
Also see Local Models & Compilers, Knowledge Graphs, and Roleplaying (Elthoria).