Skip to navigation

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.
idstringRequired

The agent id, for example claude-code or codex. A blank id is refused.

instructionsbooleanOptionalDefaults to false

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).

agentobject
changeobject

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