Expand description
Harness that wraps local AI coding CLIs as atomr-agents Callables.
See README.md for the high-level architecture.
Structs§
- CliCommand
- A concrete process invocation produced by a vendor adapter.
- CliRequest
- Uniform request the harness accepts.
- CliResult
- Final shape of a headless run.
- CliRun
Id - CliSession
Id - Coding
CliEvent Stream - Subscriber handle backed by a
broadcast::Receiver. Drops missed events silently — same semantics asDeepResearchEventStream. - Coding
CliHarness - Coding
CliHarness Spec - Top-level harness configuration.
- Concept
Projection - Everything the harness hands a vendor adapter before a run so the adapter can materialize on-disk config.
- InMemory
RunStore - Interactive
Session Handle - McpServer
Init - One MCP server the CLI loaded.
- McpServer
Snapshot - One MCP server entry — vendor-agnostic.
- Persona
Snapshot - Identity + behavior of the agent the CLI should impersonate.
- Policy
Snapshot - Narrowed permissions the harness wants enforced by the CLI itself.
- Skill
Snapshot - One skill the CLI should be able to invoke.
- Tool
Call Record - One tool the CLI invoked during the run.
- Tool
Descriptor Init - One tool descriptor reported by the CLI during init.
- Tool
SetSnapshot - A bundled set of MCP servers + standalone tool names. Materializes
to
.mcp.json(Claude),.cursor/mcp.json(Cursor), Codex / Antigravity settings files. - Usage
Summary - Token + cost totals.
- Vendor
Registry
Enums§
- CliVendor
Kind - Stable identifier for a vendor adapter. Extensible — third-party
adapters can use
CliVendorKind::Other. - Coding
CliEvent - Normalized lifecycle events. Tagged enum — serializes as
{"kind": "...", ...}so the web client can switch onkind. - Finish
Reason - Why the run finished.
- Harness
Error - Isolation
Spec - Where the CLI process runs.
- RunMode
- Whether the harness should run the CLI headlessly (parse structured events) or interactively (bridge a tmux session to a browser).
- Session
Event - Frame the harness shows to clients (over WebSocket in the web companion).
- Session
Transport - Frames clients send back.
Traits§
- CliEvent
Parser - A stream parser owned by the harness for the lifetime of one run.
- CliRun
Store - CliVendor
- The integration seam each CLI adapter implements.