CLI, Slash Commands & Workflows
The kompile CLI is the main entry point for everything: interactive coding chat, browser harness hosting, configuration wizards, guardrails, extensions, spins, peer sync, local models, document ingestion, and application builds.
TIP
Start with interactive wizards — you don't need to memorize flags. Inside kompile chat, bare commands such as /config, /enforcer, /judge, /subagent-config, /hooks, /resources, /workflow, /auth, and /model open numbered interactive menus. From your shell, kompile onboard and bare kompile configure do the same.
Looking for terminal UI layout, keybindings, and /ui presets? See The CLI Harness: Terminal UI, Navigation & Configuration.
In this section
| Group | Pages | Best starting point for… |
|---|---|---|
| Chat, Wizards & Auth | Slash Commands (/) · Interactive Workflows · Chat & Harness · Headless & Streaming (exec) · Authentication | Daily terminal/web chat, non-interactive exec / stream-json scripting, multi-agent workflows, and OAuth/API-key credentials |
| Guardrails, Hooks & Resources | Policy Enforcer · Policy Audits (/policy-enforce) · Hooks (/hooks) · Resource Policies (/resources) | Locking down project rules, auditing transcripts, pre/post tool hooks, and concurrency lanes |
| Extensions, Spins & Peer Sync | Extensions & Plugins · Spins · Peer Sync | Adding custom tools/JAR plugins, packaging personas, and syncing across hosts |
| Data, Models & Platform | Ingestion · Models · Graph · Knowledge · Pipelines · App · Build App · Sessions · Manage · SDK · Cloud | Crawling docs, managing local models, querying graphs, and operating Kompile servers |
Command groups
| Command | Description |
|---|---|
kompile onboard | First-run onboarding wizard (harnesses, auth, conversation import, peers) |
kompile explain | Inspect installed harnesses, auth, subagents, limits, LSP, peers, and MCP |
kompile update | Self-update managed distributions and switch channels (kompile update channel) |
kompile doctor | Run environment and distribution diagnostics |
kompile project | Create, open, manage projects |
kompile build app | Generate RAG applications from presets or custom module selection |
kompile build dist | Build canonical platform distribution archives |
kompile spin | Build installable personas with prompts, MCP tools, and optional models |
kompile extension | Install and inspect process extensions, Java plugin SPI, custom tools, skills, roles, and hooks |
kompile chat | Direct LLM chat, server-connected RAG chat, or agent passthrough |
kompile exec | Non-interactive one-shot and stream-json streaming mode (like claude -p / opencode run / codex exec) |
kompile acp | Run Kompile CLI chat as an Agent Client Protocol (ACP) v1 stdio server for editors (Zed, JetBrains, Neovim, Emacs) |
/ Slash Commands | Complete reference of interactive /commands inside chat & passthrough |
| Interactive Workflows | Workflow teams, subagent delegation, loops, judge audits, resource admission, GC |
kompile ingest | Upload files, register directories, add URL sources |
kompile run | Download and run a local LLM with OpenAI-compatible API |
kompile model | Download, convert, list, export, import models |
kompile configure | Interactive configuration wizards |
kompile auth | Manage LLM credentials, conversational channels, source OAuth, and sync connections |
kompile mcp / kompile mcp-stdio | Manage custom MCP servers and expose Kompile MCP tools via stdio |
kompile serve | Run a shared MCP daemon over Unix socket |
kompile enforcer | Policy-governed agent execution |
kompile peer / kompile sources | Encrypted TLS peer federation, unified harness sources (blob stores, GitHub Releases, dirs), and cross-machine sync |
kompile agent | Agent workflows and tasks (kompile auth channel manages channels) |
kompile app | Manage a running server (ingest, index, crawl, jobs, graph) |
kompile graph | Knowledge graph operations (nodes, edges, traverse, search) |
kompile code-index | Local code search with live re-indexing |
kompile perf | Model performance analytics and leaderboards |
kompile install / uninstall | Manage dependencies (local-runtime, GraalVM, Maven, Python) |
kompile bootstrap | Initialize ~/.kompile directory |
kompile info | Show system and environment information |