Disconnect an agent
Removes rhebok’s own entries from the agent’s config files and returns
the agent’s new state with the files it changed. instructions is
accepted and ignored.
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
Disconnected.
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