Skip to main content

HQ commands

Running ferrus with no arguments drops you into HQ — a small interactive shell that drives the state machine. Type / to see an autocomplete menu; use Tab / Shift+Tab to navigate and Enter to accept.

A status line at the bottom of the terminal shows the current task state and retry/cycle counters in real time.

Cheat sheet

CommandDescription
/planFree-form planning session with the supervisor (no task created).
/taskDefine a task with the supervisor, then run the executor → review loop automatically.
/checkRun the ferrus check gate from HQ.
/supervisorOpen an interactive supervisor session (no initial prompt).
/executorOpen an interactive executor session (no initial prompt).
/resumeManually resume the executor headlessly; also recovers consultation by relaunching both supervisor and executor.
/reviewManually spawn supervisor in review mode (escape hatch when automatic spawning failed).
/statusShow task state, agent list, and session log paths.
/attach <name>Show log path for a running headless agent.
/stopStop all running agent sessions (prompts for confirmation).
/resetReset state to Idle and clear task files (prompts for confirmation).
/init [--agents-path]Initialize ferrus in the current directory.
/registerRegister agent configs (same as ferrus register).
/modelUpdate the supervisor or executor model override.
/helpList all HQ commands.
/quitExit HQ.

The happy path

ferrus> /task
└─ supervisor spawns → you describe the task → supervisor calls create_task
└─ executor spawns (headless) → implements → check → submit
└─ reviewer spawns (headless) → reads submission → approve or reject
├─ approved → Complete
└─ rejected → executor re-spawns with feedback
  • /task from Complete silently resets to Idle and starts the next task — no extra step needed.
  • /reset forces Idle from any state; prompts for confirmation if an agent is actively working.

Consultation (/consult)

Any active executor work state (Executing, Addressing) can pause into Consultation. HQ spawns the configured supervisor in consult mode, and the executor immediately calls wait_for_consult to block until the supervisor answers via respond_consult.

This is how the executor asks the supervisor questions mid-task without ending the loop.

Ask a human (/ask_human)

Any active state — including Consultation — can pause into AwaitingHuman. The agent calls wait_for_answer and blocks. You type your answer directly in the HQ terminal (raw text, no slash prefix), and the previous state is restored when the answer lands.

Quit

Press Ctrl+C twice within 2 seconds to exit. The first press shows a yellow "Press Ctrl+C again to exit" prompt in the status line; the second confirms.