refactor(agents): rename orchestrator-sisyphus to atlas
Rename agent file and update all references. Function createOrchestratorSisyphusAgent → createAtlasAgent. Metadata orchestratorSisyphusPromptMetadata → atlasPromptMetadata. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
e05ac04e66
commit
96bcd9788a
@ -29,9 +29,7 @@ function buildAgentSelectionSection(agents: AvailableAgent[]): string {
|
|||||||
| \`explore\` | Codebase exploration, pattern finding |
|
| \`explore\` | Codebase exploration, pattern finding |
|
||||||
| \`librarian\` | External docs, GitHub examples, OSS reference |
|
| \`librarian\` | External docs, GitHub examples, OSS reference |
|
||||||
| \`frontend-ui-ux-engineer\` | Visual design, UI implementation |
|
| \`frontend-ui-ux-engineer\` | Visual design, UI implementation |
|
||||||
| \`document-writer\` | README, API docs, guides |
|
| \`document-writer\` | README, API docs, guides |`
|
||||||
| \`git-master\` | Git commits (ALWAYS use for commits) |
|
|
||||||
| \`debugging-master\` | Complex debugging sessions |`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const rows = agents.map((a) => {
|
const rows = agents.map((a) => {
|
||||||
@ -43,9 +41,7 @@ function buildAgentSelectionSection(agents: AvailableAgent[]): string {
|
|||||||
|
|
||||||
| Agent | Best For |
|
| Agent | Best For |
|
||||||
|-------|----------|
|
|-------|----------|
|
||||||
${rows.join("\n")}
|
${rows.join("\n")}`
|
||||||
| \`git-master\` | Git commits (ALWAYS use for commits) |
|
|
||||||
| \`debugging-master\` | Complex debugging sessions |`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildCategorySection(userCategories?: Record<string, CategoryConfig>): string {
|
function buildCategorySection(userCategories?: Record<string, CategoryConfig>): string {
|
||||||
@ -119,8 +115,7 @@ function buildDecisionMatrix(agents: AvailableAgent[], userCategories?: Record<s
|
|||||||
if (agentNames.includes("oracle")) rows.push("| Code review / architecture | `agent=\"oracle\"` |")
|
if (agentNames.includes("oracle")) rows.push("| Code review / architecture | `agent=\"oracle\"` |")
|
||||||
if (agentNames.includes("explore")) rows.push("| Find code in codebase | `agent=\"explore\"` |")
|
if (agentNames.includes("explore")) rows.push("| Find code in codebase | `agent=\"explore\"` |")
|
||||||
if (agentNames.includes("librarian")) rows.push("| Look up library docs | `agent=\"librarian\"` |")
|
if (agentNames.includes("librarian")) rows.push("| Look up library docs | `agent=\"librarian\"` |")
|
||||||
rows.push("| Git commit | `agent=\"git-master\"` |")
|
rows.push("| Git commit | `category=\"quick\", skills=[\"git-master\"]` |")
|
||||||
rows.push("| Debug complex issue | `agent=\"debugging-master\"` |")
|
|
||||||
|
|
||||||
return `##### Decision Matrix
|
return `##### Decision Matrix
|
||||||
|
|
||||||
@ -1258,9 +1253,9 @@ The answer is almost always YES.
|
|||||||
**DELEGATION TARGETS:**
|
**DELEGATION TARGETS:**
|
||||||
- \`delegate_task(category="ultrabrain", background=false)\` → backend/logic implementation
|
- \`delegate_task(category="ultrabrain", background=false)\` → backend/logic implementation
|
||||||
- \`delegate_task(category="visual-engineering", background=false)\` → frontend/UI implementation
|
- \`delegate_task(category="visual-engineering", background=false)\` → frontend/UI implementation
|
||||||
- \`delegate_task(agent="git-master", background=false)\` → ALL git commits
|
- \`delegate_task(category="quick", skills=["git-master"], background=false)\` → ALL git commits
|
||||||
- \`delegate_task(agent="document-writer", background=false)\` → documentation
|
- \`delegate_task(agent="document-writer", background=false)\` → documentation
|
||||||
- \`delegate_task(agent="debugging-master", background=false)\` → complex debugging
|
- \`delegate_task(agent="oracle", background=false)\` → complex debugging (consult first)
|
||||||
|
|
||||||
**⚠️ CRITICAL: background=false is MANDATORY for all task delegations.**
|
**⚠️ CRITICAL: background=false is MANDATORY for all task delegations.**
|
||||||
|
|
||||||
@ -1458,9 +1453,9 @@ function buildDynamicOrchestratorPrompt(ctx?: OrchestratorContext): string {
|
|||||||
.replace("{SKILLS_SECTION}", skillsSection)
|
.replace("{SKILLS_SECTION}", skillsSection)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createOrchestratorSisyphusAgent(ctx: OrchestratorContext): AgentConfig {
|
export function createAtlasAgent(ctx: OrchestratorContext): AgentConfig {
|
||||||
if (!ctx.model) {
|
if (!ctx.model) {
|
||||||
throw new Error("createOrchestratorSisyphusAgent requires a model in context")
|
throw new Error("createAtlasAgent requires a model in context")
|
||||||
}
|
}
|
||||||
const restrictions = createAgentToolRestrictions([
|
const restrictions = createAgentToolRestrictions([
|
||||||
"task",
|
"task",
|
||||||
@ -1479,10 +1474,10 @@ export function createOrchestratorSisyphusAgent(ctx: OrchestratorContext): Agent
|
|||||||
} as AgentConfig
|
} as AgentConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
export const orchestratorSisyphusPromptMetadata: AgentPromptMetadata = {
|
export const atlasPromptMetadata: AgentPromptMetadata = {
|
||||||
category: "advisor",
|
category: "advisor",
|
||||||
cost: "EXPENSIVE",
|
cost: "EXPENSIVE",
|
||||||
promptAlias: "Orchestrator Sisyphus",
|
promptAlias: "Atlas",
|
||||||
triggers: [
|
triggers: [
|
||||||
{
|
{
|
||||||
domain: "Todo list orchestration",
|
domain: "Todo list orchestration",
|
||||||
@ -10,4 +10,4 @@ export { createDocumentWriterAgent, DOCUMENT_WRITER_PROMPT_METADATA } from "./do
|
|||||||
export { createMultimodalLookerAgent, MULTIMODAL_LOOKER_PROMPT_METADATA } from "./multimodal-looker"
|
export { createMultimodalLookerAgent, MULTIMODAL_LOOKER_PROMPT_METADATA } from "./multimodal-looker"
|
||||||
export { createMetisAgent, METIS_SYSTEM_PROMPT, metisPromptMetadata } from "./metis"
|
export { createMetisAgent, METIS_SYSTEM_PROMPT, metisPromptMetadata } from "./metis"
|
||||||
export { createMomusAgent, MOMUS_SYSTEM_PROMPT, momusPromptMetadata } from "./momus"
|
export { createMomusAgent, MOMUS_SYSTEM_PROMPT, momusPromptMetadata } from "./momus"
|
||||||
export { createOrchestratorSisyphusAgent, orchestratorSisyphusPromptMetadata } from "./orchestrator-sisyphus"
|
export { createAtlasAgent, atlasPromptMetadata } from "./atlas"
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import { createFrontendUiUxEngineerAgent, FRONTEND_PROMPT_METADATA } from "./fro
|
|||||||
import { createDocumentWriterAgent, DOCUMENT_WRITER_PROMPT_METADATA } from "./document-writer"
|
import { createDocumentWriterAgent, DOCUMENT_WRITER_PROMPT_METADATA } from "./document-writer"
|
||||||
import { createMultimodalLookerAgent, MULTIMODAL_LOOKER_PROMPT_METADATA } from "./multimodal-looker"
|
import { createMultimodalLookerAgent, MULTIMODAL_LOOKER_PROMPT_METADATA } from "./multimodal-looker"
|
||||||
import { createMetisAgent } from "./metis"
|
import { createMetisAgent } from "./metis"
|
||||||
import { createOrchestratorSisyphusAgent } from "./orchestrator-sisyphus"
|
import { createAtlasAgent } from "./atlas"
|
||||||
import { createMomusAgent } from "./momus"
|
import { createMomusAgent } from "./momus"
|
||||||
import type { AvailableAgent } from "./sisyphus-prompt-builder"
|
import type { AvailableAgent } from "./sisyphus-prompt-builder"
|
||||||
import { deepMerge } from "../shared"
|
import { deepMerge } from "../shared"
|
||||||
@ -30,7 +30,7 @@ const agentSources: Record<BuiltinAgentName, AgentSource> = {
|
|||||||
"Momus (Plan Reviewer)": createMomusAgent,
|
"Momus (Plan Reviewer)": createMomusAgent,
|
||||||
// Note: atlas is handled specially in createBuiltinAgents()
|
// Note: atlas is handled specially in createBuiltinAgents()
|
||||||
// because it needs OrchestratorContext, not just a model string
|
// because it needs OrchestratorContext, not just a model string
|
||||||
atlas: createOrchestratorSisyphusAgent as unknown as AgentFactory,
|
atlas: createAtlasAgent as unknown as AgentFactory,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -209,7 +209,7 @@ export function createBuiltinAgents(
|
|||||||
if (!disabledAgents.includes("atlas")) {
|
if (!disabledAgents.includes("atlas")) {
|
||||||
const orchestratorOverride = agentOverrides["atlas"]
|
const orchestratorOverride = agentOverrides["atlas"]
|
||||||
const orchestratorModel = orchestratorOverride?.model ?? systemDefaultModel
|
const orchestratorModel = orchestratorOverride?.model ?? systemDefaultModel
|
||||||
let orchestratorConfig = createOrchestratorSisyphusAgent({
|
let orchestratorConfig = createAtlasAgent({
|
||||||
model: orchestratorModel,
|
model: orchestratorModel,
|
||||||
availableAgents,
|
availableAgents,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user