oh-my-opencode 5.0.0-beta.42 → 5.0.0-beta.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +2 -2
- package/README.ko.md +4 -4
- package/README.md +4 -4
- package/README.ru.md +2 -2
- package/README.zh-cn.md +2 -2
- package/dist/agents/gpt-prompt-identity.d.ts +1 -1
- package/dist/agents/types.d.ts +2 -0
- package/dist/cli/index.js +168 -78
- package/dist/cli-node/index.js +168 -78
- package/dist/index.js +234 -125
- package/dist/tools/delegate-task/builtin-categories.d.ts +2 -1
- package/dist/tools/delegate-task/builtin-category-definition.d.ts +1 -1
- package/dist/tools/delegate-task/constants.d.ts +2 -2
- package/dist/tools/delegate-task/openai-categories.d.ts +7 -2
- package/dist/tui.js +149 -59
- package/package.json +18 -18
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
- package/dist/tools/delegate-task/anthropic-categories.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -19951,7 +19951,7 @@ var AGENT_MODEL_REQUIREMENTS = {
|
|
|
19951
19951
|
fallbackChain: [
|
|
19952
19952
|
{
|
|
19953
19953
|
providers: ["anthropic", "github-copilot", "opencode"],
|
|
19954
|
-
model: "claude-fable-5",
|
|
19954
|
+
model: "claude-fable-5-1",
|
|
19955
19955
|
variant: "xhigh"
|
|
19956
19956
|
},
|
|
19957
19957
|
{
|
|
@@ -19977,10 +19977,9 @@ var AGENT_MODEL_REQUIREMENTS = {
|
|
|
19977
19977
|
},
|
|
19978
19978
|
momus: {
|
|
19979
19979
|
fallbackChain: [
|
|
19980
|
-
{ providers: ["openai", "openai-codex"], model: "gpt-
|
|
19981
|
-
{ providers: ["github-copilot"], model: "gpt-
|
|
19982
|
-
{ providers: ["openai", "openai-codex", "opencode"], model: "gpt-
|
|
19983
|
-
{ providers: ["github-copilot"], model: "gpt-5.6-sol", variant: "high" },
|
|
19980
|
+
{ providers: ["openai", "openai-codex"], model: "gpt-6-astra", variant: "xhigh" },
|
|
19981
|
+
{ providers: ["github-copilot"], model: "gpt-6-astra", variant: "high" },
|
|
19982
|
+
{ providers: ["openai", "openai-codex", "opencode"], model: "gpt-6-astra", variant: "high" },
|
|
19984
19983
|
{
|
|
19985
19984
|
providers: ["anthropic", "github-copilot", "opencode"],
|
|
19986
19985
|
model: "claude-opus-5",
|
|
@@ -20028,6 +20027,11 @@ var AGENT_MODEL_REQUIREMENTS = {
|
|
|
20028
20027
|
var CATEGORY_MODEL_REQUIREMENTS = {
|
|
20029
20028
|
"visual-engineering": {
|
|
20030
20029
|
fallbackChain: [
|
|
20030
|
+
{
|
|
20031
|
+
providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],
|
|
20032
|
+
model: "claude-fable-5-1",
|
|
20033
|
+
variant: "max"
|
|
20034
|
+
},
|
|
20031
20035
|
{
|
|
20032
20036
|
providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],
|
|
20033
20037
|
model: "claude-opus-5",
|
|
@@ -20037,17 +20041,14 @@ var CATEGORY_MODEL_REQUIREMENTS = {
|
|
|
20037
20041
|
providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode"],
|
|
20038
20042
|
model: "kimi-k3",
|
|
20039
20043
|
variant: "max"
|
|
20040
|
-
},
|
|
20041
|
-
{ providers: ["zai-coding-plan", "opencode-go"], model: "glm-5.2", variant: "max" },
|
|
20042
|
-
{
|
|
20043
|
-
providers: ["openai", "openai-codex", "github-copilot", "opencode"],
|
|
20044
|
-
model: "gpt-5.6-sol",
|
|
20045
|
-
variant: "medium"
|
|
20046
20044
|
}
|
|
20047
20045
|
]
|
|
20048
20046
|
},
|
|
20049
20047
|
ultrabrain: {
|
|
20050
20048
|
fallbackChain: [
|
|
20049
|
+
{ providers: ["openai", "openai-codex"], model: "gpt-6-astra", variant: "max" },
|
|
20050
|
+
{ providers: ["github-copilot"], model: "gpt-6-astra", variant: "max" },
|
|
20051
|
+
{ providers: ["openai", "openai-codex", "opencode"], model: "gpt-6-astra", variant: "max" },
|
|
20051
20052
|
{ providers: ["openai", "openai-codex"], model: "gpt-5.6-sol", variant: "max" },
|
|
20052
20053
|
{ providers: ["github-copilot"], model: "gpt-5.6-sol", variant: "max" },
|
|
20053
20054
|
{ providers: ["openai", "openai-codex", "opencode"], model: "gpt-5.6-sol", variant: "max" }
|
|
@@ -20055,6 +20056,11 @@ var CATEGORY_MODEL_REQUIREMENTS = {
|
|
|
20055
20056
|
},
|
|
20056
20057
|
deep: {
|
|
20057
20058
|
fallbackChain: [
|
|
20059
|
+
{
|
|
20060
|
+
providers: ["openai", "openai-codex", "github-copilot", "opencode"],
|
|
20061
|
+
model: "gpt-6-astra",
|
|
20062
|
+
variant: "high"
|
|
20063
|
+
},
|
|
20058
20064
|
{
|
|
20059
20065
|
providers: ["openai", "openai-codex", "github-copilot", "opencode"],
|
|
20060
20066
|
model: "gpt-5.6-sol",
|
|
@@ -20066,7 +20072,7 @@ var CATEGORY_MODEL_REQUIREMENTS = {
|
|
|
20066
20072
|
fallbackChain: [
|
|
20067
20073
|
{
|
|
20068
20074
|
providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],
|
|
20069
|
-
model: "claude-fable-5",
|
|
20075
|
+
model: "claude-fable-5-1",
|
|
20070
20076
|
variant: "xhigh"
|
|
20071
20077
|
},
|
|
20072
20078
|
{
|
|
@@ -20125,6 +20131,11 @@ var CATEGORY_MODEL_REQUIREMENTS = {
|
|
|
20125
20131
|
},
|
|
20126
20132
|
"unspecified-high": {
|
|
20127
20133
|
fallbackChain: [
|
|
20134
|
+
{
|
|
20135
|
+
providers: ["openai", "openai-codex", "github-copilot", "opencode"],
|
|
20136
|
+
model: "gpt-6-astra",
|
|
20137
|
+
variant: "high"
|
|
20138
|
+
},
|
|
20128
20139
|
{
|
|
20129
20140
|
providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],
|
|
20130
20141
|
model: "claude-opus-5",
|
|
@@ -20140,17 +20151,16 @@ var CATEGORY_MODEL_REQUIREMENTS = {
|
|
|
20140
20151
|
},
|
|
20141
20152
|
writing: {
|
|
20142
20153
|
fallbackChain: [
|
|
20143
|
-
{
|
|
20144
|
-
providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode"],
|
|
20145
|
-
model: "kimi-k3",
|
|
20146
|
-
variant: "low"
|
|
20147
|
-
},
|
|
20148
20154
|
{
|
|
20149
20155
|
providers: ["anthropic", "anthropic-api", "github-copilot", "opencode"],
|
|
20150
|
-
model: "claude-
|
|
20151
|
-
variant: "
|
|
20156
|
+
model: "claude-fable-5-1",
|
|
20157
|
+
variant: "medium"
|
|
20152
20158
|
},
|
|
20153
|
-
{
|
|
20159
|
+
{
|
|
20160
|
+
providers: ["kimi-for-coding", "moonshotai", "opencode-go", "opencode"],
|
|
20161
|
+
model: "kimi-k3",
|
|
20162
|
+
variant: "max"
|
|
20163
|
+
}
|
|
20154
20164
|
]
|
|
20155
20165
|
}
|
|
20156
20166
|
};
|
|
@@ -20266,11 +20276,11 @@ var EXACT_ALIAS_RULES = [
|
|
|
20266
20276
|
var EXACT_ALIAS_RULES_BY_MODEL = new Map(EXACT_ALIAS_RULES.map((rule) => [rule.aliasModelID, rule]));
|
|
20267
20277
|
var PATTERN_ALIAS_RULES = [
|
|
20268
20278
|
{
|
|
20269
|
-
ruleID: "openai-gpt-
|
|
20270
|
-
description: "Normalizes OpenCode's OpenAI GPT
|
|
20279
|
+
ruleID: "openai-gpt-fast-service-tier-alias",
|
|
20280
|
+
description: "Normalizes OpenCode's OpenAI GPT fast service-tier IDs to canonical snapshot IDs.",
|
|
20271
20281
|
providerIDs: ["openai"],
|
|
20272
20282
|
allowedSubproviderHosts: ["vercel"],
|
|
20273
|
-
match: (normalizedModelID) => /^gpt-5\.6-(?:sol|terra|luna)-fast$/.test(normalizedModelID),
|
|
20283
|
+
match: (normalizedModelID) => /^(?:gpt-5\.6-(?:sol|terra|luna)|gpt-6-astra)-fast$/.test(normalizedModelID),
|
|
20274
20284
|
canonicalize: (normalizedModelID) => normalizedModelID.slice(0, -"-fast".length)
|
|
20275
20285
|
},
|
|
20276
20286
|
{
|
|
@@ -20476,6 +20486,14 @@ var HEURISTIC_MODEL_FAMILY_REGISTRY = [
|
|
|
20476
20486
|
reasoningEfforts: ["none", "minimal", "low", "medium", "high"],
|
|
20477
20487
|
supportsTemperature: false
|
|
20478
20488
|
},
|
|
20489
|
+
{
|
|
20490
|
+
family: "gpt-6",
|
|
20491
|
+
includes: ["gpt-6"],
|
|
20492
|
+
variants: ["low", "medium", "high", "xhigh", "max"],
|
|
20493
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
20494
|
+
reasoningEffortAliases: { none: "low", minimal: "low" },
|
|
20495
|
+
supportsTemperature: false
|
|
20496
|
+
},
|
|
20479
20497
|
{
|
|
20480
20498
|
family: "gpt-5",
|
|
20481
20499
|
includes: ["gpt-5"],
|
|
@@ -21653,6 +21671,37 @@ var SUPPLEMENTAL_MODEL_CAPABILITIES = {
|
|
|
21653
21671
|
output: 262144
|
|
21654
21672
|
}
|
|
21655
21673
|
},
|
|
21674
|
+
"claude-fable-5-1": {
|
|
21675
|
+
id: "claude-fable-5-1",
|
|
21676
|
+
family: "claude-fable",
|
|
21677
|
+
reasoning: true,
|
|
21678
|
+
temperature: false,
|
|
21679
|
+
toolCall: true,
|
|
21680
|
+
modalities: {
|
|
21681
|
+
input: ["text", "image", "pdf"],
|
|
21682
|
+
output: ["text"]
|
|
21683
|
+
},
|
|
21684
|
+
limit: {
|
|
21685
|
+
context: 1e6,
|
|
21686
|
+
output: 128000
|
|
21687
|
+
}
|
|
21688
|
+
},
|
|
21689
|
+
"gpt-6-astra": {
|
|
21690
|
+
id: "gpt-6-astra",
|
|
21691
|
+
family: "gpt",
|
|
21692
|
+
reasoning: true,
|
|
21693
|
+
temperature: false,
|
|
21694
|
+
toolCall: true,
|
|
21695
|
+
modalities: {
|
|
21696
|
+
input: ["text", "image"],
|
|
21697
|
+
output: ["text"]
|
|
21698
|
+
},
|
|
21699
|
+
limit: {
|
|
21700
|
+
context: 1050000,
|
|
21701
|
+
input: 922000,
|
|
21702
|
+
output: 128000
|
|
21703
|
+
}
|
|
21704
|
+
},
|
|
21656
21705
|
"gpt-5.6-sol": {
|
|
21657
21706
|
id: "gpt-5.6-sol",
|
|
21658
21707
|
family: "gpt",
|
|
@@ -21980,8 +22029,8 @@ function readRuntimeModelLimitOutput(runtimeModel) {
|
|
|
21980
22029
|
|
|
21981
22030
|
// packages/model-core/src/model-capabilities/get-model-capabilities.ts
|
|
21982
22031
|
var MODEL_ID_OVERRIDES = {};
|
|
21983
|
-
var
|
|
21984
|
-
var
|
|
22032
|
+
var GITHUB_COPILOT_GPT_MODEL = /(?:^|\/)gpt-[56](?:[.-]|$)/;
|
|
22033
|
+
var GITHUB_COPILOT_GPT_OVERRIDE = {
|
|
21985
22034
|
variants: ["low", "medium", "high"],
|
|
21986
22035
|
reasoningEfforts: ["none", "minimal", "low", "medium", "high"]
|
|
21987
22036
|
};
|
|
@@ -21994,7 +22043,7 @@ function getOverride(modelID) {
|
|
|
21994
22043
|
function getProviderOverride(providerID, modelID) {
|
|
21995
22044
|
if (providerID.trim().toLowerCase() !== "github-copilot")
|
|
21996
22045
|
return;
|
|
21997
|
-
return
|
|
22046
|
+
return GITHUB_COPILOT_GPT_MODEL.test(normalizeLookupModelID2(modelID)) ? GITHUB_COPILOT_GPT_OVERRIDE : undefined;
|
|
21998
22047
|
}
|
|
21999
22048
|
function stripSameProviderPrefix(providerID, modelID) {
|
|
22000
22049
|
const prefix = `${providerID.trim()}/`;
|
|
@@ -23086,7 +23135,6 @@ var OmoMemoryAgentOverridesSchema = z7.object({
|
|
|
23086
23135
|
var OmoMemorySettingsSchema = z7.object({
|
|
23087
23136
|
enabled: z7.boolean().default(true),
|
|
23088
23137
|
agent: z7.string().min(1).default("auto"),
|
|
23089
|
-
tool_exposure: z7.enum(["direct", "search"]).default("direct"),
|
|
23090
23138
|
reflection: OmoMemoryReflectionSchema.default({
|
|
23091
23139
|
enabled: true,
|
|
23092
23140
|
trigger: { step_count: 25, on_compaction: true },
|
|
@@ -23117,7 +23165,6 @@ var OmoMemorySettingsSchema = z7.object({
|
|
|
23117
23165
|
var OmoMemorySettingsLayerSchema = z7.object({
|
|
23118
23166
|
enabled: z7.boolean().optional(),
|
|
23119
23167
|
agent: z7.string().min(1).optional(),
|
|
23120
|
-
tool_exposure: z7.enum(["direct", "search"]).optional(),
|
|
23121
23168
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
23122
23169
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
23123
23170
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
@@ -26340,21 +26387,6 @@ function truncateDescription(description, maxLength = 120) {
|
|
|
26340
26387
|
return description.slice(0, maxLength - 3) + "...";
|
|
26341
26388
|
}
|
|
26342
26389
|
|
|
26343
|
-
// packages/omo-opencode/src/tools/delegate-task/anthropic-categories.ts
|
|
26344
|
-
var UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = `<Category_Context>
|
|
26345
|
-
You are working on tasks that don't fit specific categories but require substantial effort.
|
|
26346
|
-
</Category_Context>`;
|
|
26347
|
-
var UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits and substantial effort spans systems/modules with broad impact. Use unspecified-low for contained moderate work.</Selection_Gate>`;
|
|
26348
|
-
var ANTHROPIC_CATEGORIES = [
|
|
26349
|
-
{
|
|
26350
|
-
name: "unspecified-high",
|
|
26351
|
-
config: { model: "anthropic/claude-opus-5", variant: "xhigh" },
|
|
26352
|
-
description: "Tasks that don't fit other categories, high effort required",
|
|
26353
|
-
callerGuidance: UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE,
|
|
26354
|
-
promptAppend: UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND
|
|
26355
|
-
}
|
|
26356
|
-
];
|
|
26357
|
-
|
|
26358
26390
|
// packages/omo-opencode/src/tools/delegate-task/google-categories.ts
|
|
26359
26391
|
var VISUAL_CATEGORY_PROMPT_APPEND = `<Category_Context>
|
|
26360
26392
|
You are working on VISUAL/UI tasks.
|
|
@@ -26463,13 +26495,13 @@ Approach:
|
|
|
26463
26495
|
var GOOGLE_CATEGORIES = [
|
|
26464
26496
|
{
|
|
26465
26497
|
name: "visual-engineering",
|
|
26466
|
-
config: { model: "anthropic/claude-
|
|
26467
|
-
description: "
|
|
26498
|
+
config: { model: "anthropic/claude-fable-5-1", variant: "max" },
|
|
26499
|
+
description: "Visual design, UI/UX, frontend, styling, animation, and design systems",
|
|
26468
26500
|
promptAppend: VISUAL_CATEGORY_PROMPT_APPEND
|
|
26469
26501
|
},
|
|
26470
26502
|
{
|
|
26471
26503
|
name: "artistry",
|
|
26472
|
-
config: { model: "anthropic/claude-fable-5", variant: "
|
|
26504
|
+
config: { model: "anthropic/claude-fable-5-1", variant: "max" },
|
|
26473
26505
|
description: "Complex problem-solving with unconventional, creative approaches - beyond standard patterns",
|
|
26474
26506
|
promptAppend: ARTISTRY_CATEGORY_PROMPT_APPEND
|
|
26475
26507
|
}
|
|
@@ -26504,7 +26536,7 @@ ANTI-AI-SLOP RULES (NON-NEGOTIABLE):
|
|
|
26504
26536
|
var KIMI_CATEGORIES = [
|
|
26505
26537
|
{
|
|
26506
26538
|
name: "writing",
|
|
26507
|
-
config: { model: "
|
|
26539
|
+
config: { model: "anthropic/claude-fable-5-1", variant: "medium" },
|
|
26508
26540
|
description: "Documentation, prose, technical writing",
|
|
26509
26541
|
promptAppend: WRITING_CATEGORY_PROMPT_APPEND
|
|
26510
26542
|
}
|
|
@@ -26534,8 +26566,38 @@ function isGpt5_6Model(model) {
|
|
|
26534
26566
|
const modelName = extractModelName2(model).toLowerCase();
|
|
26535
26567
|
return modelName.includes("gpt-5.6") || modelName.includes("gpt-5-6");
|
|
26536
26568
|
}
|
|
26569
|
+
function isGpt6Model(model) {
|
|
26570
|
+
const modelName = extractModelName2(model).toLowerCase();
|
|
26571
|
+
return modelName.includes("gpt-6");
|
|
26572
|
+
}
|
|
26537
26573
|
|
|
26538
26574
|
// packages/omo-opencode/src/tools/delegate-task/openai-categories.ts
|
|
26575
|
+
var ULTRABRAIN_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="ultrabrain">
|
|
26576
|
+
The orchestrator routed this task here because it is the one genuinely hard, logic-heavy problem in its plan, and it sent a goal rather than steps: choose the approach yourself, and let correctness outrank speed, brevity, and token cost.
|
|
26577
|
+
|
|
26578
|
+
Success means:
|
|
26579
|
+
- every load-bearing claim cites evidence from this turn: a file and line read, a command run, a test executed;
|
|
26580
|
+
- every executable claim was executed: a proposed fix runs, an algorithm passes the boundary cases you enumerated, a verdict on a diff names the failing line;
|
|
26581
|
+
- the conclusion survived your own attempt to break it, and the answer names the strongest counter-case you looked for;
|
|
26582
|
+
- rejected alternatives carry the reason that decided against them, and open assumptions are stated so the orchestrator can overturn them;
|
|
26583
|
+
- one decision-complete recommendation, actionable without a follow-up question.
|
|
26584
|
+
|
|
26585
|
+
Whatever that check leaves unsettled goes in the answer as an open question with what would settle it. When the goal bundles independent problems, solve the one the others depend on and return the rest as separately delegable items.
|
|
26586
|
+
</Category_Context>`;
|
|
26587
|
+
var DEEP_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="deep">
|
|
26588
|
+
The orchestrator routed this task here for depth: one goal, one deliverable, and the time to earn it. The exploration budget is generous: read every file involved, trace callers and dependencies in both directions, and fan out explore and librarian subagents in parallel for the questions a single read wave cannot answer, until you can explain the full mechanism you are about to change; an edit made before that point is the failure this category exists to prevent.
|
|
26589
|
+
|
|
26590
|
+
**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**
|
|
26591
|
+
|
|
26592
|
+
The goal is the authorization. Choose how to reach it yourself, and when it lists numbered steps or phases, deliver all of them in this turn as one task; a proposal, a plan awaiting approval, a simplified version, or a proof of concept is unfinished work. When the steps turn out to be independent problems sharing no reasoning, do the one the goal centers on and return the others as separately delegable items with what you learned. A question ends your turn and hands the task back unfinished, so decide from context, record each assumption in the final message, and stop early only for a blocker you cannot route around: a missing secret, a decision only the user can make, or three materially different attempts that all failed.
|
|
26593
|
+
|
|
26594
|
+
Fix the cause: trace at least two levels above the symptom before settling, and prefer the change that makes the failure impossible over the guard that hides it. Depth means understanding the mechanism, so the diff stays as small as the fix allows; on greenfield work choose strong defaults and finish something you would hand to a senior engineer. Close with the delivered change, the evidence that it works, and the assumptions you made.
|
|
26595
|
+
</Category_Context>`;
|
|
26596
|
+
var UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA = `<Category_Context name="unspecified-high">
|
|
26597
|
+
The orchestrator routed this task here because it spans systems or modules and fits no specialist category, so breadth of consideration is what this category buys. Before committing to an approach, survey the whole surface the change touches: every caller and consumer of what you will modify, sibling modules that implement the same pattern, the tests, docs, schemas, config, scripts, and CI that encode the current behavior, and the history of the area (git log and blame) for the reasons it is shaped this way. Fan out explore and librarian subagents in parallel when that surface is wider than one read wave covers.
|
|
26598
|
+
|
|
26599
|
+
Weigh at least two ways to do it against what you found, choose one, and say in the final message why it won. Then deliver it across every surface you identified, so behavior stays consistent everywhere the change is observable and no caller, test, doc, schema, or config still describes the old state. A question ends your turn and hands the task back unfinished, so decide from context, record each assumption in the final message, and finish.
|
|
26600
|
+
</Category_Context>`;
|
|
26539
26601
|
var ULTRABRAIN_CATEGORY_PROMPT_APPEND = `<Category_Context>
|
|
26540
26602
|
You are working on DEEP LOGICAL REASONING / COMPLEX ARCHITECTURE tasks.
|
|
26541
26603
|
|
|
@@ -26562,6 +26624,8 @@ You are working on GOAL-ORIENTED AUTONOMOUS tasks.
|
|
|
26562
26624
|
|
|
26563
26625
|
You are NOT an interactive assistant. You are an autonomous problem-solver.
|
|
26564
26626
|
|
|
26627
|
+
**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**
|
|
26628
|
+
|
|
26565
26629
|
BEFORE making ANY changes:
|
|
26566
26630
|
1. Silently explore the codebase extensively (5-15 minutes of reading is normal)
|
|
26567
26631
|
2. Read related files, trace dependencies, understand the full context
|
|
@@ -26580,6 +26644,8 @@ Minimal status updates. Focus on results, not play-by-play. Report completion wi
|
|
|
26580
26644
|
var DEEP_CATEGORY_PROMPT_APPEND_GPT_5_5 = `<Category_Context name="deep">
|
|
26581
26645
|
You are operating in DEEP mode. This is the category reserved for goal-oriented autonomous work on hairy problems that reward thorough exploration and comprehensive solutions.
|
|
26582
26646
|
|
|
26647
|
+
**MUST USE \`deep\` FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.**
|
|
26648
|
+
|
|
26583
26649
|
The orchestrator chose this category because the task benefits from depth over speed. You should feel empowered to spend the time needed: five to fifteen minutes of silent exploration before the first edit is normal and correct. Rushing to implementation on a deep task is a failure mode, not a feature.
|
|
26584
26650
|
|
|
26585
26651
|
# How deep mode adjusts the base behavior
|
|
@@ -26598,12 +26664,27 @@ The orchestrator chose this category because the task benefits from depth over s
|
|
|
26598
26664
|
|
|
26599
26665
|
**Status cadence: sparse.** The user is not on the other side of this conversation; the orchestrator is, and they will synthesize your progress. Send commentary only at meaningful phase transitions (starting exploration, starting implementation, starting verification, hitting a genuine blocker). Do not narrate every tool call; silence during focused work is expected.
|
|
26600
26666
|
</Category_Context>`;
|
|
26667
|
+
function resolveUltrabrainCategoryPromptAppend(model) {
|
|
26668
|
+
if (model && isGpt6Model(model)) {
|
|
26669
|
+
return ULTRABRAIN_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;
|
|
26670
|
+
}
|
|
26671
|
+
return ULTRABRAIN_CATEGORY_PROMPT_APPEND;
|
|
26672
|
+
}
|
|
26601
26673
|
function resolveDeepCategoryPromptAppend(model) {
|
|
26674
|
+
if (model && isGpt6Model(model)) {
|
|
26675
|
+
return DEEP_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;
|
|
26676
|
+
}
|
|
26602
26677
|
if (model && (isGpt5_5Model(model) || isGpt5_6Model(model))) {
|
|
26603
26678
|
return DEEP_CATEGORY_PROMPT_APPEND_GPT_5_5;
|
|
26604
26679
|
}
|
|
26605
26680
|
return DEEP_CATEGORY_PROMPT_APPEND;
|
|
26606
26681
|
}
|
|
26682
|
+
function resolveUnspecifiedHighCategoryPromptAppend(model) {
|
|
26683
|
+
if (model && isGpt6Model(model)) {
|
|
26684
|
+
return UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND_GPT_6_ASTRA;
|
|
26685
|
+
}
|
|
26686
|
+
return UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND;
|
|
26687
|
+
}
|
|
26607
26688
|
var QUICK_CATEGORY_PROMPT_APPEND = `<Category_Context>
|
|
26608
26689
|
You are working on SMALL / QUICK tasks.
|
|
26609
26690
|
|
|
@@ -26624,20 +26705,26 @@ You are working on tasks that don't fit specific categories but require moderate
|
|
|
26624
26705
|
</Category_Context>`;
|
|
26625
26706
|
var UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits, effort is moderate, and scope stays within a few files/modules. Prefer any matching specialist category.</Selection_Gate>
|
|
26626
26707
|
<Caller_Warning>Provide explicit must-do steps, forbidden scope, and concrete success criteria.</Caller_Warning>`;
|
|
26708
|
+
var UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = `<Category_Context>
|
|
26709
|
+
You are working on tasks that don't fit specific categories but require substantial effort.
|
|
26710
|
+
</Category_Context>`;
|
|
26711
|
+
var UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE = `<Selection_Gate>Use only when no specialist category fits and substantial effort spans systems/modules with broad impact. Use unspecified-low for contained moderate work.</Selection_Gate>`;
|
|
26712
|
+
var GPT_FLAGSHIP_GATE_MODELS = ["gpt-6-astra", "gpt-5.6-sol"];
|
|
26627
26713
|
var OPENAI_CATEGORIES = [
|
|
26628
26714
|
{
|
|
26629
26715
|
name: "ultrabrain",
|
|
26630
|
-
config: { model: "openai/gpt-
|
|
26716
|
+
config: { model: "openai/gpt-6-astra", variant: "max" },
|
|
26631
26717
|
description: "Use ONLY for genuinely hard, logic-heavy tasks. Give clear goals only, not step-by-step instructions.",
|
|
26632
|
-
promptAppend: ULTRABRAIN_CATEGORY_PROMPT_APPEND
|
|
26718
|
+
promptAppend: ULTRABRAIN_CATEGORY_PROMPT_APPEND,
|
|
26719
|
+
resolvePromptAppend: resolveUltrabrainCategoryPromptAppend
|
|
26633
26720
|
},
|
|
26634
26721
|
{
|
|
26635
26722
|
name: "deep",
|
|
26636
|
-
config: { model: "openai/gpt-
|
|
26637
|
-
description: "
|
|
26723
|
+
config: { model: "openai/gpt-6-astra", variant: "high" },
|
|
26724
|
+
description: "**MANDATORY: USE deep FOR 3D GRAPHICS, COMPUTER USE, BROWSER USE, BACKEND, LOGIC, ALGORITHMS, CAPTCHA SOLVING, AND MULTIMODAL WORK.** Deep autonomous problem-solving for complex research. ONE goal + ONE deliverable per call \u2014 multiple goals must fan out as parallel `deep` calls, never bundled into one.",
|
|
26638
26725
|
promptAppend: DEEP_CATEGORY_PROMPT_APPEND,
|
|
26639
26726
|
resolvePromptAppend: resolveDeepCategoryPromptAppend,
|
|
26640
|
-
requiresModel:
|
|
26727
|
+
requiresModel: GPT_FLAGSHIP_GATE_MODELS
|
|
26641
26728
|
},
|
|
26642
26729
|
{
|
|
26643
26730
|
name: "quick",
|
|
@@ -26652,6 +26739,14 @@ var OPENAI_CATEGORIES = [
|
|
|
26652
26739
|
description: "Tasks that don't fit other categories, low effort required",
|
|
26653
26740
|
callerGuidance: UNSPECIFIED_LOW_CATEGORY_CALLER_GUIDANCE,
|
|
26654
26741
|
promptAppend: UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND
|
|
26742
|
+
},
|
|
26743
|
+
{
|
|
26744
|
+
name: "unspecified-high",
|
|
26745
|
+
config: { model: "openai/gpt-6-astra", variant: "high" },
|
|
26746
|
+
description: "Tasks that don't fit other categories, high effort required",
|
|
26747
|
+
callerGuidance: UNSPECIFIED_HIGH_CATEGORY_CALLER_GUIDANCE,
|
|
26748
|
+
promptAppend: UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND,
|
|
26749
|
+
resolvePromptAppend: resolveUnspecifiedHighCategoryPromptAppend
|
|
26655
26750
|
}
|
|
26656
26751
|
];
|
|
26657
26752
|
|
|
@@ -26659,7 +26754,6 @@ var OPENAI_CATEGORIES = [
|
|
|
26659
26754
|
var BUILTIN_CATEGORIES = [
|
|
26660
26755
|
...GOOGLE_CATEGORIES,
|
|
26661
26756
|
...OPENAI_CATEGORIES,
|
|
26662
|
-
...ANTHROPIC_CATEGORIES,
|
|
26663
26757
|
...KIMI_CATEGORIES
|
|
26664
26758
|
];
|
|
26665
26759
|
function buildCategoryRecord(selector) {
|
|
@@ -26670,7 +26764,15 @@ var CATEGORY_PROMPT_APPENDS = buildCategoryRecord((definition2) => definition2.p
|
|
|
26670
26764
|
var CATEGORY_DESCRIPTIONS = buildCategoryRecord((definition2) => definition2.description);
|
|
26671
26765
|
var CATEGORY_CALLER_GUIDANCE = buildCategoryRecord((definition2) => definition2.callerGuidance);
|
|
26672
26766
|
var CATEGORY_PROMPT_APPEND_RESOLVERS = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition2) => definition2.resolvePromptAppend !== undefined).map((definition2) => [definition2.name, definition2.resolvePromptAppend]));
|
|
26673
|
-
var BUILTIN_CATEGORY_REQUIRES_MODEL = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition2) => definition2.requiresModel !== undefined).map((definition2) => [
|
|
26767
|
+
var BUILTIN_CATEGORY_REQUIRES_MODEL = Object.fromEntries(BUILTIN_CATEGORIES.filter((definition2) => definition2.requiresModel !== undefined).map((definition2) => [
|
|
26768
|
+
definition2.name,
|
|
26769
|
+
typeof definition2.requiresModel === "string" ? [definition2.requiresModel] : definition2.requiresModel
|
|
26770
|
+
]));
|
|
26771
|
+
function builtinCategoryGateModels(categoryName, requirementGateModel) {
|
|
26772
|
+
if (requirementGateModel !== undefined)
|
|
26773
|
+
return [requirementGateModel];
|
|
26774
|
+
return BUILTIN_CATEGORY_REQUIRES_MODEL[categoryName] ?? [];
|
|
26775
|
+
}
|
|
26674
26776
|
|
|
26675
26777
|
// packages/omo-opencode/src/tools/delegate-task/constants.ts
|
|
26676
26778
|
var PLAN_AGENT_SYSTEM_PREPEND_STATIC_BEFORE_SKILLS = `<system>
|
|
@@ -26896,13 +26998,13 @@ YOU MUST END YOUR RESPONSE WITH THIS SECTION.
|
|
|
26896
26998
|
|
|
26897
26999
|
1. **Wave 1**: Fire these tasks IN PARALLEL (no dependencies)
|
|
26898
27000
|
\`\`\`
|
|
26899
|
-
task(category="...", load_skills=[...], run_in_background=
|
|
26900
|
-
task(category="...", load_skills=[...], run_in_background=
|
|
27001
|
+
task(category="...", load_skills=[...], run_in_background=true, prompt="Task 1: ...")
|
|
27002
|
+
task(category="...", load_skills=[...], run_in_background=true, prompt="Task N: ...")
|
|
26901
27003
|
\`\`\`
|
|
26902
27004
|
|
|
26903
27005
|
2. **Wave 2**: After Wave 1 completes, fire next wave IN PARALLEL
|
|
26904
27006
|
\`\`\`
|
|
26905
|
-
task(category="...", load_skills=[...], run_in_background=
|
|
27007
|
+
task(category="...", load_skills=[...], run_in_background=true, prompt="Task 2: ...")
|
|
26906
27008
|
\`\`\`
|
|
26907
27009
|
|
|
26908
27010
|
3. Continue until all waves complete
|
|
@@ -96612,7 +96714,7 @@ function getCachedVersion(options = {}) {
|
|
|
96612
96714
|
// package.json
|
|
96613
96715
|
var package_default = {
|
|
96614
96716
|
name: "oh-my-opencode",
|
|
96615
|
-
version: "5.0.0-beta.
|
|
96717
|
+
version: "5.0.0-beta.43",
|
|
96616
96718
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
96617
96719
|
main: "./dist/index.js",
|
|
96618
96720
|
types: "dist/index.d.ts",
|
|
@@ -96744,14 +96846,14 @@ var package_default = {
|
|
|
96744
96846
|
prepare: "bun run build",
|
|
96745
96847
|
postinstall: "node postinstall.mjs",
|
|
96746
96848
|
prepublishOnly: "bun run clean && bun run build:lsp-tools-mcp && bun run build:lsp-daemon && bun run build",
|
|
96747
|
-
"test:model-capabilities": "bun test packages/model-core/src/model-capability-aliases.test.ts packages/model-core/src/model-capability-guardrails.test.ts packages/model-core/src/model-capabilities.test.ts packages/omo-opencode/src/cli/doctor/checks/model-resolution.test.ts --bail",
|
|
96849
|
+
"test:model-capabilities": "bun test --timeout 20000 packages/model-core/src/model-capability-aliases.test.ts packages/model-core/src/model-capability-guardrails.test.ts packages/model-core/src/model-capabilities.test.ts packages/omo-opencode/src/cli/doctor/checks/model-resolution.test.ts --bail",
|
|
96748
96850
|
typecheck: "tsgo --noEmit && bun run typecheck:script && bun run typecheck:packages",
|
|
96749
96851
|
"typecheck:packages": "tsgo --noEmit -p packages/rules-engine/tsconfig.json && tsgo --noEmit -p packages/delegate-core/tsconfig.json && tsgo --noEmit -p packages/mcp-stdio-core/tsconfig.json && tsgo --noEmit -p packages/mcp-client-core/tsconfig.json && tsgo --noEmit -p packages/git-bash-mcp/tsconfig.json && tsgo --noEmit -p packages/ast-grep-mcp/tsconfig.json && tsgo --noEmit -p packages/lsp-core/tsconfig.json && tsgo --noEmit -p packages/utils/tsconfig.json && tsgo --noEmit -p packages/model-core/tsconfig.json && tsgo --noEmit -p packages/omo-config-core/tsconfig.json && tsgo --noEmit -p packages/prompts-core/tsconfig.json && tsgo --noEmit -p packages/comment-checker-core/tsconfig.json && tsgo --noEmit -p packages/hashline-core/tsconfig.json && tsgo --noEmit -p packages/tmux-core/tsconfig.json && tsgo --noEmit -p packages/team-core/tsconfig.json && tsgo --noEmit -p packages/openclaw-core/tsconfig.json && tsgo --noEmit -p packages/boulder-state/tsconfig.json && tsgo --noEmit -p packages/memory-core/tsconfig.json && tsgo --noEmit -p packages/telemetry-core/tsconfig.json && tsgo --noEmit -p packages/claude-code-compat-core/tsconfig.json && tsgo --noEmit -p packages/skills-loader-core/tsconfig.json && tsgo --noEmit -p packages/agents-md-core/tsconfig.json && tsgo --noEmit -p packages/omo-codex/plugin/shared/tsconfig.json && tsgo --noEmit -p packages/omo-codex/tsconfig.json && tsgo --noEmit -p packages/omo-senpi/tsconfig.json && tsgo --noEmit -p packages/senpi-task/tsconfig.json && tsgo --noEmit -p packages/pi-goal/tsconfig.json && tsgo --noEmit -p packages/pi-webfetch/tsconfig.json && tsgo --noEmit -p packages/omo-opencode/tsconfig.json && tsgo --noEmit -p packages/omo-native/tsconfig.json",
|
|
96750
96852
|
"typecheck:script": "tsgo --noEmit -p script/tsconfig.json",
|
|
96751
|
-
test: "bun test",
|
|
96752
|
-
"test:codex": "bun run build:codex-install && bun run build:git-bash-mcp && bun run build:lsp-tools-mcp && bun run build:lsp-daemon && npm --prefix packages/lsp-tools-mcp test && npm --prefix packages/omo-codex/plugin ci && npm --prefix packages/omo-codex/plugin/components/ulw-loop test && bun run --cwd packages/omo-codex/plugin build && node scripts/check-third-party-notices.mjs --ship && bun test packages/omo-opencode/src/cli/cli-installer.platform.test.ts packages/omo-codex/src/install/codex-cache.test.ts packages/omo-codex/src/install/codex-cleanup.test.ts packages/omo-codex/src/install/codex-config-agent-cleanup.test.ts packages/omo-codex/src/install/codex-config-autonomous-features.test.ts packages/omo-codex/src/install/codex-config-reasoning.test.ts packages/omo-codex/src/install/codex-config-toml.test.ts packages/omo-codex/src/install/codex-project-local-cleanup.test.ts packages/omo-codex/src/install/install-codex-project-local-cleanup.test.ts packages/omo-codex/src/install/install-codex.test.ts packages/omo-codex/src/install/install-codex-packaged.test.ts packages/omo-codex/src/install/link-cached-plugin-agents.test.ts packages/omo-codex/src/**/*.test.ts packages/utils/src/jsonc-parser.test.ts packages/utils/src/frontmatter.test.ts packages/hashline-core/src/hash-computation.test.ts packages/hashline-core/src/smoke-untested-modules.test.ts packages/rules-engine/src/index.test.ts packages/rules-engine/src/security-boundary.test.ts packages/agents-md-core/src/injector.test.ts packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts && node --test packages/omo-codex/plugin/test/*.test.mjs packages/omo-codex/scripts/install-cache-copy.test.mjs packages/omo-codex/scripts/install-cli-args.test.mjs packages/omo-codex/scripts/install-delegated-command.test.mjs packages/omo-codex/scripts/install-config-autonomous-features.test.mjs packages/omo-codex/scripts/install-config-autonomous.test.mjs packages/omo-codex/scripts/install-config-reasoning.test.mjs packages/omo-codex/scripts/install-config.test.mjs packages/omo-codex/scripts/install-hook-targets.test.mjs packages/omo-codex/scripts/install-project-local-cleanup.test.mjs packages/omo-codex/scripts/install-lazycodex-version-stamp.test.mjs packages/omo-codex/scripts/install-local-entrypoint.test.mjs packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs packages/omo-codex/scripts/install-local.test.mjs packages/omo-codex/scripts/install-marketplace-cache.test.mjs packages/omo-codex/scripts/install-mcp-context7-runtime.test.mjs packages/omo-codex/scripts/install-mcp-runtime.test.mjs packages/omo-codex/scripts/install-packaged-local.test.mjs packages/omo-codex/scripts/install-generated-bundle.test.mjs packages/omo-codex/scripts/install-agent-links.test.mjs packages/omo-codex/scripts/install-bin-links.test.mjs",
|
|
96853
|
+
test: "bun test --timeout 20000",
|
|
96854
|
+
"test:codex": "bun run build:codex-install && bun run build:git-bash-mcp && bun run build:lsp-tools-mcp && bun run build:lsp-daemon && npm --prefix packages/lsp-tools-mcp test && npm --prefix packages/omo-codex/plugin ci && npm --prefix packages/omo-codex/plugin/components/ulw-loop test && bun run --cwd packages/omo-codex/plugin build && node scripts/check-third-party-notices.mjs --ship && bun test --timeout 20000 packages/omo-opencode/src/cli/cli-installer.platform.test.ts packages/omo-codex/src/install/codex-cache.test.ts packages/omo-codex/src/install/codex-cleanup.test.ts packages/omo-codex/src/install/codex-config-agent-cleanup.test.ts packages/omo-codex/src/install/codex-config-autonomous-features.test.ts packages/omo-codex/src/install/codex-config-reasoning.test.ts packages/omo-codex/src/install/codex-config-toml.test.ts packages/omo-codex/src/install/codex-project-local-cleanup.test.ts packages/omo-codex/src/install/install-codex-project-local-cleanup.test.ts packages/omo-codex/src/install/install-codex.test.ts packages/omo-codex/src/install/install-codex-packaged.test.ts packages/omo-codex/src/install/link-cached-plugin-agents.test.ts packages/omo-codex/src/**/*.test.ts packages/utils/src/jsonc-parser.test.ts packages/utils/src/frontmatter.test.ts packages/hashline-core/src/hash-computation.test.ts packages/hashline-core/src/smoke-untested-modules.test.ts packages/rules-engine/src/index.test.ts packages/rules-engine/src/security-boundary.test.ts packages/agents-md-core/src/injector.test.ts packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts && node --test packages/omo-codex/plugin/test/*.test.mjs packages/omo-codex/scripts/install-cache-copy.test.mjs packages/omo-codex/scripts/install-cli-args.test.mjs packages/omo-codex/scripts/install-delegated-command.test.mjs packages/omo-codex/scripts/install-config-autonomous-features.test.mjs packages/omo-codex/scripts/install-config-autonomous.test.mjs packages/omo-codex/scripts/install-config-reasoning.test.mjs packages/omo-codex/scripts/install-config.test.mjs packages/omo-codex/scripts/install-hook-targets.test.mjs packages/omo-codex/scripts/install-project-local-cleanup.test.mjs packages/omo-codex/scripts/install-lazycodex-version-stamp.test.mjs packages/omo-codex/scripts/install-local-entrypoint.test.mjs packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs packages/omo-codex/scripts/install-local.test.mjs packages/omo-codex/scripts/install-marketplace-cache.test.mjs packages/omo-codex/scripts/install-mcp-context7-runtime.test.mjs packages/omo-codex/scripts/install-mcp-runtime.test.mjs packages/omo-codex/scripts/install-packaged-local.test.mjs packages/omo-codex/scripts/install-generated-bundle.test.mjs packages/omo-codex/scripts/install-agent-links.test.mjs packages/omo-codex/scripts/install-bin-links.test.mjs",
|
|
96753
96855
|
"test:fast": "bun run script/test-fast.ts",
|
|
96754
|
-
"test:senpi": "bun run build:senpi-plugin && tsgo --noEmit -p packages/omo-senpi/tsconfig.json && bun test packages/omo-senpi && bun test ./.agents/skills/senpi-qa/scripts/resolve-evidence-dir.test.mjs",
|
|
96856
|
+
"test:senpi": "bun run build:senpi-plugin && tsgo --noEmit -p packages/omo-senpi/tsconfig.json && bun test --timeout 20000 packages/omo-senpi && bun test ./.agents/skills/senpi-qa/scripts/resolve-evidence-dir.test.mjs",
|
|
96755
96857
|
"test:windows-codex": "bun run test:codex",
|
|
96756
96858
|
"build:git-bash-mcp": "bun run --cwd packages/git-bash-mcp build",
|
|
96757
96859
|
"build:ast-grep-mcp": "bun run --cwd packages/ast-grep-mcp build"
|
|
@@ -96795,7 +96897,7 @@ var package_default = {
|
|
|
96795
96897
|
zod: "^4.4.3"
|
|
96796
96898
|
},
|
|
96797
96899
|
devDependencies: {
|
|
96798
|
-
"@code-yeongyu/senpi": "2026.9.
|
|
96900
|
+
"@code-yeongyu/senpi": "2026.9.5",
|
|
96799
96901
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
96800
96902
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
96801
96903
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
@@ -96836,18 +96938,18 @@ var package_default = {
|
|
|
96836
96938
|
typescript: "^7.0.2"
|
|
96837
96939
|
},
|
|
96838
96940
|
optionalDependencies: {
|
|
96839
|
-
"oh-my-opencode-darwin-arm64": "5.0.0-beta.
|
|
96840
|
-
"oh-my-opencode-darwin-x64": "5.0.0-beta.
|
|
96841
|
-
"oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.
|
|
96842
|
-
"oh-my-opencode-linux-arm64": "5.0.0-beta.
|
|
96843
|
-
"oh-my-opencode-linux-arm64-musl": "5.0.0-beta.
|
|
96844
|
-
"oh-my-opencode-linux-x64": "5.0.0-beta.
|
|
96845
|
-
"oh-my-opencode-linux-x64-baseline": "5.0.0-beta.
|
|
96846
|
-
"oh-my-opencode-linux-x64-musl": "5.0.0-beta.
|
|
96847
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.
|
|
96848
|
-
"oh-my-opencode-windows-arm64": "5.0.0-beta.
|
|
96849
|
-
"oh-my-opencode-windows-x64": "5.0.0-beta.
|
|
96850
|
-
"oh-my-opencode-windows-x64-baseline": "5.0.0-beta.
|
|
96941
|
+
"oh-my-opencode-darwin-arm64": "5.0.0-beta.43",
|
|
96942
|
+
"oh-my-opencode-darwin-x64": "5.0.0-beta.43",
|
|
96943
|
+
"oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.43",
|
|
96944
|
+
"oh-my-opencode-linux-arm64": "5.0.0-beta.43",
|
|
96945
|
+
"oh-my-opencode-linux-arm64-musl": "5.0.0-beta.43",
|
|
96946
|
+
"oh-my-opencode-linux-x64": "5.0.0-beta.43",
|
|
96947
|
+
"oh-my-opencode-linux-x64-baseline": "5.0.0-beta.43",
|
|
96948
|
+
"oh-my-opencode-linux-x64-musl": "5.0.0-beta.43",
|
|
96949
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.43",
|
|
96950
|
+
"oh-my-opencode-windows-arm64": "5.0.0-beta.43",
|
|
96951
|
+
"oh-my-opencode-windows-x64": "5.0.0-beta.43",
|
|
96952
|
+
"oh-my-opencode-windows-x64-baseline": "5.0.0-beta.43"
|
|
96851
96953
|
},
|
|
96852
96954
|
overrides: {
|
|
96853
96955
|
"@earendil-works/pi-agent-core": "0.84.2",
|
|
@@ -100317,7 +100419,7 @@ Use \`task()\` with EITHER category OR agent (mutually exclusive):
|
|
|
100317
100419
|
task(
|
|
100318
100420
|
category="[category-name]",
|
|
100319
100421
|
load_skills=["skill-1", "skill-2"],
|
|
100320
|
-
run_in_background=
|
|
100422
|
+
run_in_background=true,
|
|
100321
100423
|
prompt="..."
|
|
100322
100424
|
)
|
|
100323
100425
|
|
|
@@ -100325,7 +100427,7 @@ task(
|
|
|
100325
100427
|
task(
|
|
100326
100428
|
subagent_type="[agent-name]",
|
|
100327
100429
|
load_skills=[],
|
|
100328
|
-
run_in_background=
|
|
100430
|
+
run_in_background=true,
|
|
100329
100431
|
prompt="..."
|
|
100330
100432
|
)
|
|
100331
100433
|
\`\`\`
|
|
@@ -100422,10 +100524,10 @@ Anything else \u2192 fire ALL of them in the SAME response, IN PARALLEL. One mes
|
|
|
100422
100524
|
|
|
100423
100525
|
\`\`\`typescript
|
|
100424
100526
|
// CORRECT: 4 independent tasks \u2192 4 task() calls in ONE response
|
|
100425
|
-
task(category="quick", load_skills=[], run_in_background=
|
|
100426
|
-
task(category="quick", load_skills=[], run_in_background=
|
|
100427
|
-
task(category="quick", load_skills=[], run_in_background=
|
|
100428
|
-
task(category="quick", load_skills=[], run_in_background=
|
|
100527
|
+
task(category="quick", load_skills=[], run_in_background=true, prompt="...task A...")
|
|
100528
|
+
task(category="quick", load_skills=[], run_in_background=true, prompt="...task B...")
|
|
100529
|
+
task(category="quick", load_skills=[], run_in_background=true, prompt="...task C...")
|
|
100530
|
+
task(category="quick", load_skills=[], run_in_background=true, prompt="...task D...")
|
|
100429
100531
|
|
|
100430
100532
|
// WRONG: same 4 tasks dispatched one per turn
|
|
100431
100533
|
// You are wasting wall-clock time and parallel capacity.
|
|
@@ -100439,7 +100541,7 @@ task(category="quick", load_skills=[], run_in_background=false, prompt="...task
|
|
|
100439
100541
|
|
|
100440
100542
|
**Background vs foreground:**
|
|
100441
100543
|
- **Exploration** (\`explore\`, \`librarian\`): \`run_in_background=true\` \u2014 non-blocking research
|
|
100442
|
-
- **Task execution** (\`category="..."\`): \`run_in_background=
|
|
100544
|
+
- **Task execution** (\`category="..."\`): \`run_in_background=true\` \u2014 the completion notification wakes you to verify; \`false\` only for a short child whose result gates your very next call
|
|
100443
100545
|
|
|
100444
100546
|
**Background management:**
|
|
100445
100547
|
- Collect with background task IDs (\`bg_...\`): \`background_output(task_id="bg_...")\`
|
|
@@ -100500,9 +100602,9 @@ Extract wisdom \u2192 include in EVERY dispatched prompt under "Inherited Wisdom
|
|
|
100500
100602
|
### 3.3 Invoke task() \u2014 Fan Out in One Response
|
|
100501
100603
|
|
|
100502
100604
|
\`\`\`typescript
|
|
100503
|
-
task(category="...", load_skills=[...], run_in_background=
|
|
100504
|
-
task(category="...", load_skills=[...], run_in_background=
|
|
100505
|
-
task(category="...", load_skills=[...], run_in_background=
|
|
100605
|
+
task(category="...", load_skills=[...], run_in_background=true, prompt="[6-SECTION PROMPT]")
|
|
100606
|
+
task(category="...", load_skills=[...], run_in_background=true, prompt="[6-SECTION PROMPT]")
|
|
100607
|
+
task(category="...", load_skills=[...], run_in_background=true, prompt="[6-SECTION PROMPT]")
|
|
100506
100608
|
\`\`\`
|
|
100507
100609
|
|
|
100508
100610
|
3 independent tasks \u2192 3 calls in this response.
|
|
@@ -103352,8 +103454,8 @@ Before acting, survey the skills available in this system: scan their descriptio
|
|
|
103352
103454
|
|----------|-------------|------------|
|
|
103353
103455
|
| explore agent | Need codebase patterns you don't have | \`task(subagent_type="explore", load_skills=[], run_in_background=true, ...)\` |
|
|
103354
103456
|
| librarian agent | External library docs, OSS examples | \`task(subagent_type="librarian", load_skills=[], run_in_background=true, ...)\` |
|
|
103355
|
-
| oracle agent | Stuck on architecture/debugging after 2+ attempts | \`task(subagent_type="oracle", load_skills=[], run_in_background=
|
|
103356
|
-
| plan agent | Discovery leaves unresolved design uncertainty: unclear boundaries, competing decompositions, or uncertain dependency order | \`task(subagent_type="plan", load_skills=[], run_in_background=
|
|
103457
|
+
| oracle agent | Stuck on architecture/debugging after 2+ attempts | \`task(subagent_type="oracle", load_skills=[], run_in_background=true, ...)\` |
|
|
103458
|
+
| plan agent | Discovery leaves unresolved design uncertainty: unclear boundaries, competing decompositions, or uncertain dependency order | \`task(subagent_type="plan", load_skills=[], run_in_background=true, ...)\` |
|
|
103357
103459
|
| task category | Specialized work matching a category | \`task(category="...", load_skills=[...], run_in_background=true)\` |
|
|
103358
103460
|
|
|
103359
103461
|
<tool_usage_rules>
|
|
@@ -105669,6 +105771,8 @@ function showToast(ctx, sessionID) {
|
|
|
105669
105771
|
function getNativeSisyphusGptVariant(model) {
|
|
105670
105772
|
if (isGpt5_5Model(model.modelID))
|
|
105671
105773
|
return "medium";
|
|
105774
|
+
if (isGpt6Model(model.modelID))
|
|
105775
|
+
return "high";
|
|
105672
105776
|
const chain = AGENT_MODEL_REQUIREMENTS["sisyphus"]?.fallbackChain ?? [];
|
|
105673
105777
|
const exactMatch = chain.find((entry) => entry.providers.includes(model.providerID) && entry.model === model.modelID);
|
|
105674
105778
|
if (exactMatch?.variant !== undefined) {
|
|
@@ -105682,13 +105786,13 @@ function createNoSisyphusGptHook(ctx) {
|
|
|
105682
105786
|
const rawAgent = input.agent ?? getSessionAgent(input.sessionID) ?? "";
|
|
105683
105787
|
const agentKey = getAgentConfigKey(rawAgent);
|
|
105684
105788
|
const modelID = input.model?.modelID;
|
|
105685
|
-
if (agentKey === "sisyphus" && input.model && modelID && isGptNativeSisyphusModel(modelID) && output?.message && output.message.variant === undefined) {
|
|
105789
|
+
if (agentKey === "sisyphus" && input.model && modelID && (isGptNativeSisyphusModel(modelID) || isGpt6Model(modelID)) && output?.message && output.message.variant === undefined) {
|
|
105686
105790
|
const variant = getNativeSisyphusGptVariant(input.model);
|
|
105687
105791
|
if (variant !== undefined) {
|
|
105688
105792
|
output.message.variant = variant;
|
|
105689
105793
|
}
|
|
105690
105794
|
}
|
|
105691
|
-
if (agentKey === "sisyphus" && modelID && isGptModel(modelID) && !isGptNativeSisyphusModel(modelID)) {
|
|
105795
|
+
if (agentKey === "sisyphus" && modelID && isGptModel(modelID) && !isGptNativeSisyphusModel(modelID) && !isGpt6Model(modelID)) {
|
|
105692
105796
|
showToast(ctx, input.sessionID);
|
|
105693
105797
|
input.agent = resolveRegisteredAgentName("hephaestus") ?? "hephaestus";
|
|
105694
105798
|
if (output?.message) {
|
|
@@ -112277,7 +112381,7 @@ to continue:`))
|
|
|
112277
112381
|
return;
|
|
112278
112382
|
output.output = outputText.trimEnd() + `
|
|
112279
112383
|
|
|
112280
|
-
to continue: task(task_id="${taskId}", load_skills=[], run_in_background=
|
|
112384
|
+
to continue: task(task_id="${taskId}", load_skills=[], run_in_background=true, prompt="...")`;
|
|
112281
112385
|
};
|
|
112282
112386
|
return {
|
|
112283
112387
|
"tool.execute.after": toolExecuteAfter
|
|
@@ -113330,7 +113434,7 @@ Correct action \u2014 delegate via \`task()\`. Fan out in PARALLEL when multiple
|
|
|
113330
113434
|
task(
|
|
113331
113435
|
category="quick",
|
|
113332
113436
|
load_skills=[],
|
|
113333
|
-
run_in_background=
|
|
113437
|
+
run_in_background=true,
|
|
113334
113438
|
prompt="[6 sections: TASK / EXPECTED OUTCOME / REQUIRED TOOLS / MUST DO / MUST NOT DO / CONTEXT]"
|
|
113335
113439
|
)
|
|
113336
113440
|
\`\`\`
|
|
@@ -115818,7 +115922,7 @@ var DELEGATE_TASK_ERROR_PATTERNS = [
|
|
|
115818
115922
|
{
|
|
115819
115923
|
pattern: "run_in_background",
|
|
115820
115924
|
errorType: "missing_run_in_background",
|
|
115821
|
-
fixHint: "Add run_in_background=
|
|
115925
|
+
fixHint: "Add run_in_background=true (the standard spawn) or run_in_background=false for a short child whose result gates your very next call"
|
|
115822
115926
|
},
|
|
115823
115927
|
{
|
|
115824
115928
|
pattern: "load_skills",
|
|
@@ -115906,7 +116010,7 @@ function buildRetryGuidance(errorInfo) {
|
|
|
115906
116010
|
description="Task description",
|
|
115907
116011
|
prompt="Detailed prompt...",
|
|
115908
116012
|
category="unspecified-low", // OR subagent_type="explore"
|
|
115909
|
-
run_in_background=
|
|
116013
|
+
run_in_background=true,
|
|
115910
116014
|
load_skills=[]
|
|
115911
116015
|
)
|
|
115912
116016
|
\`\`\`
|
|
@@ -131060,10 +131164,10 @@ function resolveCategoryConfig(categoryName, options) {
|
|
|
131060
131164
|
userConfig = { ...configuredUserConfig, models };
|
|
131061
131165
|
}
|
|
131062
131166
|
const categoryReq = CATEGORY_MODEL_REQUIREMENTS[categoryName];
|
|
131063
|
-
const
|
|
131064
|
-
if (
|
|
131065
|
-
if (!isModelAvailable2(requiredModel, availableModels)) {
|
|
131066
|
-
log2(`[resolveCategoryConfig] Category ${categoryName} requires ${
|
|
131167
|
+
const requiredModels = builtinCategoryGateModels(categoryName, categoryReq?.requiresModel);
|
|
131168
|
+
if (requiredModels.length > 0 && availableModels && !hasExplicitUserConfig) {
|
|
131169
|
+
if (!requiredModels.some((requiredModel) => isModelAvailable2(requiredModel, availableModels))) {
|
|
131170
|
+
log2(`[resolveCategoryConfig] Category ${categoryName} requires ${requiredModels.join(" or ")} but not available`);
|
|
131067
131171
|
return null;
|
|
131068
131172
|
}
|
|
131069
131173
|
}
|
|
@@ -131241,7 +131345,8 @@ async function resolveCategoryExecution(args, executorCtx, inheritedModel, syste
|
|
|
131241
131345
|
});
|
|
131242
131346
|
if (!resolved) {
|
|
131243
131347
|
const requirement2 = CATEGORY_MODEL_REQUIREMENTS[categoryName];
|
|
131244
|
-
const
|
|
131348
|
+
const requiredModels = builtinCategoryGateModels(categoryName, requirement2?.requiresModel);
|
|
131349
|
+
const requiredModel = requiredModels.length > 0 ? requiredModels.join('" or "') : undefined;
|
|
131245
131350
|
const allCategoryNames = Object.keys(enabledCategories).join(", ");
|
|
131246
131351
|
const configuredModels = userCategories?.[categoryName]?.models;
|
|
131247
131352
|
if (configuredModels && availableModels.size > 0) {
|
|
@@ -131745,8 +131850,7 @@ function createDelegateTaskPresentation(options) {
|
|
|
131745
131850
|
Available categories:
|
|
131746
131851
|
${categoryList}
|
|
131747
131852
|
- subagent_type: Use specific agent directly (explore, librarian, oracle, metis, momus)
|
|
131748
|
-
- run_in_background:
|
|
131749
|
-
Sync waits use a 30-minute inactivity window: OpenCode busy/retry/running status resets the window, so this is not a total wall-clock limit.
|
|
131853
|
+
- run_in_background: true is the standard spawn: returns a background task ID like \`bg_...\` at once and the completion notification delivers the result. false blocks this response until the child finishes (a 30-minute inactivity window, reset by OpenCode busy/retry/running status, not a total wall-clock limit); use it only for a short child whose result gates your very next call. Omitted counts as false.
|
|
131750
131854
|
- task_id: Continuation session id (\`ses_...\`) from task metadata. Continues the same subagent session with FULL CONTEXT PRESERVED; not the background task id (\`bg_...\`).
|
|
131751
131855
|
- command: The command that triggered this task (optional, for slash command tracking).
|
|
131752
131856
|
|
|
@@ -131798,7 +131902,7 @@ var delegateTaskArgsSchema = {
|
|
|
131798
131902
|
load_skills: tool.schema.array(tool.schema.string()).optional().describe('Skill names to inject. Optional; defaults to [] when omitted. Pass an explicit array (e.g. ["git-master"]) for skill-specific tasks.'),
|
|
131799
131903
|
description: tool.schema.string().optional().describe("Short task description (3-5 words). Auto-generated from prompt if omitted."),
|
|
131800
131904
|
prompt: tool.schema.string().describe("Full detailed prompt for the agent"),
|
|
131801
|
-
run_in_background: tool.schema.boolean().optional().describe("
|
|
131905
|
+
run_in_background: tool.schema.boolean().optional().describe("true is the standard spawn: returns a background task ID `bg_...` at once; the completion notification delivers the result, which background_output reads. false blocks this response until the child finishes; use it only for a short child whose result gates your very next call. Omitted counts as false."),
|
|
131802
131906
|
category: tool.schema.string().optional().describe("REQUIRED if subagent_type not provided. Do NOT provide both category and subagent_type."),
|
|
131803
131907
|
subagent_type: tool.schema.string().optional().describe("REQUIRED if category not provided. Do NOT provide both category and subagent_type."),
|
|
131804
131908
|
task_id: tool.schema.string().optional().describe("Continuation session id (`ses_...`) from task metadata; not a background task id (`bg_...`)."),
|
|
@@ -152809,14 +152913,14 @@ Check the \`skill\` tool for available skills and their descriptions. For EVERY
|
|
|
152809
152913
|
task(
|
|
152810
152914
|
category="[selected-category]",
|
|
152811
152915
|
load_skills=["skill-1", "skill-2"], // Include ALL relevant skills - ESPECIALLY user-installed ones
|
|
152812
|
-
run_in_background=
|
|
152916
|
+
run_in_background=true,
|
|
152813
152917
|
prompt="..."
|
|
152814
152918
|
)
|
|
152815
152919
|
\`\`\`
|
|
152816
152920
|
|
|
152817
152921
|
**ANTI-PATTERN (will produce poor results):**
|
|
152818
152922
|
\`\`\`typescript
|
|
152819
|
-
task(category="...", load_skills=[], run_in_background=
|
|
152923
|
+
task(category="...", load_skills=[], run_in_background=true, prompt="...") // Empty load_skills without justification
|
|
152820
152924
|
\`\`\`
|
|
152821
152925
|
|
|
152822
152926
|
---
|
|
@@ -152825,23 +152929,23 @@ task(category="...", load_skills=[], run_in_background=false, prompt="...") //
|
|
|
152825
152929
|
|
|
152826
152930
|
Every delegation MUST use the category that matches the task's domain. Mismatched categories produce measurably worse output because each category runs on a model optimized for that specific domain.
|
|
152827
152931
|
|
|
152828
|
-
**VISUAL
|
|
152932
|
+
**ANY VISUAL DESIGN RELATION = ALWAYS \`visual-engineering\`. NO EXCEPTIONS.**
|
|
152829
152933
|
|
|
152830
|
-
Any task
|
|
152934
|
+
Any task with even a minor visual-design relationship \u2014 including UI, UX, CSS, styling, layout, animation, design systems, frontend components, screenshots, diagrams, visual polish, or presentation \u2014 MUST go to \`visual-engineering\`. Never delegate it to \`quick\`, \`unspecified-*\`, or any other category.
|
|
152831
152935
|
|
|
152832
152936
|
\`\`\`typescript
|
|
152833
152937
|
// CORRECT: Visual work \u2192 visual-engineering category
|
|
152834
|
-
task(category="visual-engineering", load_skills=["frontend"], run_in_background=
|
|
152938
|
+
task(category="visual-engineering", load_skills=["frontend"], run_in_background=true, prompt="Redesign the sidebar layout with new spacing...")
|
|
152835
152939
|
|
|
152836
152940
|
// WRONG: Visual work in wrong category - WILL PRODUCE INFERIOR RESULTS
|
|
152837
|
-
task(category="quick", load_skills=[], run_in_background=
|
|
152941
|
+
task(category="quick", load_skills=[], run_in_background=true, prompt="Redesign the sidebar layout with new spacing...")
|
|
152838
152942
|
\`\`\`
|
|
152839
152943
|
|
|
152840
152944
|
| Task Domain | MUST Use Category |
|
|
152841
152945
|
|---|---|
|
|
152842
|
-
| UI, styling, animations, layout, design | \`visual-engineering\` |
|
|
152843
|
-
| Hard logic
|
|
152844
|
-
|
|
|
152946
|
+
| Visual design, UI, styling, animations, layout, design systems | \`visual-engineering\` |
|
|
152947
|
+
| Hard logic and architecture decisions | \`ultrabrain\` |
|
|
152948
|
+
| 3D graphics, computer use, browser use, backend, logic, algorithms, CAPTCHA solving, multimodal, autonomous research + end-to-end implementation | \`deep\` |
|
|
152845
152949
|
| Single-file typo, trivial config change | \`quick\` |
|
|
152846
152950
|
|
|
152847
152951
|
**When in doubt about category, it is almost never \`quick\` or \`unspecified-*\`. Match the domain.**`;
|
|
@@ -152927,7 +153031,7 @@ task(subagent_type="explore", run_in_background=true, ...)
|
|
|
152927
153031
|
// packages/omo-opencode/src/agents/frontier-tool-schema-guard.ts
|
|
152928
153032
|
var FRONTIER_TOOL_SCHEMA_NAMES = ["grep", "glob"];
|
|
152929
153033
|
function getFrontierToolSchemaPermission(model) {
|
|
152930
|
-
return isClaudeOpus47OrLaterModel(model) || isGpt5_5Model(model) || isGpt5_6Model(model) ? { grep: "deny", glob: "deny" } : {};
|
|
153034
|
+
return isClaudeOpus47OrLaterModel(model) || isGpt5_5Model(model) || isGpt5_6Model(model) || isGpt6Model(model) ? { grep: "deny", glob: "deny" } : {};
|
|
152931
153035
|
}
|
|
152932
153036
|
function applyFrontierToolSchemaPermission(permission, model, explicitPermission, explicitTools) {
|
|
152933
153037
|
if (!permission)
|
|
@@ -153050,10 +153154,10 @@ Every \`task()\` output exposes a continuation session ID (\`ses_...\`). Pass it
|
|
|
153050
153154
|
|
|
153051
153155
|
\`\`\`typescript
|
|
153052
153156
|
// WRONG: Starting fresh loses all context
|
|
153053
|
-
task(category="quick", load_skills=[], run_in_background=
|
|
153157
|
+
task(category="quick", load_skills=[], run_in_background=true, description="Fix type error", prompt="Fix the type error in auth.ts...")
|
|
153054
153158
|
|
|
153055
153159
|
// CORRECT: Resume preserves everything
|
|
153056
|
-
task(task_id="ses_abc123", load_skills=[], run_in_background=
|
|
153160
|
+
task(task_id="ses_abc123", load_skills=[], run_in_background=true, description="Fix type error", prompt="Fix: Type error on line 42")
|
|
153057
153161
|
\`\`\`
|
|
153058
153162
|
|
|
153059
153163
|
**After EVERY delegation, STORE the \`ses_...\` continuation ID for potential continuation.**
|
|
@@ -153669,7 +153773,7 @@ function buildGeminiToolCallExamples() {
|
|
|
153669
153773
|
**User**: "Add a new /health endpoint to the API"
|
|
153670
153774
|
**CORRECT**:
|
|
153671
153775
|
\`\`\`
|
|
153672
|
-
\u2192 Call Task(category="quick", load_skills=["typescript-programmer"], run_in_background=
|
|
153776
|
+
\u2192 Call Task(category="quick", load_skills=["typescript-programmer"], run_in_background=true, prompt="...")
|
|
153673
153777
|
\u2192 (After agent completes) Read changed files to verify
|
|
153674
153778
|
\u2192 Call LspDiagnostics on changed files
|
|
153675
153779
|
\u2192 Report
|
|
@@ -155921,10 +156025,14 @@ ${styleBlock}`;
|
|
|
155921
156025
|
var GPT_PROMPT_IDENTITIES = {
|
|
155922
156026
|
"gpt-5.5": "GPT-5.5",
|
|
155923
156027
|
"gpt-5.6-sol": "GPT-5.6 Sol",
|
|
156028
|
+
"gpt-6-astra": "GPT-6 Astra",
|
|
155924
156029
|
"gpt-family": "a GPT-family model"
|
|
155925
156030
|
};
|
|
155926
156031
|
function getGptPromptIdentityKey(model) {
|
|
155927
156032
|
const modelID = model?.split("/").at(-1)?.toLowerCase();
|
|
156033
|
+
if (modelID?.includes("gpt-6-astra")) {
|
|
156034
|
+
return "gpt-6-astra";
|
|
156035
|
+
}
|
|
155928
156036
|
if (modelID?.includes("gpt-5.6-sol") || modelID?.includes("gpt-5-6-sol")) {
|
|
155929
156037
|
return "gpt-5.6-sol";
|
|
155930
156038
|
}
|
|
@@ -156315,7 +156423,7 @@ Don't narrate every tool call, but don't go silent for long stretches on complex
|
|
|
156315
156423
|
|
|
156316
156424
|
Parameters to always think about:
|
|
156317
156425
|
|
|
156318
|
-
- \`run_in_background\`: \`true\`
|
|
156426
|
+
- \`run_in_background\`: \`true\` is the standard spawn; the completion notification delivers the result while you keep working or end the response. \`false\` blocks this response until the child finishes; use it only for a short child whose result gates your very next call.
|
|
156319
156427
|
- \`load_skills\`: evaluate every available skill before each delegation. Err toward loading when the skill's domain even loosely connects to the task.
|
|
156320
156428
|
- \`task_id\`: reuse for follow-ups. Do not start fresh sessions on continuations.
|
|
156321
156429
|
- \`description\`: a 3-5 word label. Optional but improves observability.
|
|
@@ -156326,7 +156434,7 @@ Both are background pattern search with narrative synthesis. Always fire them wi
|
|
|
156326
156434
|
|
|
156327
156435
|
## oracle
|
|
156328
156436
|
|
|
156329
|
-
Read-only consultant.
|
|
156437
|
+
Read-only consultant. Run it in the background and continue with work that does not depend on its answer; never proceed with work Oracle was asked to decide before its result arrives.
|
|
156330
156438
|
|
|
156331
156439
|
## skill loading
|
|
156332
156440
|
|
|
@@ -157358,7 +157466,7 @@ function resolveSisyphusPromptFamily(model) {
|
|
|
157358
157466
|
return "kimi-k2-7";
|
|
157359
157467
|
if (isKimiK2Model(model))
|
|
157360
157468
|
return "kimi-k2-6";
|
|
157361
|
-
if (isGpt5_5Model(model) || isGpt5_6Model(model))
|
|
157469
|
+
if (isGpt5_5Model(model) || isGpt5_6Model(model) || isGpt6Model(model))
|
|
157362
157470
|
return "gpt-5-5";
|
|
157363
157471
|
if (isGptNativeSisyphusModel(model))
|
|
157364
157472
|
return "gpt-5-4";
|
|
@@ -157812,7 +157920,7 @@ function createOracleAgent(model) {
|
|
|
157812
157920
|
...restrictions,
|
|
157813
157921
|
prompt: ORACLE_DEFAULT_PROMPT
|
|
157814
157922
|
};
|
|
157815
|
-
if (isGpt5_6Model(model)) {
|
|
157923
|
+
if (isGpt5_6Model(model) || isGpt6Model(model)) {
|
|
157816
157924
|
return {
|
|
157817
157925
|
...base,
|
|
157818
157926
|
prompt: ORACLE_GPT_5_5_PROMPT,
|
|
@@ -158763,7 +158871,7 @@ ${categoryRows.join(`
|
|
|
158763
158871
|
`)}
|
|
158764
158872
|
|
|
158765
158873
|
\`\`\`typescript
|
|
158766
|
-
task(category="[category-name]", load_skills=[...], run_in_background=
|
|
158874
|
+
task(category="[category-name]", load_skills=[...], run_in_background=true, prompt="...")
|
|
158767
158875
|
\`\`\``;
|
|
158768
158876
|
}
|
|
158769
158877
|
function buildSkillsSection2(skills2) {
|
|
@@ -158787,7 +158895,7 @@ Read each skill's description in the section below and ask: "Does this skill's d
|
|
|
158787
158895
|
|
|
158788
158896
|
**Usage:**
|
|
158789
158897
|
\`\`\`typescript
|
|
158790
|
-
task(category="[category]", load_skills=["skill-1", "skill-2"], run_in_background=
|
|
158898
|
+
task(category="[category]", load_skills=["skill-1", "skill-2"], run_in_background=true, prompt="...")
|
|
158791
158899
|
\`\`\`
|
|
158792
158900
|
|
|
158793
158901
|
**IMPORTANT:**
|
|
@@ -159232,7 +159340,7 @@ function createMomusAgent(model) {
|
|
|
159232
159340
|
...restrictions,
|
|
159233
159341
|
prompt: MOMUS_DEFAULT_PROMPT
|
|
159234
159342
|
};
|
|
159235
|
-
if (isGpt5_6Model(model)) {
|
|
159343
|
+
if (isGpt5_6Model(model) || isGpt6Model(model)) {
|
|
159236
159344
|
return {
|
|
159237
159345
|
...base,
|
|
159238
159346
|
prompt: MOMUS_GPT_5_6_PROMPT,
|
|
@@ -160284,6 +160392,7 @@ var GPT_5_3_CODEX_RE = /^gpt-5[.-]3-codex(?:$|[.-])/i;
|
|
|
160284
160392
|
var GPT_5_4_RE = /^gpt-5[.-]4(?:$|[.-])/i;
|
|
160285
160393
|
var GPT_5_5_RE = /^gpt-5[.-]5(?:$|[.-])/i;
|
|
160286
160394
|
var GPT_5_6_RE = /^gpt-5[.-]6(?:$|[.-])/i;
|
|
160395
|
+
var GPT_6_RE = /^gpt-6(?:$|[.-])/i;
|
|
160287
160396
|
var HOSTED_VENDOR_PREFIX_RE = /^(?:[^./]+\.)+(gpt-5[.-].*)$/i;
|
|
160288
160397
|
|
|
160289
160398
|
class UnsupportedHephaestusModelError extends Error {
|
|
@@ -160302,7 +160411,7 @@ function isHephaestusSupportedModel(model) {
|
|
|
160302
160411
|
if (!model)
|
|
160303
160412
|
return false;
|
|
160304
160413
|
const modelName = extractModelName3(model);
|
|
160305
|
-
return GPT_5_3_CODEX_RE.test(modelName) || GPT_5_4_RE.test(modelName) || GPT_5_5_RE.test(modelName) || GPT_5_6_RE.test(modelName);
|
|
160414
|
+
return GPT_5_3_CODEX_RE.test(modelName) || GPT_5_4_RE.test(modelName) || GPT_5_5_RE.test(modelName) || GPT_5_6_RE.test(modelName) || GPT_6_RE.test(modelName);
|
|
160306
160415
|
}
|
|
160307
160416
|
function assertHephaestusSupportedModel(model) {
|
|
160308
160417
|
if (!isHephaestusSupportedModel(model)) {
|
|
@@ -160311,7 +160420,7 @@ function assertHephaestusSupportedModel(model) {
|
|
|
160311
160420
|
}
|
|
160312
160421
|
function getHephaestusPromptSource(model) {
|
|
160313
160422
|
assertHephaestusSupportedModel(model);
|
|
160314
|
-
if (model && isGpt5_6Model(model)) {
|
|
160423
|
+
if (model && (isGpt5_6Model(model) || isGpt6Model(model))) {
|
|
160315
160424
|
return "gpt-5-6";
|
|
160316
160425
|
}
|
|
160317
160426
|
if (model && isGpt5_5Model(model)) {
|
|
@@ -161390,7 +161499,7 @@ You may invoke \`task()\` with \`subagent_type\` set to \`explore\`, \`librarian
|
|
|
161390
161499
|
|
|
161391
161500
|
- \`explore\`: internal codebase pattern search with synthesis. Parallel batches of 2-5 with \`run_in_background=true\`.
|
|
161392
161501
|
- \`librarian\`: external docs, open-source code, web references. Same pattern.
|
|
161393
|
-
- \`oracle\`: high-reasoning consultant.
|
|
161502
|
+
- \`oracle\`: high-reasoning consultant. Run it in the background; continue with work that does not depend on the answer and never ship what it was asked to decide before the result arrives.
|
|
161394
161503
|
|
|
161395
161504
|
Every \`task()\` call needs \`load_skills\` (empty array \`[]\` is valid). Reuse \`task_id\` for follow-ups to preserve sub-agent context.
|
|
161396
161505
|
|
|
@@ -161726,7 +161835,7 @@ function getSisyphusJuniorPromptSource(model) {
|
|
|
161726
161835
|
if (model && isKimiK2Model(model))
|
|
161727
161836
|
return "kimi-k2";
|
|
161728
161837
|
if (model && isGptModel(model)) {
|
|
161729
|
-
if (isGpt5_5Model(model) || isGpt5_6Model(model))
|
|
161838
|
+
if (isGpt5_5Model(model) || isGpt5_6Model(model) || isGpt6Model(model))
|
|
161730
161839
|
return "gpt-5-5";
|
|
161731
161840
|
const lower = model.toLowerCase();
|
|
161732
161841
|
if (lower.includes("gpt-5.4") || lower.includes("gpt-5-4"))
|