Skip to content

KompileThe Enterprise Context Layer for AI That Reasons

Native CLI harness, local knowledge graphs, hybrid RAG, and self-hosted model serving — running on your own hardware.

Kompile LogoKompile Logo
Channel:
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash
Installs portable cli-harness (JBang zero-JDK launcher) with SHA-256 verification and automatic PATH setup.

What the Kompile harness assumes ​

Kompile is built around three practical assumptions about running AI agents on real codebases — and every tool, policy, and configuration layer reflects them:

  • Agents can run 24/7 — but always with live monitoring. Long autonomous loops, background builds, and parallel subagents are first-class (process wake-up monitors, /auto-compact, /model failover, kompile resume-all, and bounded SSE reconnect in the Web Harness). Continuous execution is paired with continuous visibility: /usage, /cost, /subagent-breakdown, /test-milestones, mandatory subagent progress reports, and full Auditing & Provenance.
  • Assume agents will violate rules — enforce strictly, don't rely on prompts. Prompts are guidance, not a boundary. Kompile expects an agent to eventually skip reading a file, fall back to ad-hoc shell scripts, race another worker, or overclaim a fix — so The Enforcer blocks violations mechanically before execution (read-before-edit, dedicated file/search/build tools, Draft Workflow over ad-hoc overlays, edit_coordinator locks, resource-policy lanes), lsp action=check fails closed on touched files, /subagent-config enforces hard concurrency/model/spend caps, and The Judge audits outcomes against observed evidence.
  • Built for any size model — from small local weights to frontier leads. Smaller and open-weight models break down fastest when forced to wade through raw shell dumps or guess project structure. Kompile's bounded coding tools (Local Code Index, File Context, LSP), target-aware compaction, reusable Skills & cached scripts, and /workflow role routing let small local models (kompile-local), fast open-weight APIs, and frontier reasoning models all run reliably under the exact same harness.

What Kompile is not ​

Kompile is deliberately opinionated — it is built for tight, safeguarded agentic workflows, not as a thin wrapper or a blank canvas:

  • Not a single-vendor harness (Claude Code, Codex, Antigravity, etc.). Kompile can orchestrate and inject tools into those CLIs, import and resume their transcripts, and run their models directly — without locking your workflows, memory, skills, or rules to one provider's API, quota policy, or uptime.
  • Not a "build-your-own harness" toolkit (like Pi). Instead of handing you minimal primitives and asking you to wire your own safety rails, Kompile ships pre-built, opinionated guardrails out of the box — deterministic pre-tool enforcement, fail-closed LSP verification, draft staging, edit locks, subagent admission/budget caps, and evidence-backed judging.
  • Built to withstand sudden behavioral drift. Model quality fluctuates in the real world — whether from silent provider cost-saving / quantization, post-compaction drift, accidental hallucinations, or reckless shell commands. Kompile's opinionated safeguards (The Enforcer, The Judge, Auditing & Provenance, and /model failover) assume those dips will happen and keep your repository, builds, and quotas protected when they do. Read the full rationale in Why Kompile Is Opinionated.

Three ways to run Kompile ​

SurfaceWhat it gives youStart with
Slim CLI Harness (cli-harness)Native kompile binary, interactive AI chat, MCP stdio tools, agent passthrough, and self-updates — no Java, GPU drivers, or chip classifiers required.install.sh / install.ps1 (default)
Local ML Runtime (local-runtime)Optional overlay that adds local embeddings, dense search, and graph reasoning on your own CPU/GPU.kompile install local-runtime
Full Platform (full / GPU variants)Optional multi-process server stack (kompile-server, kompile-chat, kompile-crawl-manager, kompile-model-staging) with a bundled Java runtime.install.sh --variant full

Do I need to care about hardware classifiers (cuda, zluda, avx2, mps, …)? ​

If you just want to download the coding harness and write code: no. The default cli-harness download only matches your OS and CPU architecture (linux-x86_64, macosx-arm64, windows-x86_64, or portable any JVM fallback) and works immediately with cloud APIs, subscriptions (Claude, Codex, Copilot, OpenRouter, etc.), passthrough CLIs, and external local endpoints (Ollama, vLLM, LM Studio).

Hardware classifiers only apply when you opt into local-runtime or full distributions to run Eclipse DL4J / ND4J models directly on your machine's hardware:

