Glossary · Headless Coding Agents (CI Mode)

Headless Coding Agents (CI Mode).

Agents that run where no terminal watches.

The short answer

Headless mode runs the agentic loop without a TUI (scripted prompts, piped I/O, machine-readable exit codes) for CI pipelines, cron jobs, and batch refactors.

Read the full answer

The discipline: deterministic scoping (plan files in, diffs out), approval policy per environment (--yolo only where revert is cheap), and memory-aware runs where past failures inform this run. Read-only plan mode previews changes without touching the tree.

Headless Coding Agents (CI Mode), working

Approval is a prompt. Confinement is a policy.

Tool-layer policy by default; with require_kernel, Seatbelt or Landlock enforce it, and an unconfinable spawn is refused.

Sandbox · interactive
Profile
Enforce
Kernel
netmachine$TMPDIR~ homeproject + stateagent
policy line in the system prompt
Sandbox: profile=project; reads=project+state root; writes=project+state root;
  network=allow; env=sanitized (secrets filtered); enforce=tool-layer.
What each profile lets a process touch, and the rule that stops it.Anvaya-CLI/crates/anv-sandbox/src · anv-types/src/sandbox.rs

In Anvaya

How we implement it.

Headless Coding Agents (CI Mode)anv --no-tui --yolo with exit codes 0/1/2 (denied), pipeable I/O, --plan-only read-only exploration, timestamped backups before mutations.

Questions

Asked about Headless Coding Agents (CI Mode).

When is --yolo safe?

Where revert is one command (git-clean trees), scopes are narrow, and tests gate merges. Never on unreviewed production paths.

How do headless runs stay cheap?

Spec-in/task-out discipline: fresh session per job with a written spec, packed memory instead of transcripts, quiet command flags.

What should CI agents never do?

Force-push, broad auto-merge, secret-adjacent work, and unscoped network writes. Gate writes, log everything.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.