Files
oh-my-opencode/src/agents/atlas/default.ts
T
YeonGyu-Kim c01a89ba43 feat(atlas): mandate parallel delegation and add per-model variants
Atlas was delegating tasks one-by-one because the workflow framed parallel
as a conditional ("if tasks can run in parallel..."), letting models default
to the safer sequential path. The new shared ATLAS_PARALLEL_BY_DEFAULT block
flips the default: parallel is mandatory; sequential requires a NAMED
blocking dependency (input dependency or file conflict).

Adds two new prompt variants — kimi (K2.6 thinking-mode calibration:
commitment framing + concrete budgets) and opus-4-7 (counters 4.7's lower
default subagent count and literal-following bias). Recalibrates default
(Claude 4.6 family), gpt (GPT-5.5 outcome-first / decision rules over
absolutes), and gemini (preserves TOOL_CALL_MANDATE; replaces stale
session_id with task_id). All five variants share the parallel mandate
positioned BEFORE the workflow so "mandate above" references resolve.

Strengthens the orchestrator-direct-edit reminder hooks
(ORCHESTRATOR_DELEGATION_REQUIRED + DIRECT_WORK_REMINDER) with the central
challenge "Do you ACTUALLY need to be the one doing this?" — replacing the
previous bullet-heavy framing.

Tests now parametrized over all 5 variants. Adds prompt-routing.test
covering GPT/Gemini/Kimi/Opus 4.7/default routing and edge cases, plus a
session_id rejection test (every variant must use task_id for retries).
2026-05-08 16:50:41 +09:00

23 lines
676 B
TypeScript

import { buildAtlasPrompt } from "./shared-prompt"
import {
DEFAULT_ATLAS_INTRO,
DEFAULT_ATLAS_WORKFLOW,
DEFAULT_ATLAS_PARALLEL_ADDENDUM,
DEFAULT_ATLAS_VERIFICATION_RULES,
DEFAULT_ATLAS_BOUNDARIES,
DEFAULT_ATLAS_CRITICAL_RULES,
} from "./default-prompt-sections"
export const ATLAS_SYSTEM_PROMPT = buildAtlasPrompt({
intro: DEFAULT_ATLAS_INTRO,
workflow: DEFAULT_ATLAS_WORKFLOW,
parallelAddendum: DEFAULT_ATLAS_PARALLEL_ADDENDUM,
verificationRules: DEFAULT_ATLAS_VERIFICATION_RULES,
boundaries: DEFAULT_ATLAS_BOUNDARIES,
criticalRules: DEFAULT_ATLAS_CRITICAL_RULES,
})
export function getDefaultAtlasPrompt(): string {
return ATLAS_SYSTEM_PROMPT
}