You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3accc7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ See [MCP](/cli/mcp#openclaw-as-an-mcp-client-registry) and
160
160
-`plugins.entries.<id>.apiKey`: plugin-level API key convenience field (when supported by the plugin).
161
161
-`plugins.entries.<id>.env`: plugin-scoped env var map.
162
162
-`plugins.entries.<id>.hooks.allowPromptInjection`: when `false`, core blocks `before_prompt_build` and ignores prompt-mutating fields from legacy `before_agent_start`, while preserving legacy `modelOverride` and `providerOverride`. Applies to native plugin hooks and supported bundle-provided hook directories.
163
-
-`plugins.entries.<id>.hooks.allowConversationAccess`: when `true`, trusted non-bundled plugins may read raw conversation content from typed hooks such as `llm_input`, `llm_output`, and `agent_end`.
163
+
-`plugins.entries.<id>.hooks.allowConversationAccess`: when `true`, trusted non-bundled plugins may read raw conversation content from typed hooks such as `llm_input`, `llm_output`, `before_agent_finalize`, and `agent_end`.
164
164
-`plugins.entries.<id>.subagent.allowModelOverride`: explicitly trust this plugin to request per-run `provider` and `model` overrides for background subagent runs.
165
165
-`plugins.entries.<id>.subagent.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted subagent overrides. Use `"*"` only when you intentionally want to allow any model.
166
166
-`plugins.entries.<id>.config`: plugin-defined config object (validated by native OpenClaw plugin schema when available).
Copy file name to clipboardExpand all lines: docs/plugins/codex-harness.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ These are in-process OpenClaw hooks, not Codex `hooks.json` command hooks:
34
34
-`llm_input`, `llm_output`
35
35
-`before_tool_call`, `after_tool_call`
36
36
-`before_message_write` for mirrored transcript records
37
+
-`before_agent_finalize` through Codex `Stop` relay
37
38
-`agent_end`
38
39
39
40
Plugins can also register runtime-neutral tool-result middleware to rewrite
@@ -583,10 +584,10 @@ The Codex harness has three hook layers:
583
584
584
585
OpenClaw does not use project or global Codex `hooks.json` files to route
585
586
OpenClaw plugin behavior. For the supported native tool and permission bridge,
586
-
OpenClaw injects per-thread Codex config for `PreToolUse`, `PostToolUse`, and
587
-
`PermissionRequest`. Other Codex hooks such as `SessionStart`,
588
-
`UserPromptSubmit`, and `Stop`remain Codex-level controls; they are not exposed
589
-
as OpenClaw plugin hooks in the v1 contract.
587
+
OpenClaw injects per-thread Codex config for `PreToolUse`, `PostToolUse`,
588
+
`PermissionRequest`, and `Stop`. Other Codex hooks such as `SessionStart` and
589
+
`UserPromptSubmit`remain Codex-level controls; they are not exposed as
590
+
OpenClaw plugin hooks in the v1 contract.
590
591
591
592
For OpenClaw dynamic tools, OpenClaw executes the tool after Codex asks for the
592
593
call, so OpenClaw fires the plugin and middleware behavior it owns in the
@@ -622,6 +623,7 @@ Supported in Codex runtime v1:
622
623
| Context engine lifecycle | Supported | Assemble, ingest or after-turn maintenance, and context-engine compaction coordination run for Codex turns. |
623
624
| Dynamic tool hooks | Supported |`before_tool_call`, `after_tool_call`, and tool-result middleware run around OpenClaw-owned dynamic tools. |
624
625
| Lifecycle hooks | Supported as adapter observations |`llm_input`, `llm_output`, `agent_end`, `before_compaction`, and `after_compaction` fire with honest Codex-mode payloads. |
626
+
| Final-answer revision gate | Supported through the native hook relay | Codex `Stop` is relayed to `before_agent_finalize`; `revise` asks Codex for one more model pass before finalization. |
625
627
| Native shell, patch, and MCP block or observe | Supported through the native hook relay | Codex `PreToolUse` and `PostToolUse` are relayed for committed native tool surfaces, including MCP payloads on Codex app-server `0.125.0` or newer. Blocking is supported; argument rewriting is not. |
626
628
| Native permission policy | Supported through the native hook relay | Codex `PermissionRequest` can be routed through OpenClaw policy where the runtime exposes it. If OpenClaw returns no decision, Codex continues through its normal guardian or user approval path. |
627
629
| App-server trajectory capture | Supported | OpenClaw records the request it sent to app-server and the app-server notifications it receives. |
@@ -635,7 +637,6 @@ Not supported in Codex runtime v1:
635
637
|`tool_result_persist` for Codex-native tool records | That hook transforms OpenClaw-owned transcript writes, not Codex-native tool records. | Could mirror transformed records, but canonical rewrite needs Codex support. |
636
638
| Rich native compaction metadata | OpenClaw observes compaction start and completion, but does not receive a stable kept/dropped list, token delta, or summary payload. | Needs richer Codex compaction events. |
637
639
| Compaction intervention | Current OpenClaw compaction hooks are notification-level in Codex mode. | Add Codex pre/post compaction hooks if plugins need to veto or rewrite native compaction. |
638
-
| Stop or final-answer gating | Codex has native stop hooks, but OpenClaw does not expose final-answer gating as a v1 plugin contract. | Future opt-in primitive with loop and timeout safeguards. |
639
640
| Byte-for-byte model API request capture | OpenClaw can capture app-server requests and notifications, but Codex core builds the final OpenAI API request internally. | Needs a Codex model-request tracing event or debug API. |
0 commit comments