Projects
Every repository or workspace you work in is a project in Kompile. You get project-scoped persistence, guardrails, memory, code search, and staged drafts immediately in any directory with zero boilerplate — and you can optionally initialize a kompile.project.json manifest when you want managed document crawls, fact sheets, or kompile-app services.
1. Zero-ceremony harness projects (.kompile/)
Just cd into any code repository and run kompile chat (or kompile chat --web). Kompile automatically scopes state to that folder under <project>/.kompile/ while inheriting defaults from ~/.kompile/:
Precedence rule: CLI flags / env vars → active session → project (<project>/.kompile/) → user (~/.kompile/) → built-in defaults.
| File or directory | What it scopes to this repository |
|---|---|
.kompile/chat-config.json | Project default provider, model, thinking effort, and named chat profiles |
.kompile/enforcer-config.json | Project Enforcer & Judge rules, workflow mode (off/advisory/enforced), and memory mandate |
.kompile/resource-policy.json | Project low/high command admission lanes (overrides ~/.kompile/resource-policy.json) |
.kompile/hooks.json | Project pre/post tool hooks (/hooks) |
.kompile/lsp-check.json | Project C/C++/CUDA compileDatabases and defaultBackends for fail-closed lsp action=check |
.kompile/memory/ | Project-specific MEMORY.md and typed memories (user, feedback, project, reference) |
.kompile/drafts.git | Isolated per-repo bare git store for staged draft edits and atomic apply/revert |
.kompile/task-registry/ & .kompile/process-output/ | Per-project subagent task trees and background command logs |
AGENTS.md & .mcp.json | Agent instructions and project MCP servers (plus optional CLAUDE.md, .cursorrules, .windsurfrules, .github/copilot-instructions.md) |
Managing project agent config (project_config tool)
Agents and users can inspect or update AGENTS.md, .mcp.json, platform rule files (CLAUDE.md, .cursorrules, .windsurfrules, .github/copilot-instructions.md), and prompt templates directly through the project_config MCP tool (action=status|view|update|append|reset|remove_mandate|add_mcp_server).
Multi-project workspaces in the Web Harness
When you run kompile chat --web, the directory where you launched is registered automatically, and you can add as many repositories as you like from Add Project in the sidebar:
- Run up to 8 concurrent chat panes across different repositories side by side.
- Every project keeps its own
.kompile/rules, memory, test milestones (/test-milestones), and disk breakdown in/storage. - See The Web Harness and Disk Space, Storage & GC (
/gc).
2. Managed Kompile repositories (kompile.project.json)
When a project also tracks curated document corpora, crawl profiles, local .kgraph / RAG knowledge bases (data/crawls/), code-project registries, or distributed kompile-app services, initialize a kompile.project.json manifest:
# Initialize a managed project manifest in the current directory
kompile project init --name my-project
# Seed a VLM OCR document project preset (defaults to data/input_documents)
kompile project init --name scanned-docs --preset vlm-ocr
# Back the project repository with Git or Git-XET
kompile project init --name team-kb --backend git --remote git@github.com:org/team-kb.gitProject lifecycle
Managed projects track an explicit lifecycle state:
DRAFT -> ACTIVE -> PAUSED -> ARCHIVED | DEPRECATEDkompile project lifecycle --state=ACTIVEKey kompile project commands
| Command | What it does |
|---|---|
kompile project status (or bare kompile project) | Show project manifest, registered components, and service/Git state |
kompile project init [--name <name>] [--preset generic|vlm-ocr] | Create or update kompile.project.json and standard data/ directories |
kompile project open . / start / stop / logs | Start, stop, or inspect kompile-app services for a distributed/team project |
kompile project add-code-project / index-code-project | Register and semantically index source trees for code search & code graph |
kompile project add-crawl-profile / crawl / workflow-run | Define and run project crawl profiles or workflow runs |
kompile project export-archive / import-archive | Export or import a portable project archive |
kompile project commit / pull / push | Version-control operations on Git / Git-XET backed projects |
(Run kompile project --help for the full list including list-fact-sheets, list-chat-sessions, list-markdown, list-prompt-templates, and model subcommands.)
kompile project init vs. kompile build app
| Approach | When to use it | Output |
|---|---|---|
Plain repo + .kompile/ | Everyday AI coding, persistent memory/chat/code-index, local RAG with local-runtime, or multi-project Web Harness | Zero boilerplate — just run kompile chat or kompile chat --web |
kompile project init | Organizing documents, crawl profiles, models, fact sheets, and optional kompile-app services inside a repository | kompile.project.json + standard data/ directories |
kompile build app | Compiling a standalone, deployable Spring Boot RAG service (JAR or GraalVM native binary) with only the modules you select | Self-contained Maven project with launcher scripts — see Build Applications |
Related pages
- Configuration Reference — full table of
~/.kompile/vs.<project>/.kompile/config files - Disk Space, Storage & GC (
/gc) — per-project.kompile/storage breakdown and cleanup - The Web Harness — multi-project browser workspace (
kompile chat --web) - Standard Daily Workflow — putting project config, skills, drafts, and subagents together