-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Context
agentctl#108 + PR #123 added native lifecycle webhook emission. agentctl now emits session.stopped webhooks when any harness (Claude Code, OpenCode, Codex) stops.
Current state (messy)
Three separate event sources feeding OrgLoop:
- Claude Code stop hook (
~/.claude/settings.json→orgloop hook claude-code-stop) — per-harness - OpenCode lifecycle plugin (
~/.config/opencode/plugins/orgloop-lifecycle.ts) — per-harness - agentctl webhook (
AGENTCTL_WEBHOOK_URL) — unified, NEW
Plus three OrgLoop sources (opencode, claude-code, agentctl) and three routes all pointing to the same SOP.
Target state (clean)
- Delete Claude Code stop hook from
~/.claude/settings.json(theorgloop hook claude-code-stopentry) - Delete OpenCode lifecycle plugin at
~/.config/opencode/plugins/orgloop-lifecycle.ts - Delete
opencodeandclaude-codesources from OrgLoop connector config - Delete
coding-agent-supervisorandclaude-code-supervisorroutes from OrgLoop - Keep only the
agentctlsource andagentctl-supervisorroute
Verification
After cleanup, stop a Claude Code session and verify:
- agentctl daemon emits webhook to OrgLoop
- OrgLoop receives it on
agentctlsource - Supervisor SOP fires
Blocked on
Confirming agentctl webhooks actually fire reliably for Claude Code sessions. The webhook emission path needs E2E testing before we delete the fallback hooks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels