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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user