feat(agents): add watchdog and forked-agent support

Add watchdog scheduling and forked-agent spawn/resume support across the agent control plane, schemas, rollout metadata, and TUI surfaces.

Rolls up follow-up fixes for watchdog lifecycle behavior and guidance: helper cleanup/one-shot enforcement, wait semantics for watchdog check-in agents, and clarified tool descriptions so models align with runtime behavior.
This commit is contained in:
Friel
2026-02-24 14:05:06 -08:00
parent fefdc03b25
commit 993d3874e1
41 changed files with 5727 additions and 313 deletions
+17
View File
@@ -24,6 +24,23 @@ Codex can run a notification hook when the agent finishes a turn. See the config
- https://developers.openai.com/codex/config-reference
## Agent Inbox Delivery
Inbound messages from other agents (for example, when a watchdog uses `send_input`) can be injected
as different roles in the root thread. Configure this with `agent_delivery_role`:
```toml
agent_delivery_role = "tool" # tool | developer | assistant
```
`tool` (default) injects a synthetic multi-agent inbox `collab_inbox` tool-call + tool-output pair
so inbound agent messages are explicit tool activity in the transcript. `developer` injects a
developer message with an explicit `[collab_inbox:...]` prefix so it is not mistaken for user
input. `assistant` injects the same prefix using the assistant role.
This setting applies to non-subagent threads (for example, the root thread). Messages sent to
subagents via `send_input` are still delivered as user input.
## JSON Schema
The generated JSON Schema for `config.toml` lives at `codex-rs/core/config.schema.json`.