From bc65fcea7ecb816f5191f22823015b6c6a232feb Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 3 Jan 2026 12:51:04 +0900 Subject: [PATCH] refactor(sisyphus-prompt-builder): rename buildUltraworkAgentTable to buildUltraworkAgentSection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename function to better reflect output format (bullet points, not table) - Change output from markdown table to bullet point list - Update sorting logic while maintaining agent priority 🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/agents/sisyphus-prompt-builder.ts | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/agents/sisyphus-prompt-builder.ts b/src/agents/sisyphus-prompt-builder.ts index f205ffd..2c29c7e 100644 --- a/src/agents/sisyphus-prompt-builder.ts +++ b/src/agents/sisyphus-prompt-builder.ts @@ -308,20 +308,8 @@ export function buildAntiPatternsSection(agents: AvailableAgent[]): string { ${patterns.join("\n")}` } -export function buildUltraworkAgentTable(agents: AvailableAgent[]): string { - if (agents.length === 0) { - return `| Agent | When | -|-------|------| -| explore (multiple) | Codebase search, patterns, structures | -| librarian (multiple) | External docs, GitHub OSS, remote repos | -| plan | Work breakdown (NEVER plan yourself) | -| oracle | Architecture, debugging after 2+ failures |` - } - - const rows: string[] = [ - "| Agent | When |", - "|-------|------|", - ] +export function buildUltraworkAgentSection(agents: AvailableAgent[]): string { + if (agents.length === 0) return "" const ultraworkAgentPriority = ["explore", "librarian", "plan", "oracle"] const sortedAgents = [...agents].sort((a, b) => { @@ -333,11 +321,12 @@ export function buildUltraworkAgentTable(agents: AvailableAgent[]): string { return aIdx - bIdx }) + const lines: string[] = [] for (const agent of sortedAgents) { const shortDesc = agent.description.split(".")[0] || agent.description const suffix = (agent.name === "explore" || agent.name === "librarian") ? " (multiple)" : "" - rows.push(`| ${agent.name}${suffix} | ${shortDesc} |`) + lines.push(`- **${agent.name}${suffix}**: ${shortDesc}`) } - return rows.join("\n") + return lines.join("\n") }