Catalyst Code
Documentation

Everything the harness does.

A production-grade, OpenAI-compatible coding-agent harness. These docs cover the surface area — the full README lives on GitHub.

TUI command reference

Slash commands in the terminal. Anything that isn't a command is sent as a prompt to the current model.

/loginLog in / switch provider
/model [N|substr]List models, or switch
/approval <mode>never · destructive · always
/sessionsSearchable session picker
/newFresh session (keeps the old)
/compactCompact context now
/attachAttach an image (vision)
/abortStop the running turn

Protocol reference

The core reads commands from stdin and writes events to stdout — one JSON object per line. Build your own client.

Commands (stdin)
  • init
  • login
  • send
  • logout
  • abort
  • reset
  • approve
  • set_approval
Events (stdout)
  • ready
  • authed
  • thinking
  • delta
  • tool_call
  • approval_request
  • tool_result
  • metrics
  • done
Full reference

The complete README

Every flag, env var, and config option — on GitHub.

GitHub