agent:session-end
agent:session-end
Section titled “agent:session-end”End agent session
Options:
| Flag | Description | Required |
|---|---|---|
--revoke | Combine with —session-id and —reason to forcibly revoke a role-session lease you do not own | No |
--session-id <id> | Close a WU-less role session (orchestrator/reviewer/finisher/recovery) matching this session_id | No |
--confirm | Acknowledge closing a foreign-owned session on a bare close | No |
--reason <text> | Reason for a —force override (recorded in the force-bypass audit) | No |
--force | Override the foreign-owner refusal on —wu (requires —reason) | No |
--wu <id> | Close only the current pointer, and only if it matches this WU id | No |