oh-my-opencode-gpt-slim 0.1.7 → 0.1.8

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.md CHANGED
@@ -79,11 +79,11 @@ Config files same as upstream:
79
79
  ```bash
80
80
  opencode
81
81
  # then type:
82
- ultrawork
83
- # or:
84
- ulw
82
+ ulw fix the failing tests
85
83
  ```
86
84
 
85
+ `ulw` is a lightweight execution-bias prefix for Sisyphus in this fork: when it appears at the start of your message to Sisyphus, it raises model precision and nudges that turn toward more autonomous exploration and delegation.
86
+
87
87
  To load the built-in skill explicitly:
88
88
 
89
89
  ```text
package/dist/cli/index.js CHANGED
@@ -2145,7 +2145,7 @@ var package_default;
2145
2145
  var init_package = __esm(() => {
2146
2146
  package_default = {
2147
2147
  name: "oh-my-opencode-gpt-slim",
2148
- version: "0.1.7",
2148
+ version: "0.1.8",
2149
2149
  description: "GPT-optimized lean fork of oh-my-openagent \u2014 33 hooks removed, 5 tools removed, Sisyphus prompt rewritten based on OpenAI Codex prompt.md",
2150
2150
  main: "dist/index.js",
2151
2151
  types: "dist/index.d.ts",
@@ -2223,15 +2223,15 @@ var init_package = __esm(() => {
2223
2223
  typescript: "^5.7.3"
2224
2224
  },
2225
2225
  optionalDependencies: {
2226
- "oh-my-opencode-gpt-slim-darwin-arm64": "0.1.7",
2227
- "oh-my-opencode-gpt-slim-darwin-x64": "0.1.7",
2228
- "oh-my-opencode-gpt-slim-darwin-x64-baseline": "0.1.7",
2229
- "oh-my-opencode-gpt-slim-linux-arm64": "0.1.7",
2230
- "oh-my-opencode-gpt-slim-linux-arm64-musl": "0.1.7",
2231
- "oh-my-opencode-gpt-slim-linux-x64": "0.1.7",
2232
- "oh-my-opencode-gpt-slim-linux-x64-baseline": "0.1.7",
2233
- "oh-my-opencode-gpt-slim-linux-x64-musl": "0.1.7",
2234
- "oh-my-opencode-gpt-slim-linux-x64-musl-baseline": "0.1.7"
2226
+ "oh-my-opencode-gpt-slim-darwin-arm64": "0.1.8",
2227
+ "oh-my-opencode-gpt-slim-darwin-x64": "0.1.8",
2228
+ "oh-my-opencode-gpt-slim-darwin-x64-baseline": "0.1.8",
2229
+ "oh-my-opencode-gpt-slim-linux-arm64": "0.1.8",
2230
+ "oh-my-opencode-gpt-slim-linux-arm64-musl": "0.1.8",
2231
+ "oh-my-opencode-gpt-slim-linux-x64": "0.1.8",
2232
+ "oh-my-opencode-gpt-slim-linux-x64-baseline": "0.1.8",
2233
+ "oh-my-opencode-gpt-slim-linux-x64-musl": "0.1.8",
2234
+ "oh-my-opencode-gpt-slim-linux-x64-musl-baseline": "0.1.8"
2235
2235
  },
2236
2236
  overrides: {
2237
2237
  "@opencode-ai/sdk": "^1.2.17"
package/dist/index.js CHANGED
@@ -12308,7 +12308,7 @@ function initConfigContext(binary, version) {
12308
12308
  // package.json
12309
12309
  var package_default = {
12310
12310
  name: "oh-my-opencode-gpt-slim",
12311
- version: "0.1.7",
12311
+ version: "0.1.8",
12312
12312
  description: "GPT-optimized lean fork of oh-my-openagent \u2014 33 hooks removed, 5 tools removed, Sisyphus prompt rewritten based on OpenAI Codex prompt.md",
12313
12313
  main: "dist/index.js",
12314
12314
  types: "dist/index.d.ts",
@@ -12386,15 +12386,15 @@ var package_default = {
12386
12386
  typescript: "^5.7.3"
12387
12387
  },
12388
12388
  optionalDependencies: {
12389
- "oh-my-opencode-gpt-slim-darwin-arm64": "0.1.7",
12390
- "oh-my-opencode-gpt-slim-darwin-x64": "0.1.7",
12391
- "oh-my-opencode-gpt-slim-darwin-x64-baseline": "0.1.7",
12392
- "oh-my-opencode-gpt-slim-linux-arm64": "0.1.7",
12393
- "oh-my-opencode-gpt-slim-linux-arm64-musl": "0.1.7",
12394
- "oh-my-opencode-gpt-slim-linux-x64": "0.1.7",
12395
- "oh-my-opencode-gpt-slim-linux-x64-baseline": "0.1.7",
12396
- "oh-my-opencode-gpt-slim-linux-x64-musl": "0.1.7",
12397
- "oh-my-opencode-gpt-slim-linux-x64-musl-baseline": "0.1.7"
12389
+ "oh-my-opencode-gpt-slim-darwin-arm64": "0.1.8",
12390
+ "oh-my-opencode-gpt-slim-darwin-x64": "0.1.8",
12391
+ "oh-my-opencode-gpt-slim-darwin-x64-baseline": "0.1.8",
12392
+ "oh-my-opencode-gpt-slim-linux-arm64": "0.1.8",
12393
+ "oh-my-opencode-gpt-slim-linux-arm64-musl": "0.1.8",
12394
+ "oh-my-opencode-gpt-slim-linux-x64": "0.1.8",
12395
+ "oh-my-opencode-gpt-slim-linux-x64-baseline": "0.1.8",
12396
+ "oh-my-opencode-gpt-slim-linux-x64-musl": "0.1.8",
12397
+ "oh-my-opencode-gpt-slim-linux-x64-musl-baseline": "0.1.8"
12398
12398
  },
12399
12399
  overrides: {
12400
12400
  "@opencode-ai/sdk": "^1.2.17"
@@ -17224,6 +17224,17 @@ function resetMessageCursor(sessionID) {
17224
17224
  }
17225
17225
  sessionCursors.clear();
17226
17226
  }
17227
+ // src/shared/system-directive.ts
17228
+ var SYSTEM_DIRECTIVE_PREFIX = "[SYSTEM DIRECTIVE: OH-MY-OPENCODE";
17229
+ function createSystemDirective(type2) {
17230
+ return `${SYSTEM_DIRECTIVE_PREFIX} - ${type2}]`;
17231
+ }
17232
+ function isSystemDirective(text) {
17233
+ return text.trimStart().startsWith(SYSTEM_DIRECTIVE_PREFIX);
17234
+ }
17235
+ function removeSystemReminders(text) {
17236
+ return text.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/gi, "").trim();
17237
+ }
17227
17238
  // src/shared/agent-tool-restrictions.ts
17228
17239
  var EXPLORATION_AGENT_DENYLIST = {
17229
17240
  write: false,
@@ -78999,14 +79010,21 @@ function scheduleDeferredModelOverride(messageId, targetModel, variant) {
78999
79010
  });
79000
79011
  }
79001
79012
 
79002
- // src/plugin/ultrawork-model-override.ts
79013
+ // src/plugin/ultrawork-intent.ts
79003
79014
  var CODE_BLOCK = /```[\s\S]*?```/g;
79004
79015
  var INLINE_CODE = /`[^`]+`/g;
79005
- var ULTRAWORK_PATTERN = /\b(ultrawork|ulw)\b/i;
79006
- function detectUltrawork(text) {
79007
- const clean = text.replace(CODE_BLOCK, "").replace(INLINE_CODE, "");
79008
- return ULTRAWORK_PATTERN.test(clean);
79016
+ var ULTRAWORK_INTENT_PATTERN = /^[\s\n]*(ultrawork|ulw)(?:\b|[!,:;-])/i;
79017
+ function cleanUltraworkText(text) {
79018
+ const strippedText = removeSystemReminders(text).replace(CODE_BLOCK, "").replace(INLINE_CODE, "");
79019
+ return strippedText.split(`
79020
+ `).filter((line) => !isSystemDirective(line)).join(`
79021
+ `).trim();
79022
+ }
79023
+ function detectUltraworkIntent(text) {
79024
+ return ULTRAWORK_INTENT_PATTERN.test(cleanUltraworkText(text));
79009
79025
  }
79026
+
79027
+ // src/plugin/ultrawork-model-override.ts
79010
79028
  function extractPromptText(parts) {
79011
79029
  return parts.filter((p) => p.type === "text").map((p) => p.text || "").join("");
79012
79030
  }
@@ -79026,7 +79044,7 @@ function isSameModel(current, target) {
79026
79044
  }
79027
79045
  function resolveUltraworkOverride(pluginConfig, inputAgentName, output, sessionID) {
79028
79046
  const promptText = extractPromptText(output.parts);
79029
- if (!detectUltrawork(promptText))
79047
+ if (!detectUltraworkIntent(promptText))
79030
79048
  return null;
79031
79049
  const messageAgentName = typeof output.message["agent"] === "string" ? output.message["agent"] : undefined;
79032
79050
  const sessionAgentName = sessionID ? getSessionAgent(sessionID) : undefined;
@@ -79083,6 +79101,45 @@ function applyUltraworkModelOverrideOnMessage(pluginConfig, inputAgentName, outp
79083
79101
  showToast2(tui, "Ultrawork Model Override", `${fromModel} \u2192 ${override.modelID}. Maximum precision engaged.`);
79084
79102
  }
79085
79103
 
79104
+ // src/plugin/ultrawork-mode.ts
79105
+ var EXECUTION_BIAS_HEADER = createSystemDirective("EXECUTION BIAS");
79106
+ var EXECUTION_BIAS_DIRECTIVE = [
79107
+ EXECUTION_BIAS_HEADER,
79108
+ "Execution-biased mode is active for this turn.",
79109
+ "- If the request is action-oriented, optimize for execution over discussion.",
79110
+ "- On non-trivial work, begin with parallel exploration before editing code.",
79111
+ "- Prefer delegation for multi-file work, UI work, or external-library uncertainty.",
79112
+ "- Ask only when blocked, unsafe, or materially ambiguous.",
79113
+ "- After code changes, run diagnostics, relevant tests, and a build when applicable.",
79114
+ "- Never commit or push unless the user explicitly asks."
79115
+ ].join(`
79116
+ `);
79117
+ function extractPromptText2(parts) {
79118
+ return parts.filter((part) => part.type === "text").map((part) => part.text ?? "").join(`
79119
+ `);
79120
+ }
79121
+ function isSisyphusAgent(agentName) {
79122
+ if (!agentName)
79123
+ return false;
79124
+ return getAgentConfigKey(agentName) === "sisyphus";
79125
+ }
79126
+ function injectExecutionBias(parts) {
79127
+ parts.unshift(createInternalAgentTextPart(EXECUTION_BIAS_DIRECTIVE));
79128
+ }
79129
+ function applyUltraworkModeOnMessage(agentName, output) {
79130
+ if (!isSisyphusAgent(agentName))
79131
+ return false;
79132
+ const promptText = extractPromptText2(output.parts);
79133
+ if (promptText.trim().length === 0)
79134
+ return false;
79135
+ if (!detectUltraworkIntent(promptText))
79136
+ return false;
79137
+ if (promptText.includes(EXECUTION_BIAS_HEADER))
79138
+ return false;
79139
+ injectExecutionBias(output.parts);
79140
+ return true;
79141
+ }
79142
+
79086
79143
  // src/hooks/ralph-loop/constants.ts
79087
79144
  var ULTRAWORK_VERIFICATION_PROMISE = "ULTRAWORK_VERIFIED";
79088
79145
  var DEFAULT_RALPH_COMPLETION_PROMISE = "DONE";
@@ -79208,6 +79265,7 @@ function createChatMessageHandler2(args) {
79208
79265
  }
79209
79266
  }
79210
79267
  applyUltraworkModelOverrideOnMessage(pluginConfig, input.agent, output, pluginContext.client.tui, input.sessionID);
79268
+ applyUltraworkModeOnMessage(input.agent, output);
79211
79269
  };
79212
79270
  }
