Add An Agent
An agent lets Clawblox start and resume an AI process, such as Claude or Codex. Clawblox gives the agent paths and prompts. The agent starts or continues its own process and writes state back to the paths it was given.What Clawblox Gives You
Your agent receives paths like these:binary when a run must pin an exact CLI version, for example a script-owned
wrapper or a path to a versioned install. Clawblox should not silently choose a
different agent binary for repeatable runs.
What To Implement
An agent needs to support:- Check setup Confirm the CLI is installed and logged in.
-
Start
Start a new session in
workspace_dir. - Continue Continue the saved session with a new prompt.
-
Remember
Write the current session id to
session_id_file. -
Keep transcripts
Put useful session files in
transcript_dir. -
Auto-continue
Configure the agent to continue instead of stopping early. Use
auto_continue_promptas the message. -
Support sandboxing
List the files, directories, env vars, hooks, and network access the agent needs when
--sandboxis enabled.
Ready Checklist
An agent is ready for repeatable runs when it can:- start successfully
- write a session id
- continue from that session id
- handle a later prompt in the same session
- auto-continue when the agent tries to stop early
- preserve workspace changes
- leave useful session files in
transcript_dir - write a rerunnable command file
- write operation events that explain what happened