Skip to content

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 directoryWhat it scopes to this repository
.kompile/chat-config.jsonProject default provider, model, thinking effort, and named chat profiles
.kompile/enforcer-config.jsonProject Enforcer & Judge rules, workflow mode (off/advisory/enforced), and memory mandate
.kompile/resource-policy.jsonProject low/high command admission lanes (overrides ~/.kompile/resource-policy.json)
.kompile/hooks.jsonProject pre/post tool hooks (/hooks)
.kompile/lsp-check.jsonProject 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.gitIsolated 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.jsonAgent 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:

bash
# 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.git

Project lifecycle ​

Managed projects track an explicit lifecycle state:

DRAFT -> ACTIVE -> PAUSED -> ARCHIVED | DEPRECATED
bash
kompile project lifecycle --state=ACTIVE

Key kompile project commands ​

CommandWhat 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 / logsStart, stop, or inspect kompile-app services for a distributed/team project
kompile project add-code-project / index-code-projectRegister and semantically index source trees for code search & code graph
kompile project add-crawl-profile / crawl / workflow-runDefine and run project crawl profiles or workflow runs
kompile project export-archive / import-archiveExport or import a portable project archive
kompile project commit / pull / pushVersion-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 ​

ApproachWhen to use itOutput
Plain repo + .kompile/Everyday AI coding, persistent memory/chat/code-index, local RAG with local-runtime, or multi-project Web HarnessZero boilerplate — just run kompile chat or kompile chat --web
kompile project initOrganizing documents, crawl profiles, models, fact sheets, and optional kompile-app services inside a repositorykompile.project.json + standard data/ directories
kompile build appCompiling a standalone, deployable Spring Boot RAG service (JAR or GraalVM native binary) with only the modules you selectSelf-contained Maven project with launcher scripts — see Build Applications

Released under the Apache-2.0 License.