Skip to navigation

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

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