A harness application is the deployable unit Karta runs and manages. It’s a folder that configures an agent harness — picture what you’dDocumentation Index
Fetch the complete documentation index at: https://docs.karta.sh/llms.txt
Use this file to discover all available pages before exploring further.
git push to
Heroku, except the artifact is a folder a coding-agent harness already knows
how to run.
In prose we say harness application. In code, the CLI, the HTTP API, and
the database, the same thing is called a project (
ProjectRegistry,
project_name, karta project add, AgentProject). They’re the same unit.Anatomy
The minimum is a single instructions file. Everything else is additive.Harness detection
Karta auto-detects the harness from the folder layout, so you rarely specify it explicitly:| Signal | Harness | Adapter |
|---|---|---|
.claude/ directory or CLAUDE.md | Claude Code (via the Claude Agent SDK) | ClaudeAdapter |
.opencode/ directory | OpenCode (driven as a CLI subprocess) | OpenCodeAdapter |
| neither | defaults to OpenCode | OpenCodeAdapter |
HarnessAdapter class — discover
agents from its format, and stream a single turn mapped to Karta’s
event model.
What the harness owns vs. what Karta owns
The harness owns
Conversation history, session persistence and resumption, tools, MCP
servers, memory, context management, skills, and the agentic execution
loop.
Karta owns
Session handles, participant attribution, agent routing, policies,
lifecycle hooks — plus the platform: HTTP/CLI/SDK surface, multi-tenancy,
metering, budgets, BYOK, webhooks, releases.
Configuration files
Two optional files tune behavior without touching your agent definitions:karta.toml— deploy and build hints used when the app is published as a release: the entry point, buildpack, and so on. See thekarta.tomlreference.karta.jsonc— Karta-specific CLI, harness, and runtime settings (hidden event types, approval policy, idle timeouts, thinking budget). See Configuration.
Next
Project structure
Lay out a real harness app, file by file.
Defining agents
The
.md frontmatter format for specialist agents.