core-agent-ide/codex-rs/app-server-protocol/src
Andrei Eternal 244b2d53f4
start of hooks engine (#13276)
(Experimental)

This PR adds a first MVP for hooks, with SessionStart and Stop

The core design is:

- hooks live in a dedicated engine under codex-rs/hooks
- each hook type has its own event-specific file
- hook execution is synchronous and blocks normal turn progression while
running
- matching hooks run in parallel, then their results are aggregated into
a normalized HookRunSummary

On the AppServer side, hooks are exposed as operational metadata rather
than transcript-native items:

- new live notifications: hook/started, hook/completed
- persisted/replayed hook results live on Turn.hookRuns
- we intentionally did not add hook-specific ThreadItem variants

Hooks messages are not persisted, they remain ephemeral. The context
changes they add are (they get appended to the user's prompt)
2026-03-10 04:11:31 +00:00
..
bin app-server-protocol: export flat v2 schema bundle (#13324) 2026-03-03 10:25:51 -08:00
protocol start of hooks engine (#13276) 2026-03-10 04:11:31 +00:00
experimental_api.rs feat: experimental flags (#10231) 2026-02-02 11:06:50 +00:00
export.rs Stabilize protocol schema fixture generation (#13886) 2026-03-09 13:51:50 -07:00
jsonrpc_lite.rs feat(app-server): add tracing to all app-server APIs (#13285) 2026-03-02 16:01:41 -08:00
lib.rs Stabilize protocol schema fixture generation (#13886) 2026-03-09 13:51:50 -07:00
schema_fixtures.rs Stabilize protocol schema fixture generation (#13886) 2026-03-09 13:51:50 -07:00