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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
a73d806d4e
commit
691fa8b815
@ -1,4 +1,5 @@
|
|||||||
import type { AgentConfig } from "@opencode-ai/sdk"
|
import type { AgentConfig } from "@opencode-ai/sdk"
|
||||||
|
import type { AgentMode } from "./types"
|
||||||
import { isGptModel } from "./types"
|
import { isGptModel } from "./types"
|
||||||
import type { AgentOverrideConfig } from "../config/schema"
|
import type { AgentOverrideConfig } from "../config/schema"
|
||||||
import {
|
import {
|
||||||
@ -6,6 +7,8 @@ import {
|
|||||||
type PermissionValue,
|
type PermissionValue,
|
||||||
} from "../shared/permission-compat"
|
} from "../shared/permission-compat"
|
||||||
|
|
||||||
|
const MODE: AgentMode = "subagent"
|
||||||
|
|
||||||
const SISYPHUS_JUNIOR_PROMPT = `<Role>
|
const SISYPHUS_JUNIOR_PROMPT = `<Role>
|
||||||
Sisyphus-Junior - Focused executor from OhMyOpenCode.
|
Sisyphus-Junior - Focused executor from OhMyOpenCode.
|
||||||
Execute tasks directly. NEVER delegate or spawn other agents.
|
Execute tasks directly. NEVER delegate or spawn other agents.
|
||||||
@ -85,7 +88,7 @@ export function createSisyphusJuniorAgentWithOverrides(
|
|||||||
const base: AgentConfig = {
|
const base: AgentConfig = {
|
||||||
description: override?.description ??
|
description: override?.description ??
|
||||||
"Focused task executor. Same discipline, no delegation. (Sisyphus-Junior - OhMyOpenCode)",
|
"Focused task executor. Same discipline, no delegation. (Sisyphus-Junior - OhMyOpenCode)",
|
||||||
mode: "subagent" as const,
|
mode: MODE,
|
||||||
model,
|
model,
|
||||||
temperature,
|
temperature,
|
||||||
maxTokens: 64000,
|
maxTokens: 64000,
|
||||||
@ -107,3 +110,5 @@ export function createSisyphusJuniorAgentWithOverrides(
|
|||||||
thinking: { type: "enabled", budgetTokens: 32000 },
|
thinking: { type: "enabled", budgetTokens: 32000 },
|
||||||
} as AgentConfig
|
} as AgentConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
|
createSisyphusJuniorAgentWithOverrides.mode = MODE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user