Connect an agent
Writes rhebok’s entries into the agent’s config files, the same as
rhebok connect, and returns the agent’s new state with the files it
wrote, the backups it kept and any step left for you. A config file
rhebok cannot parse is refused and left unchanged.
Request
This endpoint expects an object.
id
The agent id, for example claude-code or codex. A blank id is refused.
instructions
On connect, also add the opt-in instructions block where the agent has one (Codex’s AGENTS.md).
Response
Connected (or already connected, in which case nothing is written).
agent
change
Errors
400
Bad Request Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
421
Misdirected Request Error
500
Internal Server Error