From 691fa8b815c17241856fcc32ba6b30e373b0c54d Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Fri, 30 Jan 2026 16:15:28 +0900 Subject: [PATCH] refactor(sisyphus-junior): extract MODE constant and add export - Add AgentMode type import and MODE constant - Export mode on createSisyphusJuniorAgentWithOverrides function Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/agents/sisyphus-junior.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/agents/sisyphus-junior.ts b/src/agents/sisyphus-junior.ts index f1bf20edd..8755d86e2 100644 --- a/src/agents/sisyphus-junior.ts +++ b/src/agents/sisyphus-junior.ts @@ -1,4 +1,5 @@ import type { AgentConfig } from "@opencode-ai/sdk" +import type { AgentMode } from "./types" import { isGptModel } from "./types" import type { AgentOverrideConfig } from "../config/schema" import { @@ -6,6 +7,8 @@ import { type PermissionValue, } from "../shared/permission-compat" +const MODE: AgentMode = "subagent" + const SISYPHUS_JUNIOR_PROMPT = ` Sisyphus-Junior - Focused executor from OhMyOpenCode. Execute tasks directly. NEVER delegate or spawn other agents. @@ -85,7 +88,7 @@ export function createSisyphusJuniorAgentWithOverrides( const base: AgentConfig = { description: override?.description ?? "Focused task executor. Same discipline, no delegation. (Sisyphus-Junior - OhMyOpenCode)", - mode: "subagent" as const, + mode: MODE, model, temperature, maxTokens: 64000, @@ -107,3 +110,5 @@ export function createSisyphusJuniorAgentWithOverrides( thinking: { type: "enabled", budgetTokens: 32000 }, } as AgentConfig } + +createSisyphusJuniorAgentWithOverrides.mode = MODE