{"record":{"id":"cf379e72e320e13c","repo":"deepseek-ai/deepseek-harness","slug":"subagent-claude-code-this-name-child-run-fai","errorCode":null,"errorMessage":"subagent-claude-code \"${this.name}\": child run failed (${stopReason}): %o","messagePattern":"subagent-claude-code \"(.+?)\": child run failed \\((.+?)\\): %o","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/subagent/subagent-claude-code/src/index.ts","lineNumber":114,"sourceCode":"        throw new Error(\n          'subagent-claude-code: request was aborted before SDK startup',\n        )\n      }\n      const failure = claudeCodeStartupFailure(error)\n      this.ctx.logger.warn(\n        `subagent-claude-code \"${this.name}\": child start failed: %o`,\n        failure,\n      )\n      throw failure\n    }\n    const spec: ClaudeCodeRunSpec = {\n      cwd,\n      permissionMode: this.config.permissionMode,\n      env: this.config.env,\n      disposeGraceMs: this.config.disposeGraceMs,\n      spawn: spawnSpec => this.ctx.subprocess.spawn(spawnSpec),\n      onError: (error, stopReason) => {\n        this.ctx.logger.warn(\n          `subagent-claude-code \"${this.name}\": child run failed (${stopReason}): %o`,\n          error,\n        )\n      },\n    }\n    return startClaudeCodeRun(request, spec)\n  }\n}\n\n/**\n * Register one Profile-named Claude Code provider.\n * @param ctx - context carrying shared subagent and subprocess services.\n * @param config - registry name, permission mode, child environment, and disposal grace.\n */\nexport function apply(ctx: Context, config: Config): void {\n  const resolved: ResolvedConfig = {\n    providerName: config.providerName ?? DEFAULT_PROVIDER_NAME,\n    env: config.env as Record<string, string>,","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/subagent/subagent-claude-code/src/index.ts#L96-L132","documentation":"Error \"subagent-claude-code \"${this.name}\": child run failed (${stopReason}): %o\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/subagent/subagent-claude-code/src/index.ts:114 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Review the child run output for the reported stopReason; fix the child agent error and retry the subagent task."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}