Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

chore: sync Codex marketplace v5.1.13

github-actions[bot]9b003a2a7742
diff --git a/plugins/omo/.codex-plugin/plugin.json b/plugins/omo/.codex-plugin/plugin.json
index e045e9ce..42c9bd92 100644
--- a/plugins/omo/.codex-plugin/plugin.json
+++ b/plugins/omo/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "omo",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "One Codex plugin namespace for Yeongyu's local Codex components.",
"author": {
"name": "Yeongyu Kim",
diff --git a/plugins/omo/components/bootstrap/hooks/hooks.json b/plugins/omo/components/bootstrap/hooks/hooks.json
index 4b712ff3..05dc963a 100644
--- a/plugins/omo/components/bootstrap/hooks/hooks.json
+++ b/plugins/omo/components/bootstrap/hooks/hooks.json
@@ -8,7 +8,7 @@
"command": "node \"${PLUGIN_ROOT}/components/bootstrap/dist/cli.js\" hook session-start",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\bootstrap.ps1\"",
"timeout": 30,
- "statusMessage": "(OmO 5.1.12) Checking Bootstrap Provisioning"
+ "statusMessage": "(OmO 5.1.13) Checking Bootstrap Provisioning"
}
]
}
diff --git a/plugins/omo/components/bootstrap/package.json b/plugins/omo/components/bootstrap/package.json
index 74d30828..47fa6270 100644
--- a/plugins/omo/components/bootstrap/package.json
+++ b/plugins/omo/components/bootstrap/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/codex-bootstrap",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex SessionStart bootstrap component that provisions LazyCodex runtime dependencies from a detached worker.",
"type": "module",
"private": true,
diff --git a/plugins/omo/components/comment-checker/hooks/hooks.json b/plugins/omo/components/comment-checker/hooks/hooks.json
index 5d277a95..568105c0 100644
--- a/plugins/omo/components/comment-checker/hooks/hooks.json
+++ b/plugins/omo/components/comment-checker/hooks/hooks.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use",
"timeout": 30,
- "statusMessage": "(OmO 5.1.12) Checking Comments"
+ "statusMessage": "(OmO 5.1.13) Checking Comments"
}
]
}
diff --git a/plugins/omo/components/comment-checker/package.json b/plugins/omo/components/comment-checker/package.json
index c13bb41a..f972e1df 100644
--- a/plugins/omo/components/comment-checker/package.json
+++ b/plugins/omo/components/comment-checker/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-comment-checker",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex plugin that runs comment-checker after edit-like PostToolUse hooks.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/git-bash/hooks/hooks.json b/plugins/omo/components/git-bash/hooks/hooks.json
index 59888dc4..3500fb29 100644
--- a/plugins/omo/components/git-bash/hooks/hooks.json
+++ b/plugins/omo/components/git-bash/hooks/hooks.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Recommending Git Bash MCP"
+ "statusMessage": "(OmO 5.1.13) Recommending Git Bash MCP"
}
]
}
@@ -20,7 +20,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Resetting Git Bash MCP Reminder"
+ "statusMessage": "(OmO 5.1.13) Resetting Git Bash MCP Reminder"
}
]
}
diff --git a/plugins/omo/components/git-bash/package.json b/plugins/omo/components/git-bash/package.json
index 0653dff2..b10b3bce 100644
--- a/plugins/omo/components/git-bash/package.json
+++ b/plugins/omo/components/git-bash/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/codex-git-bash-hook",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex hook component that reminds Windows sessions to prefer the OMO git_bash MCP.",
"type": "module",
"private": true,
diff --git a/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json b/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json
index 61cca136..9f2573be 100644
--- a/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json
+++ b/plugins/omo/components/lazycodex-executor-verify/hooks/hooks.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/lazycodex-executor-verify/dist/cli.js\" hook subagent-stop",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Verifying LazyCodex Executor Evidence"
+ "statusMessage": "(OmO 5.1.13) Verifying LazyCodex Executor Evidence"
}
]
}
diff --git a/plugins/omo/components/lazycodex-executor-verify/package.json b/plugins/omo/components/lazycodex-executor-verify/package.json
index 09dc5108..3566209f 100644
--- a/plugins/omo/components/lazycodex-executor-verify/package.json
+++ b/plugins/omo/components/lazycodex-executor-verify/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-lazycodex-executor-verify",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex SubagentStop evidence verifier for LazyCodex executor completions.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json b/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json
index 3b386230..a412de91 100644
--- a/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json
+++ b/plugins/omo/components/lsp/dist/.omo-runtime-manifest.json
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
- "version": "5.1.12",
- "inputDigest": "sha256:f517d3f26ad40930383addf0f4d9fb57550a14d8564264f4d6b04c20b6057e7a",
+ "version": "5.1.13",
+ "inputDigest": "sha256:1987f296d40fe07041a3d11da647afb8018ce55fed91453f9ed0c42fa6523d38",
"outputs": [
{
"path": "cli.d.ts",
diff --git a/plugins/omo/components/lsp/hooks/hooks.json b/plugins/omo/components/lsp/hooks/hooks.json
index 32662752..24dbaa59 100644
--- a/plugins/omo/components/lsp/hooks/hooks.json
+++ b/plugins/omo/components/lsp/hooks/hooks.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use",
"timeout": 60,
- "statusMessage": "(OmO 5.1.12) Checking LSP Diagnostics"
+ "statusMessage": "(OmO 5.1.13) Checking LSP Diagnostics"
}
]
}
@@ -21,7 +21,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Resetting LSP Diagnostics Cache"
+ "statusMessage": "(OmO 5.1.13) Resetting LSP Diagnostics Cache"
}
]
}
diff --git a/plugins/omo/components/lsp/package.json b/plugins/omo/components/lsp/package.json
index 499de281..19d7bf9b 100644
--- a/plugins/omo/components/lsp/package.json
+++ b/plugins/omo/components/lsp/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-lsp",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex plugin that exposes Language Server Protocol tools and post-edit diagnostics.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.5.md b/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.5.md
index dd35a21a..84d8815f 100644
--- a/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.5.md
+++ b/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.5.md
@@ -41,7 +41,7 @@ omo-codex auto-runs LSP diagnostics after every edit and injects the result: any
# Subagents
-Read-only Codex subagent roles live in `CODEX_HOME/agents/`. Spawn: `multi_agent_v1.spawn_agent({"message":"TASK: act as a <role>. ...","agent_type":"<role>","fork_context":false})`. If your tool list instead has a flat `spawn_agent` with a required `task_name` (`multi_agent_v2`): `spawn_agent({"task_name":"<lowercase_digits_underscores>","message":"TASK: act as a <role>. ...","fork_turns":"none"})` — finished agents end on their own; `wait_agent` takes only `timeout_ms`.
+Read-only Codex subagent roles live in `CODEX_HOME/agents/`. Spawn: `multi_agent_v1.spawn_agent({"message":"TASK: act as a <role>. ...","agent_type":"<role>","fork_context":false})`. If your tool list instead has a flat `spawn_agent` with a required `task_name` (`multi_agent_v2`): `spawn_agent({"task_name":"<lowercase_digits_underscores>","agent_type":"<role>","message":"TASK: act as a <role>. ...","fork_turns":"none"})` — finished agents end on their own; `wait_agent` takes only `timeout_ms`.
- `explorer` - codebase search
- `librarian` - external docs, OSS code, API contracts
diff --git a/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.6.md b/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.6.md
index 6c358fd0..31eee3db 100644
--- a/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.6.md
+++ b/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-5.6.md
@@ -31,7 +31,7 @@ Waiting is not free: a status poll replays the whole accumulated context through
# Subagents
-Read-only Codex subagent roles live in `CODEX_HOME/agents/`. Spawn: `multi_agent_v1.spawn_agent({"message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","agent_type":"<role>","fork_context":false})`. If your tool list instead has a flat `spawn_agent` with a required `task_name` (`multi_agent_v2`): `spawn_agent({"task_name":"<lowercase_digits_underscores>","message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","fork_turns":"none"})` - finished agents end on their own; `wait_agent` takes only `timeout_ms`.
+Read-only Codex subagent roles live in `CODEX_HOME/agents/`. Spawn: `multi_agent_v1.spawn_agent({"message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","agent_type":"<role>","fork_context":false})`. If your tool list instead has a flat `spawn_agent` with a required `task_name` (`multi_agent_v2`): `spawn_agent({"task_name":"<lowercase_digits_underscores>","agent_type":"<role>","message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","fork_turns":"none"})` - finished agents end on their own; `wait_agent` takes only `timeout_ms`.
- `explorer` - codebase search
- `librarian` - external docs, OSS code, API contracts
diff --git a/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-6.md b/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-6.md
index f6f83507..4983dc0f 100644
--- a/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-6.md
+++ b/plugins/omo/components/rules/bundled-rules/hephaestus/gpt-6.md
@@ -78,7 +78,7 @@ When an approach fails, change something material - an algorithm, library, or pa
## Codex tool and skills notes
-The actual Codex tool list and schemas determine the route. Read-only subagent roles live in `CODEX_HOME/agents/`. For `multi_agent_v1`, use `multi_agent_v1.spawn_agent({"message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","agent_type":"<role>","fork_context":false})`. If the tool list instead exposes a flat `spawn_agent` requiring `task_name` (`multi_agent_v2`), use `spawn_agent({"task_name":"<lowercase_digits_underscores>","message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","fork_turns":"none"})`. Finished agents end on their own; `wait_agent` takes only `timeout_ms`. Keep the two payloads distinct and do not send v1 fields to v2 or vice versa.
+The actual Codex tool list and schemas determine the route. Read-only subagent roles live in `CODEX_HOME/agents/`. For `multi_agent_v1`, use `multi_agent_v1.spawn_agent({"message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","agent_type":"<role>","fork_context":false})`. If the tool list instead exposes a flat `spawn_agent` requiring `task_name` (`multi_agent_v2`), use `spawn_agent({"task_name":"<lowercase_digits_underscores>","agent_type":"<role>","message":"TASK: act as a <role>. GOAL: ... STOP WHEN: ... EVIDENCE: ...","fork_turns":"none"})`. Finished agents end on their own; `wait_agent` takes only `timeout_ms`. Keep the two payloads distinct and do not send v1 fields to v2 or vice versa.
- `explorer`: codebase search.
- `librarian`: external docs, OSS code, and API contracts.
diff --git a/plugins/omo/components/rules/hooks/hooks.json b/plugins/omo/components/rules/hooks/hooks.json
index 3c443345..724f6e57 100644
--- a/plugins/omo/components/rules/hooks/hooks.json
+++ b/plugins/omo/components/rules/hooks/hooks.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Loading Project Rules"
+ "statusMessage": "(OmO 5.1.13) Loading Project Rules"
}
]
}
@@ -19,7 +19,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Loading Project Rules"
+ "statusMessage": "(OmO 5.1.13) Loading Project Rules"
}
]
}
@@ -32,7 +32,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Matching Project Rules"
+ "statusMessage": "(OmO 5.1.13) Matching Project Rules"
}
]
}
@@ -45,7 +45,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-compact",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Resetting Project Rule Cache"
+ "statusMessage": "(OmO 5.1.13) Resetting Project Rule Cache"
}
]
}
diff --git a/plugins/omo/components/rules/package.json b/plugins/omo/components/rules/package.json
index 809fe474..e3877f4b 100644
--- a/plugins/omo/components/rules/package.json
+++ b/plugins/omo/components/rules/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-rules",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex plugin that injects project rule files into model context through lifecycle hooks.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/teammode/hooks/hooks.json b/plugins/omo/components/teammode/hooks/hooks.json
index cb4906b0..169ed784 100644
--- a/plugins/omo/components/teammode/hooks/hooks.json
+++ b/plugins/omo/components/teammode/hooks/hooks.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Thread Title Hygiene"
+ "statusMessage": "(OmO 5.1.13) Checking Thread Title Hygiene"
}
]
}
diff --git a/plugins/omo/components/teammode/package.json b/plugins/omo/components/teammode/package.json
index 2bee5bad..6e60d9c6 100644
--- a/plugins/omo/components/teammode/package.json
+++ b/plugins/omo/components/teammode/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/codex-teammode",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex team-mode hook component that keeps background thread titles descriptive after create_thread.",
"type": "module",
"private": true,
diff --git a/plugins/omo/components/telemetry/hooks/hooks.json b/plugins/omo/components/telemetry/hooks/hooks.json
index 5acc1ce3..f6dd1527 100644
--- a/plugins/omo/components/telemetry/hooks/hooks.json
+++ b/plugins/omo/components/telemetry/hooks/hooks.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Recording Session Telemetry"
+ "statusMessage": "(OmO 5.1.13) Recording Session Telemetry"
}
]
}
diff --git a/plugins/omo/components/telemetry/package.json b/plugins/omo/components/telemetry/package.json
index 28ccd044..a9453387 100644
--- a/plugins/omo/components/telemetry/package.json
+++ b/plugins/omo/components/telemetry/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-telemetry",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex plugin component that emits omo-codex anonymous daily-active telemetry on SessionStart.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/ultrawork/hooks/hooks.json b/plugins/omo/components/ultrawork/hooks/hooks.json
index f32e8c87..b814876b 100644
--- a/plugins/omo/components/ultrawork/hooks/hooks.json
+++ b/plugins/omo/components/ultrawork/hooks/hooks.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Checking Ultrawork Trigger"
+ "statusMessage": "(OmO 5.1.13) Checking Ultrawork Trigger"
}
]
}
diff --git a/plugins/omo/components/ultrawork/package.json b/plugins/omo/components/ultrawork/package.json
index 6bb82c1c..93489c34 100644
--- a/plugins/omo/components/ultrawork/package.json
+++ b/plugins/omo/components/ultrawork/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-ultrawork",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex plugin that injects the ultrawork orchestration directive and ships LazyCodex planning, review, QA, and gate agent roles.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json
index 99f7f9e6..cc9ecf15 100644
--- a/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json
+++ b/plugins/omo/components/ulw-execute-continuation/hooks/hooks.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-execute-continuation/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Ulw-Execute Continuation"
+ "statusMessage": "(OmO 5.1.13) Checking Ulw-Execute Continuation"
}
]
}
diff --git a/plugins/omo/components/ulw-execute-continuation/package.json b/plugins/omo/components/ulw-execute-continuation/package.json
index b853ddeb..e42473c2 100644
--- a/plugins/omo/components/ulw-execute-continuation/package.json
+++ b/plugins/omo/components/ulw-execute-continuation/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-ulw-execute-continuation",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex Stop hook continuation injector for omo-codex ulw-execute plans.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/ulw-loop/dist/cli.js b/plugins/omo/components/ulw-loop/dist/cli.js
index 65021e4b..f2f78b10 100644
--- a/plugins/omo/components/ulw-loop/dist/cli.js
+++ b/plugins/omo/components/ulw-loop/dist/cli.js
@@ -4360,25 +4360,82 @@ function readAll(stdin) {
// components/ulw-loop/src/spawn-guard.ts
import { mkdirSync as mkdirSync3 } from "node:fs";
-import { join as join7 } from "node:path";
+import { join as join8 } from "node:path";
+
+// components/ulw-loop/src/registered-agent-roles.ts
+import { readdirSync as readdirSync3, readFileSync as readFileSync6 } from "node:fs";
+import { homedir } from "node:os";
+import { basename, dirname as dirname3, join as join6, resolve as resolve5 } from "node:path";
+var NAME_LINE = /^\s*name\s*=\s*"([^"\n]+)"\s*(?:#.*)?$/m;
+var AGENT_TABLE = /^\s*\[agents\.(?:"([^"\n]+)"|([A-Za-z0-9_-]+))\]\s*(?:#.*)?$/gm;
+function readText(path) {
+ try {
+ return readFileSync6(path, "utf8");
+ } catch {
+ return null;
+ }
+}
+function standaloneRoleNames(agentsDir) {
+ let entries;
+ try {
+ entries = readdirSync3(agentsDir);
+ } catch {
+ return [];
+ }
+ const names = [];
+ for (const entry of entries) {
+ if (!entry.endsWith(".toml"))
+ continue;
+ const text = readText(join6(agentsDir, entry));
+ if (text === null)
+ continue;
+ names.push(text.match(NAME_LINE)?.[1] ?? basename(entry, ".toml"));
+ }
+ return names;
+}
+function configTableRoleNames(configPath) {
+ const text = readText(configPath);
+ if (text === null)
+ return [];
+ return [...text.matchAll(AGENT_TABLE)].map((match) => match[1] ?? match[2] ?? "").filter(Boolean);
+}
+function codexDirs(cwd, env) {
+ const dirs = [resolve5(env["CODEX_HOME"]?.trim() || join6(homedir(), ".codex"))];
+ for (let dir = resolve5(cwd);; dir = dirname3(dir)) {
+ dirs.push(join6(dir, ".codex"));
+ if (dirname3(dir) === dir)
+ break;
+ }
+ return [...new Set(dirs)];
+}
+function registeredAgentRoles(cwd, env = process.env) {
+ const names = new Set;
+ for (const dir of codexDirs(cwd, env)) {
+ for (const name of standaloneRoleNames(join6(dir, "agents")))
+ names.add(name);
+ for (const name of configTableRoleNames(join6(dir, "config.toml")))
+ names.add(name);
+ }
+ return names;
+}
// components/ulw-loop/src/spawn-budget-io.ts
import { randomBytes } from "node:crypto";
-import { existsSync as existsSync7, readFileSync as readFileSync6, renameSync as renameSync2, statSync as statSync3, writeFileSync as writeFileSync2 } from "node:fs";
-import { dirname as dirname3, join as join6 } from "node:path";
+import { existsSync as existsSync7, readFileSync as readFileSync7, renameSync as renameSync2, statSync as statSync3, writeFileSync as writeFileSync2 } from "node:fs";
+import { dirname as dirname4, join as join7 } from "node:path";
function readAdmissionBreaker(sessionId) {
const dataDir = process.env["PLUGIN_DATA"];
if (typeof dataDir !== "string")
return null;
try {
- const value = JSON.parse(readFileSync6(join6(dataDir, "spawn-breaker", `${sessionId}.json`), "utf8"));
+ const value = JSON.parse(readFileSync7(join7(dataDir, "spawn-breaker", `${sessionId}.json`), "utf8"));
return typeof value === "object" && value !== null && "reason" in value && typeof value.reason === "string" ? value.reason : "capacity limit";
} catch {
return null;
}
}
function atomicWriteJson(targetPath, data) {
- const tmp = join6(dirname3(targetPath), `.tmp-${randomBytes(6).toString("hex")}`);
+ const tmp = join7(dirname4(targetPath), `.tmp-${randomBytes(6).toString("hex")}`);
writeFileSync2(tmp, JSON.stringify(data));
renameSync2(tmp, targetPath);
}
@@ -4393,7 +4450,7 @@ function isNonEmptyFile(path) {
}
function readCount(counterPath) {
try {
- const parsed = JSON.parse(readFileSync6(counterPath, "utf8"));
+ const parsed = JSON.parse(readFileSync7(counterPath, "utf8"));
return typeof parsed === "object" && parsed !== null && "count" in parsed && typeof parsed.count === "number" && parsed.count >= 0 ? parsed.count : 0;
} catch (error) {
if (error instanceof Error)
@@ -4403,7 +4460,7 @@ function readCount(counterPath) {
}
function readCounts(counterPath) {
try {
- const parsed = JSON.parse(readFileSync6(counterPath, "utf8"));
+ const parsed = JSON.parse(readFileSync7(counterPath, "utf8"));
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
return {};
const counts = {};
@@ -4433,11 +4490,15 @@ var LAZYCODEX_SPAWN_ROLES = new Set([
"momus",
"plan"
]);
-function spawnRoleDenial(input) {
+function spawnRoleDenial(input, registeredRoles = () => new Set) {
const role = typeof input === "object" && input !== null && "agent_type" in input ? input.agent_type : undefined;
if (typeof role === "string" && LAZYCODEX_SPAWN_ROLES.has(role))
return null;
- return `LazyCodex requires an explicit registered agent_type: ${[...LAZYCODEX_SPAWN_ROLES].join(", ")}. Received ${JSON.stringify(role) ?? "no agent_type"}. Use the matching role and fork_turns: "none" (V2) or fork_context: false (V1), unless full history is deliberately required. The hook cannot see the tool schema; if agent_type is unavailable, stop and report incompatible role routing rather than spawning a generic agent. Describing a role in message does not select its TOML.`;
+ const registered = typeof role === "string" && role.trim() !== "" ? registeredRoles() : new Set;
+ if (typeof role === "string" && registered.has(role))
+ return null;
+ const known = [...new Set([...LAZYCODEX_SPAWN_ROLES, ...registered])];
+ return `LazyCodex requires an explicit registered agent_type: ${known.join(", ")}. Received ${JSON.stringify(role) ?? "no agent_type"}. Use the matching role and fork_turns: "none" (V2) or fork_context: false (V1), unless full history is deliberately required. The hook cannot see the tool schema; if agent_type is unavailable, stop and report incompatible role routing rather than spawning a generic agent. Describing a role in message does not select its TOML.`;
}
// components/ulw-loop/src/spawn-guard.ts
@@ -4461,7 +4522,7 @@ function applySpawnGuards(payload, options = {}) {
if (payload.hook_event_name !== "PreToolUse" || !SPAWN_TOOL_TOKENS.has(payload.tool_name))
return "";
if (resolveToolkitSurface() === "lazycodex") {
- const reason = spawnRoleDenial(payload.tool_input);
+ const reason = spawnRoleDenial(payload.tool_input, () => registeredAgentRoles(payload.cwd));
if (reason !== null)
return deny(reason);
}
@@ -4514,10 +4575,10 @@ async function runSpawnAdmissionRecorderCli(stdin, stdout) {
const dataDir = process.env["PLUGIN_DATA"];
if (typeof dataDir !== "string" || typeof payload["session_id"] !== "string")
return;
- const markerDir = join7(dataDir, "spawn-breaker");
+ const markerDir = join8(dataDir, "spawn-breaker");
try {
mkdirSync3(markerDir, { recursive: true });
- atomicWriteJson(join7(markerDir, `${payload["session_id"]}.json`), {
+ atomicWriteJson(join8(markerDir, `${payload["session_id"]}.json`), {
reason: response,
at: new Date().toISOString()
});
@@ -4546,7 +4607,7 @@ async function runSpawnGuardCli(stdin, stdout) {
}
}
function peekFanOutBudget(stateDir) {
- const counterPath = join7(stateDir, "spawn-count.json");
+ const counterPath = join8(stateDir, "spawn-count.json");
const count = readCount(counterPath) + 1;
const limit = fanOutLimit();
if (count <= limit)
@@ -4554,7 +4615,7 @@ function peekFanOutBudget(stateDir) {
return `ulw-loop spawn fan-out cap reached (${count}/${limit}). Consolidate work into the agents already running, or raise OMO_SPAWN_FANOUT_LIMIT if this volume is intentional.`;
}
function consumeFanOutBudget(stateDir) {
- const counterPath = join7(stateDir, "spawn-count.json");
+ const counterPath = join8(stateDir, "spawn-count.json");
const count = readCount(counterPath) + 1;
atomicWriteJson(counterPath, { count });
const limit = fanOutLimit();
@@ -4569,7 +4630,7 @@ function consumeReviewSpawnBudget(payload, plan, stateDir) {
const goal = plan.goals.find((candidate) => candidate.id === plan.activeGoalId) ?? plan.goals.find((candidate) => isFinalRunCompletionCandidate(plan, candidate));
if (goal === undefined)
return null;
- const counterPath = join7(stateDir, "review-spawn-counts.json");
+ const counterPath = join8(stateDir, "review-spawn-counts.json");
const limit = reviewSpawnLimit();
const counts = readCounts(counterPath);
const key = `${agentType}:${goal.id}:a${goal.attempt}`;
@@ -4594,13 +4655,13 @@ function missingGateArtifact(payload, plan) {
const attemptDir = ulwLoopAttemptEvidenceDir(goal.id, goal.attempt, scope);
for (const name of requiredArtifacts) {
const relative = `${attemptDir}/${name}`;
- if (!isNonEmptyFile(join7(payload.cwd, relative)))
+ if (!isNonEmptyFile(join8(payload.cwd, relative)))
return relative;
}
return null;
}
const manualQa = `.omo/evidence/${goal.id}-manual-qa.md`;
- return isNonEmptyFile(join7(payload.cwd, manualQa)) ? null : manualQa;
+ return isNonEmptyFile(join8(payload.cwd, manualQa)) ? null : manualQa;
}
function isGateReviewerSpawn(toolInput) {
const agentType = reviewAgentType(toolInput);
@@ -4684,8 +4745,8 @@ function readPlan(repoRoot, sessionId) {
}
// components/ulw-loop/src/stop-resume-hook.ts
-import { existsSync as existsSync8, readFileSync as readFileSync7, writeFileSync as writeFileSync3 } from "node:fs";
-import { isAbsolute as isAbsolute3, join as join8, resolve as resolve5, sep as sep3 } from "node:path";
+import { existsSync as existsSync8, readFileSync as readFileSync8, writeFileSync as writeFileSync3 } from "node:fs";
+import { isAbsolute as isAbsolute3, join as join9, resolve as resolve6, sep as sep3 } from "node:path";
var RESUME_CAP = 2;
var CONTEXT_PRESSURE_MARKERS2 = [
"context compacted",
@@ -4753,8 +4814,8 @@ function consumeResumeBudgetLocked(lockPath, stateDir, goalId) {
}
function consumeResumeBudget(stateDir, goalId) {
const ledgerLineCount = readLedgerAt(stateDir).length;
- const counterPath = resolve5(stateDir, `auto-resume-${goalId}.json`);
- const stuckPath = resolve5(stateDir, `auto-resume-${goalId}.stuck`);
+ const counterPath = resolve6(stateDir, `auto-resume-${goalId}.json`);
+ const stuckPath = resolve6(stateDir, `auto-resume-${goalId}.stuck`);
if (!isInsideDir(stateDir, counterPath) || !isInsideDir(stateDir, stuckPath))
return false;
const previous = readCounter(counterPath);
@@ -4768,7 +4829,7 @@ function consumeResumeBudget(stateDir, goalId) {
return true;
}
function isInsideDir(dir, candidate) {
- return candidate.startsWith(resolve5(dir) + sep3);
+ return candidate.startsWith(resolve6(dir) + sep3);
}
function renderResumeDirective(plan, goal, sessionId) {
const normalized = normalizeUlwLoopSessionId(sessionId);
@@ -4796,7 +4857,7 @@ function readCounter(counterPath) {
try {
if (!existsSync8(counterPath))
return null;
- const parsed = JSON.parse(readFileSync7(counterPath, "utf8"));
+ const parsed = JSON.parse(readFileSync8(counterPath, "utf8"));
if (typeof parsed["count"] !== "number" || typeof parsed["ledgerLineCount"] !== "number")
return null;
return { count: parsed["count"], ledgerLineCount: parsed["ledgerLineCount"] };
@@ -4808,7 +4869,7 @@ function readCounter(counterPath) {
}
function boulderContinuationWillFire(cwd, sessionId) {
try {
- const raw = JSON.parse(readFileSync7(join8(cwd, ".omo", "boulder.json"), "utf8"));
+ const raw = JSON.parse(readFileSync8(join9(cwd, ".omo", "boulder.json"), "utf8"));
const works = raw["works"];
const entries = typeof works === "object" && works !== null ? Object.values(works) : [raw];
return entries.some((work) => {
@@ -4827,7 +4888,7 @@ function boulderContinuationWillFire(cwd, sessionId) {
}
function transcriptShowsContextPressure(transcriptPath) {
try {
- const transcript = readFileSync7(transcriptPath, "utf8").toLowerCase();
+ const transcript = readFileSync8(transcriptPath, "utf8").toLowerCase();
return CONTEXT_PRESSURE_MARKERS2.some((marker) => transcript.includes(marker));
} catch (error) {
if (error instanceof Error)
@@ -4839,12 +4900,12 @@ function boulderPlanHasChecklist(cwd, entry) {
const activePlan = entry["active_plan"];
if (typeof activePlan !== "string" || activePlan.trim().length === 0)
return false;
- const planPath = isAbsolute3(activePlan) ? activePlan : join8(cwd, activePlan);
+ const planPath = isAbsolute3(activePlan) ? activePlan : join9(cwd, activePlan);
const worktree = entry["worktree_path"];
- const candidates = typeof worktree === "string" && worktree.trim().length > 0 && !isAbsolute3(activePlan) ? [join8(isAbsolute3(worktree) ? worktree : join8(cwd, worktree), activePlan), planPath] : [planPath];
+ const candidates = typeof worktree === "string" && worktree.trim().length > 0 && !isAbsolute3(activePlan) ? [join9(isAbsolute3(worktree) ? worktree : join9(cwd, worktree), activePlan), planPath] : [planPath];
for (const candidate of candidates) {
try {
- return readFileSync7(candidate, "utf8").split(/\r?\n/).some((line) => line.startsWith("- [ ] ") || line.startsWith("- [x] ") || line.startsWith("- [X] "));
+ return readFileSync8(candidate, "utf8").split(/\r?\n/).some((line) => line.startsWith("- [ ] ") || line.startsWith("- [x] ") || line.startsWith("- [X] "));
} catch (error) {
if (!(error instanceof Error))
throw error;
diff --git a/plugins/omo/components/ulw-loop/dist/registered-agent-roles.d.ts b/plugins/omo/components/ulw-loop/dist/registered-agent-roles.d.ts
new file mode 100644
index 00000000..b6ceafc3
--- /dev/null
+++ b/plugins/omo/components/ulw-loop/dist/registered-agent-roles.d.ts
@@ -0,0 +1 @@
+export declare function registeredAgentRoles(cwd: string, env?: NodeJS.ProcessEnv): ReadonlySet<string>;
diff --git a/plugins/omo/components/ulw-loop/dist/registered-agent-roles.js b/plugins/omo/components/ulw-loop/dist/registered-agent-roles.js
new file mode 100644
index 00000000..693bd9e0
--- /dev/null
+++ b/plugins/omo/components/ulw-loop/dist/registered-agent-roles.js
@@ -0,0 +1,61 @@
+import { readdirSync, readFileSync } from "node:fs";
+import { homedir } from "node:os";
+import { basename, dirname, join, resolve } from "node:path";
+// Codex registers a role from a standalone `agents/*.toml` (keyed by its `name`, else the
+// file stem) or from an `[agents.<name>]` table in config.toml. It reads both under
+// CODEX_HOME and under a project's `.codex/`. Codex still validates the role itself (trust,
+// required fields); this only answers "does a role file declare this name".
+const NAME_LINE = /^\s*name\s*=\s*"([^"\n]+)"\s*(?:#.*)?$/m;
+const AGENT_TABLE = /^\s*\[agents\.(?:"([^"\n]+)"|([A-Za-z0-9_-]+))\]\s*(?:#.*)?$/gm;
+function readText(path) {
+ try {
+ return readFileSync(path, "utf8");
+ }
+ catch {
+ return null;
+ }
+}
+function standaloneRoleNames(agentsDir) {
+ let entries;
+ try {
+ entries = readdirSync(agentsDir);
+ }
+ catch {
+ return [];
+ }
+ const names = [];
+ for (const entry of entries) {
+ if (!entry.endsWith(".toml"))
+ continue;
+ const text = readText(join(agentsDir, entry));
+ if (text === null)
+ continue;
+ names.push(text.match(NAME_LINE)?.[1] ?? basename(entry, ".toml"));
+ }
+ return names;
+}
+function configTableRoleNames(configPath) {
+ const text = readText(configPath);
+ if (text === null)
+ return [];
+ return [...text.matchAll(AGENT_TABLE)].map((match) => match[1] ?? match[2] ?? "").filter(Boolean);
+}
+function codexDirs(cwd, env) {
+ const dirs = [resolve(env["CODEX_HOME"]?.trim() || join(homedir(), ".codex"))];
+ for (let dir = resolve(cwd);; dir = dirname(dir)) {
+ dirs.push(join(dir, ".codex"));
+ if (dirname(dir) === dir)
+ break;
+ }
+ return [...new Set(dirs)];
+}
+export function registeredAgentRoles(cwd, env = process.env) {
+ const names = new Set();
+ for (const dir of codexDirs(cwd, env)) {
+ for (const name of standaloneRoleNames(join(dir, "agents")))
+ names.add(name);
+ for (const name of configTableRoleNames(join(dir, "config.toml")))
+ names.add(name);
+ }
+ return names;
+}
diff --git a/plugins/omo/components/ulw-loop/dist/spawn-guard.js b/plugins/omo/components/ulw-loop/dist/spawn-guard.js
index 54ef8303..44d6ed83 100644
--- a/plugins/omo/components/ulw-loop/dist/spawn-guard.js
+++ b/plugins/omo/components/ulw-loop/dist/spawn-guard.js
@@ -4,6 +4,7 @@ import { parsePreToolUsePayload } from "./codex-hook.js";
import { isFinalRunCompletionCandidate } from "./goal-status.js";
import { ulwLoopAttemptEvidenceDir, ulwLoopDir, ulwLoopStateLockPath } from "./paths.js";
import { readUlwLoopPlanSync } from "./plan-io.js";
+import { registeredAgentRoles } from "./registered-agent-roles.js";
import { atomicWriteJson, isNonEmptyFile, readAdmissionBreaker, readCount, readCounts } from "./spawn-budget-io.js";
import { spawnRoleDenial } from "./spawn-role-guard.js";
import { isStateLockTimeout, withStateLockSync } from "./state-lock.js";
@@ -31,7 +32,7 @@ export function applySpawnGuards(payload, options = {}) {
if (payload.hook_event_name !== "PreToolUse" || !SPAWN_TOOL_TOKENS.has(payload.tool_name))
return "";
if (resolveToolkitSurface() === "lazycodex") {
- const reason = spawnRoleDenial(payload.tool_input);
+ const reason = spawnRoleDenial(payload.tool_input, () => registeredAgentRoles(payload.cwd));
if (reason !== null)
return deny(reason);
}
diff --git a/plugins/omo/components/ulw-loop/dist/spawn-role-guard.d.ts b/plugins/omo/components/ulw-loop/dist/spawn-role-guard.d.ts
index 323a4076..1ce87150 100644
--- a/plugins/omo/components/ulw-loop/dist/spawn-role-guard.d.ts
+++ b/plugins/omo/components/ulw-loop/dist/spawn-role-guard.d.ts
@@ -1,2 +1,2 @@
export declare const LAZYCODEX_SPAWN_ROLES: ReadonlySet<string>;
-export declare function spawnRoleDenial(input: unknown): string | null;
+export declare function spawnRoleDenial(input: unknown, registeredRoles?: () => ReadonlySet<string>): string | null;
diff --git a/plugins/omo/components/ulw-loop/dist/spawn-role-guard.js b/plugins/omo/components/ulw-loop/dist/spawn-role-guard.js
index a0dee22f..032ccf3d 100644
--- a/plugins/omo/components/ulw-loop/dist/spawn-role-guard.js
+++ b/plugins/omo/components/ulw-loop/dist/spawn-role-guard.js
@@ -14,9 +14,13 @@ export const LAZYCODEX_SPAWN_ROLES = new Set([
"momus",
"plan",
]);
-export function spawnRoleDenial(input) {
+export function spawnRoleDenial(input, registeredRoles = () => new Set()) {
const role = typeof input === "object" && input !== null && "agent_type" in input ? input.agent_type : undefined;
if (typeof role === "string" && LAZYCODEX_SPAWN_ROLES.has(role))
return null;
- return `LazyCodex requires an explicit registered agent_type: ${[...LAZYCODEX_SPAWN_ROLES].join(", ")}. Received ${JSON.stringify(role) ?? "no agent_type"}. Use the matching role and fork_turns: "none" (V2) or fork_context: false (V1), unless full history is deliberately required. The hook cannot see the tool schema; if agent_type is unavailable, stop and report incompatible role routing rather than spawning a generic agent. Describing a role in message does not select its TOML.`;
+ const registered = typeof role === "string" && role.trim() !== "" ? registeredRoles() : new Set();
+ if (typeof role === "string" && registered.has(role))
+ return null;
+ const known = [...new Set([...LAZYCODEX_SPAWN_ROLES, ...registered])];
+ return `LazyCodex requires an explicit registered agent_type: ${known.join(", ")}. Received ${JSON.stringify(role) ?? "no agent_type"}. Use the matching role and fork_turns: "none" (V2) or fork_context: false (V1), unless full history is deliberately required. The hook cannot see the tool schema; if agent_type is unavailable, stop and report incompatible role routing rather than spawning a generic agent. Describing a role in message does not select its TOML.`;
}
diff --git a/plugins/omo/components/ulw-loop/hooks/hooks.json b/plugins/omo/components/ulw-loop/hooks/hooks.json
index 8069c616..d2cee8cf 100644
--- a/plugins/omo/components/ulw-loop/hooks/hooks.json
+++ b/plugins/omo/components/ulw-loop/hooks/hooks.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook user-prompt-submit --with-ultrawork",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Ulw-Loop Steering"
+ "statusMessage": "(OmO 5.1.13) Checking Ulw-Loop Steering"
}
]
}
@@ -20,7 +20,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use-spawn",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Recording Spawn Admission"
+ "statusMessage": "(OmO 5.1.13) Recording Spawn Admission"
}
]
}
@@ -33,7 +33,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Enforcing Unlimited Ulw-Loop Budget"
+ "statusMessage": "(OmO 5.1.13) Enforcing Unlimited Ulw-Loop Budget"
}
]
},
@@ -44,7 +44,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook pre-tool-use-spawn",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Guarding Ulw-Loop Spawns"
+ "statusMessage": "(OmO 5.1.13) Guarding Ulw-Loop Spawns"
}
]
}
@@ -56,7 +56,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Ulw-Loop Resume"
+ "statusMessage": "(OmO 5.1.13) Checking Ulw-Loop Resume"
}
]
}
diff --git a/plugins/omo/components/ulw-loop/package.json b/plugins/omo/components/ulw-loop/package.json
index 1eed7363..460934ce 100644
--- a/plugins/omo/components/ulw-loop/package.json
+++ b/plugins/omo/components/ulw-loop/package.json
@@ -1,6 +1,6 @@
{
"name": "@code-yeongyu/codex-ulw-loop",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Codex plugin: durable repo-native multi-goal orchestration with embedded success criteria and observable evidence audit.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/components/ulw-loop/src/registered-agent-roles.ts b/plugins/omo/components/ulw-loop/src/registered-agent-roles.ts
new file mode 100644
index 00000000..a80e383e
--- /dev/null
+++ b/plugins/omo/components/ulw-loop/src/registered-agent-roles.ts
@@ -0,0 +1,60 @@
+import { readdirSync, readFileSync } from "node:fs";
+import { homedir } from "node:os";
+import { basename, dirname, join, resolve } from "node:path";
+
+// Codex registers a role from a standalone `agents/*.toml` (keyed by its `name`, else the
+// file stem) or from an `[agents.<name>]` table in config.toml. It reads both under
+// CODEX_HOME and under a project's `.codex/`. Codex still validates the role itself (trust,
+// required fields); this only answers "does a role file declare this name".
+
+const NAME_LINE = /^\s*name\s*=\s*"([^"\n]+)"\s*(?:#.*)?$/m;
+const AGENT_TABLE = /^\s*\[agents\.(?:"([^"\n]+)"|([A-Za-z0-9_-]+))\]\s*(?:#.*)?$/gm;
+
+function readText(path: string): string | null {
+ try {
+ return readFileSync(path, "utf8");
+ } catch {
+ return null;
+ }
+}
+
+function standaloneRoleNames(agentsDir: string): string[] {
+ let entries: string[];
+ try {
+ entries = readdirSync(agentsDir);
+ } catch {
+ return [];
+ }
+ const names: string[] = [];
+ for (const entry of entries) {
+ if (!entry.endsWith(".toml")) continue;
+ const text = readText(join(agentsDir, entry));
+ if (text === null) continue;
+ names.push(text.match(NAME_LINE)?.[1] ?? basename(entry, ".toml"));
+ }
+ return names;
+}
+
+function configTableRoleNames(configPath: string): string[] {
+ const text = readText(configPath);
+ if (text === null) return [];
+ return [...text.matchAll(AGENT_TABLE)].map((match) => match[1] ?? match[2] ?? "").filter(Boolean);
+}
+
+function codexDirs(cwd: string, env: NodeJS.ProcessEnv): string[] {
+ const dirs = [resolve(env["CODEX_HOME"]?.trim() || join(homedir(), ".codex"))];
+ for (let dir = resolve(cwd); ; dir = dirname(dir)) {
+ dirs.push(join(dir, ".codex"));
+ if (dirname(dir) === dir) break;
+ }
+ return [...new Set(dirs)];
+}
+
+export function registeredAgentRoles(cwd: string, env: NodeJS.ProcessEnv = process.env): ReadonlySet<string> {
+ const names = new Set<string>();
+ for (const dir of codexDirs(cwd, env)) {
+ for (const name of standaloneRoleNames(join(dir, "agents"))) names.add(name);
+ for (const name of configTableRoleNames(join(dir, "config.toml"))) names.add(name);
+ }
+ return names;
+}
diff --git a/plugins/omo/components/ulw-loop/src/spawn-guard.ts b/plugins/omo/components/ulw-loop/src/spawn-guard.ts
index 8b1f2780..515c4ff5 100644
--- a/plugins/omo/components/ulw-loop/src/spawn-guard.ts
+++ b/plugins/omo/components/ulw-loop/src/spawn-guard.ts
@@ -6,6 +6,7 @@ import { parsePreToolUsePayload } from "./codex-hook.js";
import { isFinalRunCompletionCandidate } from "./goal-status.js";
import { ulwLoopAttemptEvidenceDir, ulwLoopDir, ulwLoopStateLockPath } from "./paths.js";
import { readUlwLoopPlanSync } from "./plan-io.js";
+import { registeredAgentRoles } from "./registered-agent-roles.js";
import { atomicWriteJson, isNonEmptyFile, readAdmissionBreaker, readCount, readCounts } from "./spawn-budget-io.js";
import { spawnRoleDenial } from "./spawn-role-guard.js";
import { isStateLockTimeout, type StateLockOptions, withStateLockSync } from "./state-lock.js";
@@ -47,7 +48,7 @@ export interface SpawnGuardOptions {
export function applySpawnGuards(payload: PreToolUsePayload, options: SpawnGuardOptions = {}): string {
if (payload.hook_event_name !== "PreToolUse" || !SPAWN_TOOL_TOKENS.has(payload.tool_name)) return "";
if (resolveToolkitSurface() === "lazycodex") {
- const reason = spawnRoleDenial(payload.tool_input);
+ const reason = spawnRoleDenial(payload.tool_input, () => registeredAgentRoles(payload.cwd));
if (reason !== null) return deny(reason);
}
return applySpawnBudgetGuards(payload, options);
diff --git a/plugins/omo/components/ulw-loop/src/spawn-role-guard.ts b/plugins/omo/components/ulw-loop/src/spawn-role-guard.ts
index 71946208..8b733f8a 100644
--- a/plugins/omo/components/ulw-loop/src/spawn-role-guard.ts
+++ b/plugins/omo/components/ulw-loop/src/spawn-role-guard.ts
@@ -15,8 +15,14 @@ export const LAZYCODEX_SPAWN_ROLES: ReadonlySet<string> = new Set([
"plan",
]);
-export function spawnRoleDenial(input: unknown): string | null {
+export function spawnRoleDenial(
+ input: unknown,
+ registeredRoles: () => ReadonlySet<string> = () => new Set(),
+): string | null {
const role = typeof input === "object" && input !== null && "agent_type" in input ? input.agent_type : undefined;
if (typeof role === "string" && LAZYCODEX_SPAWN_ROLES.has(role)) return null;
- return `LazyCodex requires an explicit registered agent_type: ${[...LAZYCODEX_SPAWN_ROLES].join(", ")}. Received ${JSON.stringify(role) ?? "no agent_type"}. Use the matching role and fork_turns: "none" (V2) or fork_context: false (V1), unless full history is deliberately required. The hook cannot see the tool schema; if agent_type is unavailable, stop and report incompatible role routing rather than spawning a generic agent. Describing a role in message does not select its TOML.`;
+ const registered = typeof role === "string" && role.trim() !== "" ? registeredRoles() : new Set<string>();
+ if (typeof role === "string" && registered.has(role)) return null;
+ const known = [...new Set([...LAZYCODEX_SPAWN_ROLES, ...registered])];
+ return `LazyCodex requires an explicit registered agent_type: ${known.join(", ")}. Received ${JSON.stringify(role) ?? "no agent_type"}. Use the matching role and fork_turns: "none" (V2) or fork_context: false (V1), unless full history is deliberately required. The hook cannot see the tool schema; if agent_type is unavailable, stop and report incompatible role routing rather than spawning a generic agent. Describing a role in message does not select its TOML.`;
}
diff --git a/plugins/omo/components/ulw-loop/test/spawn-role-matrix.test.ts b/plugins/omo/components/ulw-loop/test/spawn-role-matrix.test.ts
index bb96579e..06724d0c 100644
--- a/plugins/omo/components/ulw-loop/test/spawn-role-matrix.test.ts
+++ b/plugins/omo/components/ulw-loop/test/spawn-role-matrix.test.ts
@@ -11,6 +11,7 @@ beforeEach(async () => {
cwd = await mkdtemp(join(tmpdir(), "spawn-role-matrix-"));
vi.stubEnv("OMO_AGENT_TOOLKIT_SURFACE", "lazycodex");
vi.stubEnv("PLUGIN_DATA", join(cwd, "data"));
+ vi.stubEnv("CODEX_HOME", join(cwd, "codex-home"));
});
afterEach(async () => {
vi.unstubAllEnvs();
diff --git a/plugins/omo/components/ulw-loop/test/spawn-role-registered.test.ts b/plugins/omo/components/ulw-loop/test/spawn-role-registered.test.ts
new file mode 100644
index 00000000..b1530560
--- /dev/null
+++ b/plugins/omo/components/ulw-loop/test/spawn-role-registered.test.ts
@@ -0,0 +1,128 @@
+import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { applySpawnGuards } from "../src/spawn-guard.js";
+
+let root: string;
+let project: string;
+let codexHome: string;
+
+beforeEach(async () => {
+ root = await mkdtemp(join(tmpdir(), "spawn-role-registered-"));
+ project = join(root, "project");
+ codexHome = join(root, "codex-home");
+ await mkdir(join(project, "src", "deep"), { recursive: true });
+ vi.stubEnv("OMO_AGENT_TOOLKIT_SURFACE", "lazycodex");
+ vi.stubEnv("PLUGIN_DATA", join(root, "data"));
+ vi.stubEnv("CODEX_HOME", codexHome);
+});
+afterEach(async () => {
+ vi.unstubAllEnvs();
+ await rm(root, { recursive: true, force: true });
+});
+
+async function role(dir: string, file: string, name?: string): Promise<void> {
+ await mkdir(dir, { recursive: true });
+ const header = name === undefined ? "" : `name = "${name}"\n`;
+ await writeFile(join(dir, file), `${header}description = "custom role"\ndeveloper_instructions = "Do the work."\n`);
+}
+
+function spawn(cwd: string, input: Record<string, unknown>): string {
+ return applySpawnGuards({
+ cwd,
+ hook_event_name: "PreToolUse",
+ model: "test",
+ permission_mode: "default",
+ session_id: "registered",
+ tool_name: "spawn_agent",
+ tool_input: {
+ task_name: "check",
+ message: "Perform the assigned read-only analysis.",
+ fork_turns: "none",
+ ...input,
+ },
+ tool_use_id: "call",
+ transcript_path: null,
+ turn_id: "turn",
+ });
+}
+
+function denial(output: string): string | null {
+ if (output === "") return null;
+ const parsed: { hookSpecificOutput: { permissionDecision: string; permissionDecisionReason: string } } =
+ JSON.parse(output);
+ expect(parsed.hookSpecificOutput.permissionDecision).toBe("deny");
+ return parsed.hookSpecificOutput.permissionDecisionReason;
+}
+
+describe("#given custom roles registered outside the bundle", () => {
+ describe("#when a project registers them in .codex/agents", () => {
+ it("#then each registered role spawns, including from a nested working directory", async () => {
+ const agents = join(project, ".codex", "agents");
+ for (const name of ["cashflow_planner", "debt_planner", "wealth_planner", "finance_reviewer"])
+ await role(agents, `${name}.toml`, name);
+
+ for (const name of ["cashflow_planner", "debt_planner", "wealth_planner", "finance_reviewer"]) {
+ expect(denial(spawn(project, { agent_type: name }))).toBeNull();
+ expect(denial(spawn(join(project, "src", "deep"), { agent_type: name }))).toBeNull();
+ }
+ });
+
+ it("#then the role is keyed by its declared name, not the file name", async () => {
+ await role(join(project, ".codex", "agents"), "planner-file.toml", "wealth_planner");
+
+ expect(denial(spawn(project, { agent_type: "wealth_planner" }))).toBeNull();
+ expect(denial(spawn(project, { agent_type: "planner-file" }))).toContain('Received "planner-file"');
+ });
+
+ it("#then a role file without a name field registers under its file name", async () => {
+ await role(join(project, ".codex", "agents"), "cashflow_planner.toml");
+
+ expect(denial(spawn(project, { agent_type: "cashflow_planner" }))).toBeNull();
+ });
+ });
+
+ describe("#when they are registered under CODEX_HOME", () => {
+ it("#then a standalone agents/*.toml role and a config.toml [agents.<name>] role both spawn", async () => {
+ await role(join(codexHome, "agents"), "finance_reviewer.toml", "finance_reviewer");
+ await writeFile(
+ join(codexHome, "config.toml"),
+ '[agents]\nmax_threads = 4\n\n[agents.debt_planner]\nconfig_file = "./agents/debt.toml"\n',
+ );
+
+ expect(denial(spawn(project, { agent_type: "finance_reviewer" }))).toBeNull();
+ expect(denial(spawn(project, { agent_type: "debt_planner" }))).toBeNull();
+ });
+ });
+});
+
+describe("#given the guard's purpose of never spawning an unregistered or generic agent", () => {
+ it("#when the role has no role file anywhere #then it is still denied and the message lists the registered roles", async () => {
+ await role(join(project, ".codex", "agents"), "cashflow_planner.toml", "cashflow_planner");
+
+ const reason = denial(spawn(project, { agent_type: "worker" }));
+
+ expect(reason).toContain('Received "worker"');
+ expect(reason).toContain("cashflow_planner");
+ expect(reason).toContain("lazycodex-worker-medium");
+ });
+
+ it("#when agent_type is missing #then it is denied even with custom roles registered", async () => {
+ await role(join(project, ".codex", "agents"), "cashflow_planner.toml", "cashflow_planner");
+
+ expect(denial(spawn(project, {}))).toContain("Received no agent_type");
+ });
+
+ it("#when a role is registered only in a different project #then this project still denies it", async () => {
+ const other = join(root, "other-project");
+ await role(join(other, ".codex", "agents"), "cashflow_planner.toml", "cashflow_planner");
+
+ expect(denial(spawn(project, { agent_type: "cashflow_planner" }))).toContain('Received "cashflow_planner"');
+ });
+
+ it("#when the agents directory is unreadable or absent #then bundled roles still spawn", async () => {
+ expect(denial(spawn(project, { agent_type: "lazycodex-worker-medium" }))).toBeNull();
+ expect(denial(spawn(project, { agent_type: "explorer" }))).toBeNull();
+ });
+});
diff --git a/plugins/omo/dist/cli-node/index.js b/plugins/omo/dist/cli-node/index.js
index 97733654..54ae547c 100755
--- a/plugins/omo/dist/cli-node/index.js
+++ b/plugins/omo/dist/cli-node/index.js
@@ -65,7 +65,7 @@ var package_default;
var init_package = __esm(() => {
package_default = {
name: "oh-my-opencode",
- version: "5.1.12",
+ version: "5.1.13",
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
main: "./dist/index.js",
types: "dist/index.d.ts",
@@ -242,7 +242,7 @@ var init_package = __esm(() => {
},
devDependencies: {
"@clack/prompts": "^1.8.1",
- "@code-yeongyu/senpi": "2026.10.2",
+ "@code-yeongyu/senpi": "2026.10.3",
"@modelcontextprotocol/sdk": "^1.30.0",
"@oh-my-opencode/agents-md-core": "workspace:*",
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
@@ -300,18 +300,18 @@ var init_package = __esm(() => {
typescript: "^7.0.2"
},
optionalDependencies: {
- "oh-my-opencode-darwin-arm64": "5.1.12",
- "oh-my-opencode-darwin-x64": "5.1.12",
- "oh-my-opencode-darwin-x64-baseline": "5.1.12",
- "oh-my-opencode-linux-arm64": "5.1.12",
- "oh-my-opencode-linux-arm64-musl": "5.1.12",
- "oh-my-opencode-linux-x64": "5.1.12",
- "oh-my-opencode-linux-x64-baseline": "5.1.12",
- "oh-my-opencode-linux-x64-musl": "5.1.12",
- "oh-my-opencode-linux-x64-musl-baseline": "5.1.12",
- "oh-my-opencode-windows-arm64": "5.1.12",
- "oh-my-opencode-windows-x64": "5.1.12",
- "oh-my-opencode-windows-x64-baseline": "5.1.12"
+ "oh-my-opencode-darwin-arm64": "5.1.13",
+ "oh-my-opencode-darwin-x64": "5.1.13",
+ "oh-my-opencode-darwin-x64-baseline": "5.1.13",
+ "oh-my-opencode-linux-arm64": "5.1.13",
+ "oh-my-opencode-linux-arm64-musl": "5.1.13",
+ "oh-my-opencode-linux-x64": "5.1.13",
+ "oh-my-opencode-linux-x64-baseline": "5.1.13",
+ "oh-my-opencode-linux-x64-musl": "5.1.13",
+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.13",
+ "oh-my-opencode-windows-arm64": "5.1.13",
+ "oh-my-opencode-windows-x64": "5.1.13",
+ "oh-my-opencode-windows-x64-baseline": "5.1.13"
},
overrides: {
hono: "^4.13.8",
@@ -89448,7 +89448,7 @@ var package_default2;
var init_package2 = __esm(() => {
package_default2 = {
name: "@oh-my-opencode/omo-codex",
- version: "5.1.12",
+ version: "5.1.13",
type: "module",
private: true,
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -98780,6 +98780,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
join63("extensions", "assets.generated.json"),
join63("extensions", "omo-member.js"),
join63("extensions", "memory-run-supervisor.mjs"),
+ join63("extensions", "gateway-store-worker.mjs"),
...PERSONA_ASSET_FILES.map((filename) => join63("extensions", filename)),
join63("skills", "ast-grep", "SKILL.md"),
join63("skills", "browser", "SKILL.md"),
@@ -98802,6 +98803,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
join63("skills", "visual-qa", "SKILL.md"),
join63("skills-conditional", "x-search", "SKILL.md"),
join63("runtime", "agent-toolkit-sdk", "sdk.js"),
+ join63("runtime", "thread-sdk", "sdk.js"),
join63("runtime", "ast-grep-mcp", "cli.js"),
join63("runtime", "lsp-daemon", "dist", "cli.js"),
join63("runtime", "lsp-daemon", "dist", "index.js"),
@@ -105319,10 +105321,14 @@ function resolveOsProvider2() {
function resolveTransportFactory() {
return transportFactoryOverride2 ?? createDefaultPostHogTransport;
}
+var PLUGIN_TRANSPORT_OPTIONS = { flushAt: 20 };
var NO_OP_POSTHOG2 = {
trackActive: () => {
return;
},
+ flush: async () => {
+ return;
+ },
shutdown: async () => {
return;
}
@@ -105359,6 +105365,16 @@ function logTelemetryDiagnostic(input) {
source: input.source
});
}
+function createProductConfig(source) {
+ const product = createOpencodeTelemetryProductConfig();
+ if (source !== "plugin") {
+ return product;
+ }
+ return {
+ ...product,
+ transportOptions: { ...product.transportOptions, ...PLUGIN_TRANSPORT_OPTIONS }
+ };
+}
function createPostHogClient2(source, options = {}) {
const env = process.env;
if (shouldDisablePostHog(env, options.configEnabled)) {
@@ -105368,7 +105384,7 @@ function createPostHogClient2(source, options = {}) {
diagnostics: logTelemetryDiagnostic,
env: createCoreCompatibleTelemetryEnv(env),
osProvider: resolveOsProvider2(),
- product: createOpencodeTelemetryProductConfig(),
+ product: createProductConfig(source),
source,
transportFactory: resolveTransportFactory()
});
@@ -105387,6 +105403,17 @@ function createPostHogClient2(source, options = {}) {
reason
});
},
+ flush: async () => {
+ try {
+ await client.flush();
+ } catch (error) {
+ log2("[posthog] telemetry flush failed", {
+ error: String(error),
+ errorKind: error instanceof Error ? "error" : "non_error",
+ source
+ });
+ }
+ },
shutdown: async () => {
await client.shutdown();
}
diff --git a/plugins/omo/dist/cli/index.js b/plugins/omo/dist/cli/index.js
index c49688e0..f625399f 100755
--- a/plugins/omo/dist/cli/index.js
+++ b/plugins/omo/dist/cli/index.js
@@ -64,7 +64,7 @@ var package_default;
var init_package = __esm(() => {
package_default = {
name: "oh-my-opencode",
- version: "5.1.12",
+ version: "5.1.13",
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
main: "./dist/index.js",
types: "dist/index.d.ts",
@@ -241,7 +241,7 @@ var init_package = __esm(() => {
},
devDependencies: {
"@clack/prompts": "^1.8.1",
- "@code-yeongyu/senpi": "2026.10.2",
+ "@code-yeongyu/senpi": "2026.10.3",
"@modelcontextprotocol/sdk": "^1.30.0",
"@oh-my-opencode/agents-md-core": "workspace:*",
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
@@ -299,18 +299,18 @@ var init_package = __esm(() => {
typescript: "^7.0.2"
},
optionalDependencies: {
- "oh-my-opencode-darwin-arm64": "5.1.12",
- "oh-my-opencode-darwin-x64": "5.1.12",
- "oh-my-opencode-darwin-x64-baseline": "5.1.12",
- "oh-my-opencode-linux-arm64": "5.1.12",
- "oh-my-opencode-linux-arm64-musl": "5.1.12",
- "oh-my-opencode-linux-x64": "5.1.12",
- "oh-my-opencode-linux-x64-baseline": "5.1.12",
- "oh-my-opencode-linux-x64-musl": "5.1.12",
- "oh-my-opencode-linux-x64-musl-baseline": "5.1.12",
- "oh-my-opencode-windows-arm64": "5.1.12",
- "oh-my-opencode-windows-x64": "5.1.12",
- "oh-my-opencode-windows-x64-baseline": "5.1.12"
+ "oh-my-opencode-darwin-arm64": "5.1.13",
+ "oh-my-opencode-darwin-x64": "5.1.13",
+ "oh-my-opencode-darwin-x64-baseline": "5.1.13",
+ "oh-my-opencode-linux-arm64": "5.1.13",
+ "oh-my-opencode-linux-arm64-musl": "5.1.13",
+ "oh-my-opencode-linux-x64": "5.1.13",
+ "oh-my-opencode-linux-x64-baseline": "5.1.13",
+ "oh-my-opencode-linux-x64-musl": "5.1.13",
+ "oh-my-opencode-linux-x64-musl-baseline": "5.1.13",
+ "oh-my-opencode-windows-arm64": "5.1.13",
+ "oh-my-opencode-windows-x64": "5.1.13",
+ "oh-my-opencode-windows-x64-baseline": "5.1.13"
},
overrides: {
hono: "^4.13.8",
@@ -89369,7 +89369,7 @@ var package_default2;
var init_package2 = __esm(() => {
package_default2 = {
name: "@oh-my-opencode/omo-codex",
- version: "5.1.12",
+ version: "5.1.13",
type: "module",
private: true,
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -98701,6 +98701,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
join63("extensions", "assets.generated.json"),
join63("extensions", "omo-member.js"),
join63("extensions", "memory-run-supervisor.mjs"),
+ join63("extensions", "gateway-store-worker.mjs"),
...PERSONA_ASSET_FILES.map((filename) => join63("extensions", filename)),
join63("skills", "ast-grep", "SKILL.md"),
join63("skills", "browser", "SKILL.md"),
@@ -98723,6 +98724,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
join63("skills", "visual-qa", "SKILL.md"),
join63("skills-conditional", "x-search", "SKILL.md"),
join63("runtime", "agent-toolkit-sdk", "sdk.js"),
+ join63("runtime", "thread-sdk", "sdk.js"),
join63("runtime", "ast-grep-mcp", "cli.js"),
join63("runtime", "lsp-daemon", "dist", "cli.js"),
join63("runtime", "lsp-daemon", "dist", "index.js"),
@@ -105240,10 +105242,14 @@ function resolveOsProvider2() {
function resolveTransportFactory() {
return transportFactoryOverride2 ?? createDefaultPostHogTransport;
}
+var PLUGIN_TRANSPORT_OPTIONS = { flushAt: 20 };
var NO_OP_POSTHOG2 = {
trackActive: () => {
return;
},
+ flush: async () => {
+ return;
+ },
shutdown: async () => {
return;
}
@@ -105280,6 +105286,16 @@ function logTelemetryDiagnostic(input) {
source: input.source
});
}
+function createProductConfig(source) {
+ const product = createOpencodeTelemetryProductConfig();
+ if (source !== "plugin") {
+ return product;
+ }
+ return {
+ ...product,
+ transportOptions: { ...product.transportOptions, ...PLUGIN_TRANSPORT_OPTIONS }
+ };
+}
function createPostHogClient2(source, options = {}) {
const env = process.env;
if (shouldDisablePostHog(env, options.configEnabled)) {
@@ -105289,7 +105305,7 @@ function createPostHogClient2(source, options = {}) {
diagnostics: logTelemetryDiagnostic,
env: createCoreCompatibleTelemetryEnv(env),
osProvider: resolveOsProvider2(),
- product: createOpencodeTelemetryProductConfig(),
+ product: createProductConfig(source),
source,
transportFactory: resolveTransportFactory()
});
@@ -105308,6 +105324,17 @@ function createPostHogClient2(source, options = {}) {
reason
});
},
+ flush: async () => {
+ try {
+ await client.flush();
+ } catch (error) {
+ log2("[posthog] telemetry flush failed", {
+ error: String(error),
+ errorKind: error instanceof Error ? "error" : "non_error",
+ source
+ });
+ }
+ },
shutdown: async () => {
await client.shutdown();
}
diff --git a/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json b/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json
index 4434b921..6a2467bb 100644
--- a/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json
+++ b/plugins/omo/hooks/post-compact-resetting-git-bash-mcp-reminder.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/git-bash/dist/cli.js\" hook post-compact",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Resetting Git Bash MCP Reminder",
+ "statusMessage": "(OmO 5.1.13) Resetting Git Bash MCP Reminder",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\git-bash\\dist\\cli.js\" hook post-compact"
}
],
diff --git a/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json b/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json
index a9591972..b7ad6452 100644
--- a/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json
+++ b/plugins/omo/hooks/post-compact-resetting-lsp-diagnostics-cache.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/lsp/dist/cli.js\" hook post-compact",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Resetting LSP Diagnostics Cache",
+ "statusMessage": "(OmO 5.1.13) Resetting LSP Diagnostics Cache",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lsp\\dist\\cli.js\" hook post-compact"
}
],
diff --git a/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json b/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json
index b68965f2..d2f89c73 100644
--- a/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json
+++ b/plugins/omo/hooks/post-compact-resetting-project-rule-cache.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook post-compact",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Resetting Project Rule Cache",
+ "statusMessage": "(OmO 5.1.13) Resetting Project Rule Cache",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook post-compact"
}
],
diff --git a/plugins/omo/hooks/post-tool-use-checking-comments.json b/plugins/omo/hooks/post-tool-use-checking-comments.json
index ef9a8e63..dc5dc052 100644
--- a/plugins/omo/hooks/post-tool-use-checking-comments.json
+++ b/plugins/omo/hooks/post-tool-use-checking-comments.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/comment-checker/dist/cli.js\" hook post-tool-use",
"timeout": 30,
- "statusMessage": "(OmO 5.1.12) Checking Comments",
+ "statusMessage": "(OmO 5.1.13) Checking Comments",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\comment-checker\\dist\\cli.js\" hook post-tool-use"
}
],
diff --git a/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json b/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json
index cacc840b..420da3c7 100644
--- a/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json
+++ b/plugins/omo/hooks/post-tool-use-checking-lsp-diagnostics.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/lsp/dist/cli.js\" hook post-tool-use",
"timeout": 60,
- "statusMessage": "(OmO 5.1.12) Checking LSP Diagnostics",
+ "statusMessage": "(OmO 5.1.13) Checking LSP Diagnostics",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lsp\\dist\\cli.js\" hook post-tool-use"
}
],
diff --git a/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json b/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json
index 7502bea7..aa72101c 100644
--- a/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json
+++ b/plugins/omo/hooks/post-tool-use-checking-thread-title-hygiene.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/teammode/dist/cli.js\" hook post-tool-use",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Thread Title Hygiene",
+ "statusMessage": "(OmO 5.1.13) Checking Thread Title Hygiene",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\teammode\\dist\\cli.js\" hook post-tool-use"
}
]
diff --git a/plugins/omo/hooks/post-tool-use-matching-project-rules.json b/plugins/omo/hooks/post-tool-use-matching-project-rules.json
index b4683d53..2e18907f 100644
--- a/plugins/omo/hooks/post-tool-use-matching-project-rules.json
+++ b/plugins/omo/hooks/post-tool-use-matching-project-rules.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook post-tool-use",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Matching Project Rules",
+ "statusMessage": "(OmO 5.1.13) Matching Project Rules",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook post-tool-use"
}
],
diff --git a/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json b/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json
index a0df5d69..7765c476 100644
--- a/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json
+++ b/plugins/omo/hooks/post-tool-use-recording-spawn-admission.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook post-tool-use-spawn",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Recording Spawn Admission",
+ "statusMessage": "(OmO 5.1.13) Recording Spawn Admission",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook post-tool-use-spawn"
}
]
diff --git a/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json
index 99896b1e..ba50b733 100644
--- a/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json
+++ b/plugins/omo/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook pre-tool-use",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Enforcing Unlimited Goal Budget",
+ "statusMessage": "(OmO 5.1.13) Enforcing Unlimited Goal Budget",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook pre-tool-use"
}
],
diff --git a/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json b/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json
index 3d9187fb..094228ae 100644
--- a/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json
+++ b/plugins/omo/hooks/pre-tool-use-guarding-ulw-loop-spawns.json
@@ -8,7 +8,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook pre-tool-use-spawn",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Guarding Ulw-Loop Spawns",
+ "statusMessage": "(OmO 5.1.13) Guarding Ulw-Loop Spawns",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook pre-tool-use-spawn"
}
]
diff --git a/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json b/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json
index 1eef6b73..f933858d 100644
--- a/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json
+++ b/plugins/omo/hooks/pre-tool-use-recommending-git-bash-mcp.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/git-bash/dist/cli.js\" hook pre-tool-use",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Recommending Git Bash MCP",
+ "statusMessage": "(OmO 5.1.13) Recommending Git Bash MCP",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\git-bash\\dist\\cli.js\" hook pre-tool-use"
}
],
diff --git a/plugins/omo/hooks/session-start-checking-auto-update.json b/plugins/omo/hooks/session-start-checking-auto-update.json
index c6f0896a..96b6abc2 100644
--- a/plugins/omo/hooks/session-start-checking-auto-update.json
+++ b/plugins/omo/hooks/session-start-checking-auto-update.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/scripts/auto-update.mjs\" hook session-start",
"timeout": 15,
- "statusMessage": "(OmO 5.1.12) Checking Auto Update",
+ "statusMessage": "(OmO 5.1.13) Checking Auto Update",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\scripts\\auto-update.mjs\" hook session-start"
}
],
diff --git a/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json b/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json
index 4b712ff3..05dc963a 100644
--- a/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json
+++ b/plugins/omo/hooks/session-start-checking-bootstrap-provisioning.json
@@ -8,7 +8,7 @@
"command": "node \"${PLUGIN_ROOT}/components/bootstrap/dist/cli.js\" hook session-start",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\bootstrap.ps1\"",
"timeout": 30,
- "statusMessage": "(OmO 5.1.12) Checking Bootstrap Provisioning"
+ "statusMessage": "(OmO 5.1.13) Checking Bootstrap Provisioning"
}
]
}
diff --git a/plugins/omo/hooks/session-start-loading-project-rules.json b/plugins/omo/hooks/session-start-loading-project-rules.json
index 5bc24c51..7aaedf28 100644
--- a/plugins/omo/hooks/session-start-loading-project-rules.json
+++ b/plugins/omo/hooks/session-start-loading-project-rules.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook session-start",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Loading Project Rules",
+ "statusMessage": "(OmO 5.1.13) Loading Project Rules",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook session-start"
}
]
diff --git a/plugins/omo/hooks/session-start-recording-session-telemetry.json b/plugins/omo/hooks/session-start-recording-session-telemetry.json
index 2cef13b2..35dbde72 100644
--- a/plugins/omo/hooks/session-start-recording-session-telemetry.json
+++ b/plugins/omo/hooks/session-start-recording-session-telemetry.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/telemetry/dist/cli.js\" hook session-start",
"timeout": 15,
- "statusMessage": "(OmO 5.1.12) Recording Session Telemetry",
+ "statusMessage": "(OmO 5.1.13) Recording Session Telemetry",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\telemetry\\dist\\cli.js\" hook session-start"
}
]
diff --git a/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json b/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json
index f74a31ef..884cd12f 100644
--- a/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json
+++ b/plugins/omo/hooks/stop-checking-ulw-execute-continuation.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-execute-continuation/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Ulw-Execute Continuation",
+ "statusMessage": "(OmO 5.1.13) Checking Ulw-Execute Continuation",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-execute-continuation\\dist\\cli.js\" hook stop"
}
]
diff --git a/plugins/omo/hooks/stop-checking-ulw-loop-resume.json b/plugins/omo/hooks/stop-checking-ulw-loop-resume.json
index 4804c90e..7a91aa07 100644
--- a/plugins/omo/hooks/stop-checking-ulw-loop-resume.json
+++ b/plugins/omo/hooks/stop-checking-ulw-loop-resume.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook stop",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Ulw-Loop Resume",
+ "statusMessage": "(OmO 5.1.13) Checking Ulw-Loop Resume",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook stop"
}
]
diff --git a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json
index 35be1869..b0f0e9aa 100644
--- a/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json
+++ b/plugins/omo/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/lazycodex-executor-verify/dist/cli.js\" hook subagent-stop",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Verifying LazyCodex Executor Evidence",
+ "statusMessage": "(OmO 5.1.13) Verifying LazyCodex Executor Evidence",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\lazycodex-executor-verify\\dist\\cli.js\" hook subagent-stop"
}
],
diff --git a/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json b/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json
index 48889496..6edca3a2 100644
--- a/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json
+++ b/plugins/omo/hooks/user-prompt-submit-checking-ultrawork-trigger.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ultrawork/dist/cli.js\" hook user-prompt-submit",
"timeout": 5,
- "statusMessage": "(OmO 5.1.12) Checking Ultrawork Trigger",
+ "statusMessage": "(OmO 5.1.13) Checking Ultrawork Trigger",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ultrawork\\dist\\cli.js\" hook user-prompt-submit"
}
]
diff --git a/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json b/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json
index e3ec7290..e0aaf52b 100644
--- a/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json
+++ b/plugins/omo/hooks/user-prompt-submit-checking-ulw-loop-steering.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js\" hook user-prompt-submit",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Checking Ulw-Loop Steering",
+ "statusMessage": "(OmO 5.1.13) Checking Ulw-Loop Steering",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\ulw-loop\\dist\\cli.js\" hook user-prompt-submit"
}
]
diff --git a/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json b/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json
index 317a8ca4..f2639b2a 100644
--- a/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json
+++ b/plugins/omo/hooks/user-prompt-submit-loading-project-rules.json
@@ -7,7 +7,7 @@
"type": "command",
"command": "node \"${PLUGIN_ROOT}/components/rules/dist/cli.js\" hook user-prompt-submit",
"timeout": 10,
- "statusMessage": "(OmO 5.1.12) Loading Project Rules",
+ "statusMessage": "(OmO 5.1.13) Loading Project Rules",
"commandWindows": "powershell -NoProfile -ExecutionPolicy Bypass -File \"${PLUGIN_ROOT}\\components\\bootstrap\\scripts\\node-dispatch.ps1\" \"${PLUGIN_ROOT}\\components\\rules\\dist\\cli.js\" hook user-prompt-submit"
}
]
diff --git a/plugins/omo/package-lock.json b/plugins/omo/package-lock.json
index 77012e3b..799b3387 100644
--- a/plugins/omo/package-lock.json
+++ b/plugins/omo/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@sisyphuslabs/omo-codex-plugin",
- "version": "5.1.12",
+ "version": "5.1.13",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@sisyphuslabs/omo-codex-plugin",
- "version": "5.1.12",
+ "version": "5.1.13",
"workspaces": [
"components/comment-checker",
"components/git-bash",
@@ -95,7 +95,7 @@
},
"components/comment-checker": {
"name": "@code-yeongyu/codex-comment-checker",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"bin": {
"omo-comment-checker": "dist/cli.js"
@@ -117,7 +117,7 @@
},
"components/git-bash": {
"name": "@sisyphuslabs/codex-git-bash-hook",
- "version": "5.1.12",
+ "version": "5.1.13",
"bin": {
"omo-git-bash-hook": "dist/cli.js"
},
@@ -131,7 +131,7 @@
},
"components/lazycodex-executor-verify": {
"name": "@code-yeongyu/codex-lazycodex-executor-verify",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"bin": {
"lazycodex-executor-verify": "dist/cli.js"
@@ -149,7 +149,7 @@
},
"components/lsp": {
"name": "@code-yeongyu/codex-lsp",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"dependencies": {
"@code-yeongyu/lsp-daemon": "file:../../../../lsp-daemon",
@@ -171,7 +171,7 @@
},
"components/rules": {
"name": "@code-yeongyu/codex-rules",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"dependencies": {
"picomatch": "^4.0.7"
@@ -194,7 +194,7 @@
},
"components/teammode": {
"name": "@sisyphuslabs/codex-teammode",
- "version": "5.1.12",
+ "version": "5.1.13",
"devDependencies": {
"@types/node": "^26.6.2",
"@vitest/coverage-v8": "5.0.1",
@@ -208,7 +208,7 @@
},
"components/telemetry": {
"name": "@code-yeongyu/codex-telemetry",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"bin": {
"omo-telemetry": "dist/cli.js"
@@ -227,7 +227,7 @@
},
"components/ultrawork": {
"name": "@code-yeongyu/codex-ultrawork",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"bin": {
"omo-ultrawork": "dist/cli.js"
@@ -246,7 +246,7 @@
},
"components/ulw-execute-continuation": {
"name": "@code-yeongyu/codex-ulw-execute-continuation",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"bin": {
"omo-ulw-execute-continuation": "dist/cli.js"
@@ -264,7 +264,7 @@
},
"components/ulw-loop": {
"name": "@code-yeongyu/codex-ulw-loop",
- "version": "5.1.12",
+ "version": "5.1.13",
"license": "MIT",
"bin": {
"omo-ulw-loop": "dist/cli.js",
diff --git a/plugins/omo/package.json b/plugins/omo/package.json
index 7ef86e67..2daa0ccf 100644
--- a/plugins/omo/package.json
+++ b/plugins/omo/package.json
@@ -1,6 +1,6 @@
{
"name": "@sisyphuslabs/omo-codex-plugin",
- "version": "5.1.12",
+ "version": "5.1.13",
"description": "Aggregate Codex plugin root for OMO components.",
"type": "module",
"packageManager": "[email protected]",
diff --git a/plugins/omo/skills/browser/runtime/omowright/manifest.json b/plugins/omo/skills/browser/runtime/omowright/manifest.json
index 5ef023ff..ccc1a1ac 100644
--- a/plugins/omo/skills/browser/runtime/omowright/manifest.json
+++ b/plugins/omo/skills/browser/runtime/omowright/manifest.json
@@ -5,5 +5,5 @@
"index.js": "b6b064fab277031c6c51f5a58b84b31040f9960bf767bf646adc0540c1d25c1b",
"page-bundle.js": "bfd51e8383cf47200d57387bbbed258bce5a3a3d00c38fc108034d2888e23f0c"
},
- "stagedAtUtc": "2026-10-03T02:25:39.410Z"
+ "stagedAtUtc": "2026-10-03T10:08:04.243Z"
}
diff --git a/plugins/omo/test/aggregate-plugin-fixture.mjs b/plugins/omo/test/aggregate-plugin-fixture.mjs
index 713b36d3..1dda9f67 100644
--- a/plugins/omo/test/aggregate-plugin-fixture.mjs
+++ b/plugins/omo/test/aggregate-plugin-fixture.mjs
@@ -232,10 +232,11 @@ export function findSpawnAgentCallsWithoutIsolation(content) {
export function findSpawnAgentCallsWithUnsupportedParameters(content) {
return findSpawnAgentCalls(content).flatMap((entry) => {
- const allowsObjectAgentType = entry.receiver === "multi_agent_v1";
+ // Both multi_agent_v1 and the flat v2 spawn_agent take an object agent_type once roles are
+ // configured (codex exposes it whenever agent_roles is non-empty), and the LazyCodex spawn
+ // guard requires it, so only the direct keyword form is unsupported.
const parameters = spawnParameters(entry.call)
- .filter(({ name, direct }) => name === "model" || name === "reasoning_effort" ||
- (name === "agent_type" && (direct || !allowsObjectAgentType)))
+ .filter(({ name, direct }) => name === "model" || name === "reasoning_effort" || (name === "agent_type" && direct))
.map(({ name }) => name);
return parameters.length === 0 ? [] : [{ ...entry, parameters }];
});
diff --git a/plugins/omo/test/aggregate.test.mjs b/plugins/omo/test/aggregate.test.mjs
index 60e468f4..7b85aad6 100644
--- a/plugins/omo/test/aggregate.test.mjs
+++ b/plugins/omo/test/aggregate.test.mjs
@@ -37,7 +37,7 @@ test("#given spawn parameter mutations and role-like prose #when parsed #then on
const content = [
'multi_agent_v1.spawn_agent({"message":"model and reasoning_effort are prose","agent_type":"explorer","fork_context":false})',
'multi_agent_v1.spawn_agent(agent_type="explorer", message="invalid keyword role", fork_context=false)',
- 'spawn_agent({"message":"invalid flat role","agent_type":"explorer","fork_turns":"none"})',
+ 'spawn_agent({"message":"valid flat role","agent_type":"explorer","fork_turns":"none"})',
'spawn_agent(agent_type="explorer", message="invalid direct role", fork_turns="none")',
'spawn_agent({"message":"model and agent_type are prose","metadata":{"model":"nested","agent_type":"nested"},"fork_turns":"none"})',
'spawn_agent({"message":"placeholder prose","agent_type":...,"fork_turns":"none"})',
@@ -47,7 +47,7 @@ test("#given spawn parameter mutations and role-like prose #when parsed #then on
assert.deepEqual(
findSpawnAgentCallsWithUnsupportedParameters(content).map(({ parameters }) => parameters),
- [["agent_type"], ["agent_type"], ["agent_type"], ["model"], ["reasoning_effort"]],
+ [["agent_type"], ["agent_type"], ["model"], ["reasoning_effort"]],
);
});