79213
79271
 
@@ -0,0 +1,2 @@
1
+ export declare function detectUltrawork(text: string): boolean;
2
+ export declare function detectUltraworkIntent(text: string): boolean;
@@ -0,0 +1,9 @@
1
+ type OutputPart = {
2
+ type: string;
3
+ text?: string;
4
+ [key: string]: unknown;
5
+ };
6
+ export declare function applyUltraworkModeOnMessage(agentName: string | undefined, output: {
7
+ parts: OutputPart[];
8
+ }): boolean;
9
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { OhMyOpenCodeConfig } from "../config";
2
- export declare function detectUltrawork(text: string): boolean;
2
+ export { detectUltrawork } from "./ultrawork-intent";
3
3
  export type UltraworkOverrideResult = {
4
4
  providerID?: string;
5
5
  modelID?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-gpt-slim",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "GPT-optimized lean fork of oh-my-openagent — 33 hooks removed, 5 tools removed, Sisyphus prompt rewritten based on OpenAI Codex prompt.md",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -78,15 +78,15 @@
78
78
  "typescript": "^5.7.3"
79
79
  },
80
80
  "optionalDependencies": {
81
- "oh-my-opencode-gpt-slim-darwin-arm64": "0.1.7",
82
- "oh-my-opencode-gpt-slim-darwin-x64": "0.1.7",
83
- "oh-my-opencode-gpt-slim-darwin-x64-baseline": "0.1.7",
84
- "oh-my-opencode-gpt-slim-linux-arm64": "0.1.7",
85
- "oh-my-opencode-gpt-slim-linux-arm64-musl": "0.1.7",
86
- "oh-my-opencode-gpt-slim-linux-x64": "0.1.7",
87
- "oh-my-opencode-gpt-slim-linux-x64-baseline": "0.1.7",
88
- "oh-my-opencode-gpt-slim-linux-x64-musl": "0.1.7",
89
- "oh-my-opencode-gpt-slim-linux-x64-musl-baseline": "0.1.7"
81
+ "oh-my-opencode-gpt-slim-darwin-arm64": "0.1.8",
82
+ "oh-my-opencode-gpt-slim-darwin-x64": "0.1.8",
83
+ "oh-my-opencode-gpt-slim-darwin-x64-baseline": "0.1.8",
84
+ "oh-my-opencode-gpt-slim-linux-arm64": "0.1.8",
85
+ "oh-my-opencode-gpt-slim-linux-arm64-musl": "0.1.8",
86
+ "oh-my-opencode-gpt-slim-linux-x64": "0.1.8",
87
+ "oh-my-opencode-gpt-slim-linux-x64-baseline": "0.1.8",
88
+ "oh-my-opencode-gpt-slim-linux-x64-musl": "0.1.8",
89
+ "oh-my-opencode-gpt-slim-linux-x64-musl-baseline": "0.1.8"
90
90
  },
91
91
  "overrides": {
92
92
  "@opencode-ai/sdk": "^1.2.17"