deepseek-ai/deepseek-harness · error · CodexRunFailure
subagent-codex: Product subagent failure (product: Codex; st
Error message
subagent-codex: Product subagent failure (product: Codex; stage: initialize; category: unknown)
What it means
Error "subagent-codex: Product subagent failure (product: Codex; stage: initialize; category: unknown)" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/subagent/subagent-codex/src/index.ts:90
if (parentCwd === undefined) {
throw new Error(
'subagent-codex: no working directory for the child — delegate from a parent session that has one',
)
}
let cwd: string
try {
cwd = resolveChildCwd(
'subagent-codex',
undefined,
parentCwd,
)
} catch (error: unknown) {
if (request.signal.aborted) {
throw new Error(
'subagent-codex: request was aborted before app-server startup',
)
}
throw codexStartupFailure(error)
}
const spec: CodexRunSpec = {
cwd,
permissionMode: this.config.permissionMode,
env: this.config.env,
disposeGraceMs: this.config.disposeGraceMs,
spawn: spawnSpec => this.ctx.subprocess.spawn(spawnSpec),
onError: (error, stopReason) => {
this.ctx.logger.warn(
`subagent-codex "${this.name}": child run failed (${stopReason}): ${error.message}`,
)
},
}
return startCodexRun(request, spec)
}
}
/**View on GitHub (pinned to b150a551b8)
Solutions
- Check the Codex app-server installation, credentials, and logs; retry after fixing initialization.
When it happens
Trigger: Thrown at packages/subagent/subagent-codex/src/index.ts:90 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/8eb188b668a35cd8.
Report an issue: GitHub.