mirror of
https://github.com/openai/codex.git
synced 2026-11-13 21:30:47 +00:00
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:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user