Classifier familyWhat it isWhen you need it
None (cli-harness)OS + arch only (linux-x86_64, macosx-arm64, windows-x86_64)Default for coding. Cloud/API models, subscriptions, passthrough CLIs, MCP tools, LSP, and code index.
CPU (base, avx2, avx512, onednn, armcompute, compile)CPU SIMD (AVX2/AVX-512), Intel oneDNN / ARM Compute kernels, and graph compilationRunning local embeddings or models on machines without a dedicated GPU.
NVIDIA GPU (cuda-12.9, -cudnn, -compile)Native NVIDIA CUDA 12.9 compute backendLocal GPU inference, OCR, and embeddings on NVIDIA cards.
AMD GPU (zluda-rocm-*)ZLUDA translation layer over AMD ROCm (rocm-7.2.4 / rocm-10.0.0)Running Kompile's CUDA compute backend on AMD Radeon / Instinct GPUs.
Apple Silicon & Vulkan (mps, vulkan)Apple Metal Performance Shaders (macosx-arm64-mps) or cross-vendor Vulkan computeLocal GPU acceleration on Apple Silicon Macs or Vulkan-capable GPUs (Linux, Windows, Android).
Mobile & Specialized (android-arm64, hexagon, tpu)Android ARM64, Qualcomm Hexagon NPU, and Google TPU backendsMobile APKs / embeddable libraries or dedicated accelerator hosts.

You rarely need to pick a classifier by hand — kompile install local-runtime detects your platform automatically, and you can see the full matrix in Local Models & local-runtime and Installation & Updates.

How projects work ​

Every repository works as a Kompile project out of the box — just run kompile chat or kompile chat --web inside any folder. Kompile scopes memory (.kompile/memory/), guardrails (enforcer-config.json, resource-policy.json, hooks.json), LSP compile databases (lsp-check.json), staged drafts (.kompile/drafts.git), and process logs per project while inheriting defaults from ~/.kompile/, and lets you work across multiple repositories concurrently in the Web Harness. Add an optional kompile.project.json manifest with kompile project init when tracking document corpora, crawl profiles, or kompile-app services — see Projects and Disk Space & GC (/gc).

How to navigate these docs ​

Every section starts with an entrypoint page that lays out the reading order for that area. Start at the top if you are new, or jump straight to the pillar you need:

StepSection EntrypointStart here when you want to…
1Start Here (Quick Start)Install the slim kompile binary, run your first kompile chat session, learn how sessions & projects work, or compare CLI vs. Web
2Quickstarts by AudienceConnect Kompile to Codex, Claude, Antigravity (agy), GitHub Copilot, OpenCode, OpenRouter, Fireworks, Together, or Local Models
3Hands-On WalkthroughsFollow guided builds for remote sign-in, customizing the harness with an agent, pairing peers & remote storage, building Spins, or writing Extensions & native plugins
4Harness Deep DiveUnderstand Kompile's opinionated architecture: surfaces (CLI, Web, ACP, mobile), The Enforcer, The Judge, subagents, monitors, memory, reasoning, skills, and cost accounting
5Coding ToolsUse Kompile's bounded codebase tools: language prerequisites, fail-closed LSP verification, local code index/graph, file context, Draft Workflow, and test milestones
6CLI, Slash Commands & WorkflowsLook up kompile commands, interactive wizards, / slash commands, multi-agent /workflow loops, hooks, and resource policies
7MCP Tools & ConfigurationWire Kompile's MCP server (mcp-stdio, daemon, SSE) into external agents, browse the MCP Tool Reference, or inspect Configuration Reference
8Local Models, Server & StagingOverlay local-runtime for self-hosted embeddings/LLMs/OCR, run kompile-model-staging, or deploy the multi-process Kompile Server & Web UI
9Platform & Knowledge Concepts · Architecture & DevelopmentGo deep on document crawl pipelines, hybrid RAG, .kgraph knowledge graphs, fact sheets, persona boundaries, or building Kompile from source

TIP

Using an external AI coding agent? Point it at Kompile's public Agent Skill (SKILL.md) (https://getkompile.github.io/kompile/SKILL.md) so it knows how to operate inside and configure the harness automatically.

Released under the Apache-2.0 License.