Files
oh-my-opencode/src/agents/dynamic-agent-prompt-builder.ts
T
YeonGyu-Kim caaa3d4c08 refactor(hephaestus): tighten GPT-5.5 prompt for outcome-first density
Compress 6 discovery sections into one Discovery & Retrieval section, remove three-way echo of "drive the artifact" between Goal, Manual QA Gate, and Forbidden stops (now once + cross-ref), split persona prose into Tone vs Autonomy & Collaboration per OpenAI's GPT-5.5 prompting guide, trim Output formatting from 13 prior-restating bullets to 5 environment-specific ones, and defer the Oracle wait policy to the dynamic oracleSection so it lives in a single source of truth.

Add buildFrontendGuidanceSection: conditional injection that only emits the anti-slop frontend block when `visual-engineering` category is unavailable, since the category-skills guide already forces visual work to delegate when the category exists.

Static prose drops 277 -> ~175 lines (-37%); every Hephaestus identity item preserved (Manual QA Gate surface map, Intent table + commitment line, three-attempt failure protocol, Hard invariants, no defensive code, AGENTS.md and dirty worktree handling, four dynamic placeholders).
2026-05-06 13:54:24 +09:00

32 lines
804 B
TypeScript

export type {
AvailableAgent,
AvailableTool,
AvailableSkill,
AvailableCategory,
} from "./dynamic-agent-prompt-types"
export { categorizeTools } from "./dynamic-agent-tool-categorization"
export {
buildAgentIdentitySection,
buildKeyTriggersSection,
buildToolSelectionTable,
buildExploreSection,
buildLibrarianSection,
buildDelegationTable,
buildOracleSection,
buildFrontendGuidanceSection,
buildNonClaudePlannerSection,
buildParallelDelegationSection,
} from "./dynamic-agent-core-sections"
export { buildCategorySkillsDelegationGuide } from "./dynamic-agent-category-skills-guide"
export {
buildHardBlocksSection,
buildAntiPatternsSection,
buildToolCallFormatSection,
buildUltraworkSection,
buildAntiDuplicationSection,
} from "./dynamic-agent-policy-sections"