feat: hook receiver as a configurable automation bus #65

Open
opened 2026-05-28 11:44:16 +02:00 by dries · 0 comments
Owner

From spec/multi-agent-support/agent-feature-survey.md — finding #13.

What it is

Pre/post tool hooks, session lifecycle hooks (SubagentStart, SubagentStop, Stop, etc.) that fire shell scripts with a JSON payload on stdin.

Seen in

Claude Code; Codex; OpenCode itself.

ocman angle

ocman already has a hook receiver endpoint that OpenCode (and any future platform) can POST to. Today it's a sink. We could turn it into an automation pipeline: per-project rules ("on session end, send a webhook"; "on file edited in prod/, post to Slack"; "on tool error, capture a trace"). A small rule engine in the backend, a rule editor in the UI.

Effort

M.

From [spec/multi-agent-support/agent-feature-survey.md](../src/branch/main/spec/multi-agent-support/agent-feature-survey.md) — finding #13. ## What it is Pre/post tool hooks, session lifecycle hooks (`SubagentStart`, `SubagentStop`, `Stop`, etc.) that fire shell scripts with a JSON payload on stdin. ## Seen in Claude Code; Codex; OpenCode itself. ## ocman angle ocman already has a hook receiver endpoint that OpenCode (and any future platform) can POST to. Today it's a sink. We could turn it into an automation pipeline: per-project rules ("on session end, send a webhook"; "on file edited in `prod/`, post to Slack"; "on tool error, capture a trace"). A small rule engine in the backend, a rule editor in the UI. ## Effort M.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#65
No description provided.