Skip to main content
Headless mode runs SoulForge without the TUI. Same agent, same tools, no renderer. For scripts, CI pipelines, automation.

Basics

Agent text streams to stdout. Progress messages go to stderr so piping stays clean.

Useful flags

Exit codes: 0 success, 1 error, 2 timeout, 130 abort.

CI example

Resume a session

Parse events

Event types: start, text, tool-call, tool-result, step, error, done, session-saved.

What’s disabled

  • TUI, editor panel, splash screen.
  • Interactive approvals β€” destructive actions auto-allow in headless mode.
  • User steering β€” no stdin during the run.

Security in CI

Set SOULFORGE_NO_REPOMAP=1 to skip the startup scan on tiny CI jobs. Store API keys as CI secrets. Use --max-steps and --timeout to cap runaway runs.