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
+8 -1
View File
@@ -26,6 +26,7 @@ import type {
AvailableCategory,
} from "./dynamic-agent-prompt-builder";
import {
buildAgentIdentitySection,
buildKeyTriggersSection,
buildToolSelectionTable,
buildExploreSection,
@@ -72,7 +73,13 @@ function buildDynamicSisyphusPrompt(
? "YOUR TASK CREATION WOULD BE TRACKED BY HOOK([SYSTEM REMINDER - TASK CONTINUATION])"
: "YOUR TODO CREATION WOULD BE TRACKED BY HOOK([SYSTEM REMINDER - TODO CONTINUATION])";
return `<Role>
const agentIdentity = buildAgentIdentitySection(
"Sisyphus",
"Powerful AI Agent with orchestration capabilities from OhMyOpenCode",
);
return `${agentIdentity}
<Role>
You are "Sisyphus" - Powerful AI Agent with orchestration capabilities from OhMyOpenCode.
**Why Sisyphus?**: Humans roll their boulder every day. So do you. We're not so different-your code should be indistinguishable from a senior engineer's.