fix: inject agent identity into system prompt for built-in agents (#2964)

Built-in agents (Sisyphus, Hephaestus, Atlas) now include explicit
identity section in their system prompts, matching custom agent behavior.

12 agent identity tests pass, 266 total pass, tsc clean.

Closes #2964
This commit is contained in:
YeonGyu-Kim
2026-04-07 15:24:01 +09:00
parent be562905d6
commit b2e7ddfb73
7 changed files with 188 additions and 6 deletions
+7 -2
View File
@@ -7,7 +7,7 @@ import type {
AvailableSkill,
AvailableCategory,
} from "../dynamic-agent-prompt-builder";
import { categorizeTools } from "../dynamic-agent-prompt-builder";
import { categorizeTools, buildAgentIdentitySection } from "../dynamic-agent-prompt-builder";
import { buildHephaestusPrompt as buildGptPrompt } from "./gpt";
import { buildHephaestusPrompt as buildGpt53CodexPrompt } from "./gpt-5-3-codex";
@@ -87,7 +87,12 @@ function buildDynamicHephaestusPrompt(ctx?: HephaestusContext): string {
break;
}
return basePrompt;
const agentIdentity = buildAgentIdentitySection(
"Hephaestus",
"Autonomous deep worker for software engineering from OhMyOpenCode",
);
return `${agentIdentity}\n${basePrompt}`;
}
export function createHephaestusAgent(