oh-my-opencode 5.1.29 → 5.1.32

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.
Files changed (146) hide show
  1. package/README.ja.md +2 -0
  2. package/README.ko.md +2 -0
  3. package/README.md +2 -0
  4. package/README.ru.md +2 -0
  5. package/README.zh-cn.md +2 -0
  6. package/dist/cli/cli-program.d.ts +1 -20
  7. package/dist/cli/index.js +950 -51
  8. package/dist/cli/install-command-options.d.ts +20 -0
  9. package/dist/cli/service-auth/browser.d.ts +3 -0
  10. package/dist/cli/service-auth/cli-keystore.fixture.d.ts +7 -0
  11. package/dist/cli/service-auth/commands.d.ts +19 -0
  12. package/dist/cli/service-auth/device-flow.d.ts +15 -0
  13. package/dist/cli/service-auth/device-keys.d.ts +10 -0
  14. package/dist/cli/service-auth/device-name.d.ts +3 -0
  15. package/dist/cli/service-auth/keystore.d.ts +20 -0
  16. package/dist/cli/service-auth/loopback.d.ts +11 -0
  17. package/dist/cli/service-auth/protocol.d.ts +86 -0
  18. package/dist/cli/service-auth/refresh-child.fixture.d.ts +1 -0
  19. package/dist/cli/service-auth/session.d.ts +17 -0
  20. package/dist/cli/service-auth/terminal-text.d.ts +1 -0
  21. package/dist/cli/service-auth/test-support.d.ts +43 -0
  22. package/dist/cli/service-auth/tls-test-certificate.d.ts +4 -0
  23. package/dist/cli-node/index.js +950 -51
  24. package/dist/features/background-agent/task-poller.d.ts +3 -0
  25. package/dist/features/opencode-skill-loader/opencode-shell-skill-content.d.ts +8 -0
  26. package/dist/features/opencode-skill-loader/skill-content.d.ts +1 -0
  27. package/dist/features/team-mode/tools/lifecycle-inline-spec.d.ts +1 -0
  28. package/dist/hooks/keyword-detector/constants.d.ts +1 -0
  29. package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +5 -1
  30. package/dist/index.js +40791 -40412
  31. package/dist/shared/disabled-agents.d.ts +1 -0
  32. package/dist/shared/opencode-shell.d.ts +27 -0
  33. package/dist/skills/browser/SKILL.md +1 -1
  34. package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
  35. package/dist/skills/ultimate-browsing/SKILL.md +14 -16
  36. package/dist/skills/ulw-execute/SKILL.md +2 -2
  37. package/dist/skills/ulw-research/SKILL.md +17 -18
  38. package/dist/skills/ulw-research/scripts/cli-support.test.ts +5 -3
  39. package/dist/skills/ulw-research/scripts/outcome.test.ts +10 -4
  40. package/dist/skills/ulw-research/scripts/report-tools.test.ts +3 -2
  41. package/dist/skills/visual-qa/scripts/cli.test.ts +5 -3
  42. package/dist/tools/delegate-task/executor-types.d.ts +1 -0
  43. package/dist/tools/delegate-task/sync-session-creator.d.ts +1 -0
  44. package/dist/tools/delegate-task/types.d.ts +2 -0
  45. package/dist/tools/session-manager/sdk-storage.d.ts +15 -2
  46. package/dist/tools/session-manager/session-error.d.ts +7 -0
  47. package/dist/tools/session-manager/storage.d.ts +4 -2
  48. package/dist/tui.js +89 -21
  49. package/package.json +15 -14
  50. package/packages/git-bash-mcp/dist/cli.js +1 -1
  51. package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +90 -0
  52. package/packages/lsp-core/src/lsp/client.ts +3 -1
  53. package/packages/lsp-core/src/lsp/workspace-apply-edit-test-support.ts +5 -2
  54. package/packages/lsp-daemon/dist/cli.js +1 -1
  55. package/packages/lsp-daemon/dist/client.js +1 -1
  56. package/packages/lsp-daemon/dist/index.js +1 -1
  57. package/packages/lsp-tools-mcp/dist/cli.js +1 -1
  58. package/packages/lsp-tools-mcp/dist/lsp/manager.js +1 -1
  59. package/packages/lsp-tools-mcp/dist/mcp.js +1 -1
  60. package/packages/lsp-tools-mcp/dist/tools.js +1 -1
  61. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  62. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +7 -4
  63. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  64. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  65. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  66. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  67. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  68. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  69. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  70. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  71. package/packages/omo-codex/plugin/components/lcx/skills/lcx-contribute-bug-fix/SKILL.md +7 -4
  72. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
  73. package/packages/omo-codex/plugin/components/lsp/dist/cli.js +1 -1
  74. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  75. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  76. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  77. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  78. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  79. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  80. package/packages/omo-codex/plugin/components/teammode/skills/teammode/SKILL.md +3 -3
  81. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  82. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  83. package/packages/omo-codex/plugin/components/ultrawork/dist/cli.js +18 -15
  84. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  85. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  86. package/packages/omo-codex/plugin/components/ultrawork/src/directive-content.ts +1 -1
  87. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  88. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  89. package/packages/omo-codex/plugin/components/ulw-loop/directive.md +18 -15
  90. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  91. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  92. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +2 -2
  93. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +2 -2
  94. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  95. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  96. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  97. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  98. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  99. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  100. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  101. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  102. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  103. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  104. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  105. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  106. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  107. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  108. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  109. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  110. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  111. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  112. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  113. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  114. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  115. package/packages/omo-codex/plugin/package-lock.json +12 -12
  116. package/packages/omo-codex/plugin/package.json +1 -1
  117. package/packages/omo-codex/plugin/scripts/auto-update-plan.mjs +2 -0
  118. package/packages/omo-codex/plugin/scripts/auto-update.mjs +2 -0
  119. package/packages/omo-codex/plugin/scripts/build-bundled-mcp-runtimes.mjs +2 -0
  120. package/packages/omo-codex/plugin/scripts/build-components.mjs +1 -0
  121. package/packages/omo-codex/plugin/scripts/materialize-shared-upstreams.mjs +42 -10
  122. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +2 -2
  123. package/packages/omo-codex/plugin/skills/browser/SKILL.md +1 -1
  124. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
  125. package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/SKILL.md +7 -4
  126. package/packages/omo-codex/plugin/skills/teammode/SKILL.md +3 -3
  127. package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +14 -16
  128. package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +18 -15
  129. package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +2 -2
  130. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +2 -2
  131. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +2 -2
  132. package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +17 -18
  133. package/packages/omo-codex/plugin/test/materialize-shared-upstreams.test.mjs +179 -0
  134. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +2 -2
  135. package/packages/omo-codex/plugin/test/windows-console-hide.test.mjs +150 -0
  136. package/packages/omo-codex/scripts/install-dist/install-local.mjs +11 -6
  137. package/packages/prompts-core/prompts/ultrawork/codex.md +18 -15
  138. package/packages/shared-skills/skills/browser/SKILL.md +1 -1
  139. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
  140. package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +14 -16
  141. package/packages/shared-skills/skills/ulw-execute/SKILL.md +2 -2
  142. package/packages/shared-skills/skills/ulw-research/SKILL.md +17 -18
  143. package/packages/shared-skills/skills/ulw-research/scripts/cli-support.test.ts +5 -3
  144. package/packages/shared-skills/skills/ulw-research/scripts/outcome.test.ts +10 -4
  145. package/packages/shared-skills/skills/ulw-research/scripts/report-tools.test.ts +3 -2
  146. package/packages/shared-skills/skills/visual-qa/scripts/cli.test.ts +5 -3
@@ -0,0 +1 @@
1
+ export declare function migrateDisabledAgents(disabledAgents: readonly string[] | undefined): string[];
@@ -0,0 +1,27 @@
1
+ import type { ShellType } from "./shell-env";
2
+ /**
3
+ * The shell OpenCode's bash tool will actually run, mirrored from OpenCode's
4
+ * `Shell.acceptable(cfg.shell)` (packages/core/src/shell.ts, stable since 1.4.0;
5
+ * `cfg.shell` is honored from 1.14.27). Command prefixes must use this shell's
6
+ * syntax: inferring it from ComSpec picks cmd on machines where OpenCode runs
7
+ * PowerShell (#9733).
8
+ *
9
+ * Order: the configured `shell`, else `$SHELL`, when it is not fish/nu and
10
+ * resolves to a file; otherwise on Windows the first of pwsh, powershell,
11
+ * Git Bash, then COMSPEC (or cmd.exe); elsewhere /bin/zsh on macOS, then bash,
12
+ * then /bin/sh.
13
+ */
14
+ export interface OpenCodeShellHost {
15
+ readonly platform: NodeJS.Platform;
16
+ readonly env: NodeJS.ProcessEnv;
17
+ readonly isFile: (file: string) => boolean;
18
+ }
19
+ export declare function openCodeShellName(file: string, host?: OpenCodeShellHost): string;
20
+ export declare function resolveOpenCodeShell(configShell: string | undefined, host?: OpenCodeShellHost): string;
21
+ export declare function shellTypeForOpenCodeShell(shellPath: string, host?: OpenCodeShellHost): ShellType;
22
+ export interface OpenCodeShellTypeResolver {
23
+ setConfiguredShell(shell: unknown): void;
24
+ resolveShellType(): ShellType;
25
+ }
26
+ export declare function createOpenCodeShellTypeResolver(host?: () => OpenCodeShellHost): OpenCodeShellTypeResolver;
27
+ export declare const openCodeShellTypeResolver: OpenCodeShellTypeResolver;
@@ -11,7 +11,7 @@ One library, two engines. omowright ships inside this skill; choose the engine b
11
11
  |---|---|---|
12
12
  | A site the user is signed into, their open tabs, a form, a click-through, a screenshot, web QA, an extension popup | **attached** — the user's own browser through BrowserSkill | `connectBrowserSkill()` |
13
13
  | A throwaway profile, bot-scoring evasion, a CAPTCHA, network interception, a QA flight trace, coordinate control, headless runs | **owned** — a browser your code launches | `connectPipe()` / `connectCloakProfile()` — [references/owned-engine/README.md](references/owned-engine/README.md) |
14
- | Text out of a URL, a 403 bypass, a platform that blocks fetchers | neither | the `ultimate-browsing` skill |
14
+ | A 403/WAF host the attached engine cannot open, a platform with a native reader, an archive snapshot | neither | the `ultimate-browsing` skill |
15
15
 
16
16
  **Attached is the default,** because it is the only engine carrying the user's logins and the only
17
17
  one where a human is a single call away. Never substitute one engine for the other silently: if
@@ -5,5 +5,5 @@
5
5
  "index.js": "b6b064fab277031c6c51f5a58b84b31040f9960bf767bf646adc0540c1d25c1b",
6
6
  "page-bundle.js": "bfd51e8383cf47200d57387bbbed258bce5a3a3d00c38fc108034d2888e23f0c"
7
7
  },
8
- "stagedAtUtc": "2026-10-09T17:45:46.876Z"
8
+ "stagedAtUtc": "2026-10-13T00:11:24.408Z"
9
9
  }
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: ultimate-browsing
3
- description: "Renders, drives, and screenshots web pages: JS-rendered sources, clicks and forms, persistent logins, WAF-blocked hosts (platform-native readers, stealth Chrome), and the browsing lane of a research run, with screenshots as provenance. Not for plain search or unblocked static fetch."
3
+ description: "Reaches web pages the user's browser cannot open: WAF-blocked and bot-scored hosts, platform-native readers (Chinese and social platforms), archive snapshots with provenance, and a browser you own for stealth or throwaway profiles. Not for plain search, an unblocked static fetch, or a page the user's browser can open."
4
4
  ---
5
5
 
6
6
  # Ultimate Browsing
7
7
 
8
- Web access for everything a plain fetch cannot finish: a page that renders in JS, a click or a form, a screenshot, a login that must persist across pages, or a host that blocks generic fetchers (WAF / 403 / Cloudflare). Start at the cheapest tier that can do the job and climb only when it cannot:
8
+ Web access for the hosts the user's browser cannot open (WAF / 403 / Cloudflare / bot-scored pages) and for platforms with a native reader. Reading and interaction on a page the user's browser can open belong to the `browser` skill's attached engine, not here. Start at the cheapest tier that can reach the blocked host and climb only when it cannot:
9
9
 
10
10
  **Tier 1 — insane-search** (headless extraction + WAF bypass) -> **Tier 1.5 — agent-reach** (platform-native APIs, esp. Chinese platforms) -> **Tier 2 — a real browser** through omowright from js eval: 2a the owned engine (a browser your code launches, CloakBrowser for stealth), 2b the attached engine (the user's own signed-in browser).
11
11
 
@@ -14,29 +14,27 @@ Web access for everything a plain fetch cannot finish: a page that renders in JS
14
14
  ```
15
15
  User request
16
16
  |
17
- +- extract text/data from a URL --------------------- TIER 1 insane-search
17
+ +- a page the user's browser can open (read, click, screenshot, QA, login) NOT this skill (browser skill, attached engine)
18
+ +- simple search query ------------------------------ NOT this skill (use web-search)
19
+ |
18
20
  +- URL blocked / 403 / Cloudflare / WAF ------------- TIER 1 insane-search
19
21
  +- YouTube/Vimeo/TikTok subtitles or metadata ------- TIER 1 insane-search (yt-dlp)
20
- +- read an article / blog / Reddit / HN / arXiv ----- TIER 1 insane-search
22
+ +- archive snapshot of a dead or changed page ------- TIER 1 insane-search (surrogates, provenance-tagged)
21
23
  |
22
24
  +- Chinese platform (xhs/douyin/weibo/bilibili/v2ex/wechat) TIER 1.5 agent-reach
23
25
  +- podcast transcript / stock forum ----------------- TIER 1.5 agent-reach
24
26
  +- Twitter feed / LinkedIn profile / GitHub via CLI - TIER 1.5 agent-reach
25
27
  |
26
- +- Tier 1/1.5 returned empty or partial ------------- TIER 2 2a owned engine -> 2b attached engine
27
- +- click / fill form / scroll / interact ------------ TIER 2 2a owned engine -> 2b attached engine
28
- +- screenshot / render / play video ----------------- TIER 2 2a owned engine -> 2b attached engine
29
- +- login session across pages / the user's account --- TIER 2 2b attached engine (their browser)
30
- +- test web app / QA / dogfood ---------------------- TIER 2 2a owned engine -> 2b attached engine
31
- |
32
- +- simple search query ------------------------------ NOT this skill (use web-search)
28
+ +- Tier 1/1.5 returned empty or partial ------------- TIER 2 2a owned engine (stealth)
29
+ +- a blocked host that also needs a click, a scroll or a screenshot TIER 2 2a owned engine
30
+ +- the user's account on a host the owned engine cannot pass TIER 2 2b attached engine (their browser)
33
31
  ```
34
32
 
35
33
  Read the matching reference before acting: [`references/insane-search/README.md`](references/insane-search/README.md), [`references/agent-reach/README.md`](references/agent-reach/README.md), or [`references/chrome-stealth.md`](references/chrome-stealth.md).
36
34
 
37
35
  ## Tier 1 — insane-search (headless extraction)
38
36
 
39
- **When**: content extraction, blocked-URL bypass, media metadata — no browser UI needed.
37
+ **When**: blocked-URL bypass, media metadata, archive surrogates — no browser UI needed.
40
38
  **Why first**: ~10x faster than a browser, no process spin-up; handles most "fetch this blocked page" requests via curl_cffi TLS impersonation, yt-dlp (1858 sites), official public APIs, mobile URL transforms, **Phase-2.5 surrogate archives** (Wayback / archive.today snapshots, provenance-tagged — see [`references/insane-search/cache-archive.md`](references/insane-search/cache-archive.md)), a key-gated Jina Reader (`JINA_API_KEY`), and a Playwright real-Chrome fallback. The engine lives **inside this skill** at `engine/` and is invoked as a module. Surrogate results are dated COPIES: a result whose `provenance` is `snapshot` must be reported with its `snapshot_timestamp`, never presented as the live page.
41
39
 
42
40
  ```bash
@@ -56,7 +54,7 @@ The full engine harness (rules R1-R7, the Phase 0 official-API index, the no-sit
56
54
 
57
55
  ### Escalate to Tier 1.5 or Tier 2 when
58
56
  - The target is a Chinese / social platform with a native reader -> Tier 1.5.
59
- - insane-search returns empty/partial, or the page needs JS interaction, a screenshot, a persistent login, or media playback -> Tier 2.
57
+ - insane-search returns empty/partial, or the blocked page needs JS interaction, a screenshot, or media playback -> Tier 2.
60
58
 
61
59
  ## Tier 1.5 — agent-reach (platform-native readers)
62
60
 
@@ -82,7 +80,7 @@ Routing table, per-platform auth (set `TWITTER_*` env vars, `gh auth login`, a t
82
80
 
83
81
  ## Tier 2 — a real browser (real interaction)
84
82
 
85
- **When**: real interaction is needed (clicks, forms, screenshots, video, persistent login), or Tier 1/1.5 failed.
83
+ **When**: Tier 1/1.5 failed on a blocked host, or that host needs interaction (clicks, scroll, screenshots, video). A page the user's browser can open is the `browser` skill's job, attached engine first.
86
84
 
87
85
  Both tiers are omowright, staged inside the `browser` skill and loaded from js eval:
88
86
 
@@ -110,9 +108,9 @@ try {
110
108
 
111
109
  The rest of the surface (CUA coordinates, captcha solving, routes, traces, frames, human handoff) is in the `browser` skill's `references/owned-engine/`. A stealth binary is not proof of access: inspect the rendered result and report challenges that remain.
112
110
 
113
- ### Tier 2b — attached engine (logged-in pages)
111
+ ### Tier 2b — attached engine (the user's account on a blocked host)
114
112
 
115
- When the page needs the user's account, drive the browser they are already signed into instead of cloning their profile: `connectBrowserSkill()` → `session.navigate` → `bskSnapshot(session)` / `session.observe()` → `session.click` → `session.stop()`. NEVER launch against or clear cookies/cache/site data from the user's live profile, and never fall back to the owned engine for an authenticated criterion: if no extension is connected, run the `browser` skill's onboarding script and relay its one human step. The full loop is the `browser` skill.
113
+ When the blocked flow needs the user's account, drive the browser they are already signed into instead of cloning their profile: `connectBrowserSkill()` → `session.navigate` → `bskSnapshot(session)` / `session.observe()` → `session.click` → `session.stop()`. NEVER launch against or clear cookies/cache/site data from the user's live profile, and never fall back to the owned engine for an authenticated criterion: if no extension is connected, run the `browser` skill's onboarding script and relay its one human step. The full loop is the `browser` skill.
116
114
 
117
115
  ### Cookie login (cross-platform)
118
116
 
@@ -96,7 +96,7 @@ Write `.omo/boulder.json` before implementation starts. Prefix session ids with
96
96
  }
97
97
  ```
98
98
 
99
- Every phase (plan wave) runs in its own task-owned worktree with its own goal: before the wave's first dispatch, record the wave's goal — its checkboxes and their acceptance criteria — as a ledger entry, then `git worktree add <repo>-wt/<plan>-<wave> <branch off the integration base>` (or verify a `--worktree` path with `git worktree list --porcelain`), store the absolute path as `worktree_path`, run every edit, command, test, and evidence capture inside it; the wave lands on the integration base once its checkboxes are verified (direct merge, or the PR under `--make-pr`/`--ship`), and the next wave branches from that landed base.
99
+ Every phase (plan wave) runs in its own task-owned worktree with its own goal: before the wave's first dispatch, record the wave's goal — its checkboxes and their acceptance criteria — as a ledger entry, then `git worktree add <repo>-wt/<plan>-<wave> <branch off the integration base>` (or verify a `--worktree` path with `git worktree list --porcelain`), store the absolute path as `worktree_path`, run every edit, command, test, and evidence capture inside it; the wave lands on the integration base once its checkboxes are verified (direct merge, or the PR under `--make-pr`/`--ship`), and the next wave branches from that landed base. Use the bundled ultrawork directive’s Task resources and todo rules at wave/worktree creation; read those sections if absent from context.
100
100
 
101
101
  ## Parallel delivery lanes (teams and worktrees)
102
102
 
@@ -227,7 +227,7 @@ Only after verification passes:
227
227
  When all top-level checkboxes in `## TODOs` and `## Final Verification Wave` are complete:
228
228
 
229
229
  1. Run the plan's final verification commands.
230
- 2. For PR/branch work, finish the lifecycle from the last phase's worktree: sync `.omo/` state back to the main repo, create or update the PR, wait for review/verification gates, merge by default unless explicitly opted out, and remove the worktree only after successful merge or explicit handoff.
230
+ 2. For PR/branch work, finish the lifecycle from the last phase's worktree: sync `.omo/` state back to the main repo, create or update the PR, wait for review/verification gates, merge by default unless explicitly opted out, and remove the worktree only after successful merge or explicit handoff. Finish directory teardown per Task resources and record its receipts.
231
231
  3. Remove or mark the Boulder work as completed.
232
232
  4. Print an `ORCHESTRATION COMPLETE` block with the plan path, verification commands, artifacts, and cleanup receipts.
233
233
 
@@ -86,7 +86,7 @@ Saturation research defaults to teammode, not isolated fire-and-forget workers:
86
86
 
87
87
  ## Worker ground rules
88
88
 
89
- Research workers (explore, librarian, browsing) differ by harness, but assume:
89
+ Research workers (explore, web, repo-dive) differ by harness, but assume:
90
90
 
91
91
  - **Read-only.** Most research workers cannot write files. Never ask a worker to write the journal or any session file — every journal write is yours.
92
92
  - **No recursion — workers AND members.** Workers cannot spawn their own subagents, and team members must not re-orchestrate: a member researches its axis and reports; it never stands up its own team, loads this skill, or fans out a research swarm of its own. Depth comes from YOUR expansion waves. Say so in every spawn message — a member that starts its own research protocol burns the run's budget on duplicated orchestration and returns nothing you can cite.
@@ -119,11 +119,13 @@ Before spawning anything, decompose the query. Start from "what must be true if
119
119
  <analysis>
120
120
  Core question: <the actual information need>
121
121
  Axes (3+ orthogonal): <axis — what to search, where, why> ...
122
- Codebase relevant: <yes/no> · External: <yes/no> · Browsing: <yes/no> · Verification likely: <yes/no>
122
+ Codebase relevant: <yes/no> · External: <yes/no> · Collection: <search-only | browser> · Verification likely: <yes/no>
123
123
  Scale: <axis count, source territories, target document length> · Precision demand: <what a wrong claim costs here> → lifecycle: <single team | research team then refinement team>
124
124
  </analysis>
125
125
  ```
126
126
 
127
+ `Collection` is `search-only` only when a result snippet settles every axis (a date, a version, a spec value); anything that needs reading a source is `browser`.
128
+
127
129
  Then create the session directory:
128
130
 
129
131
  ```bash
@@ -169,26 +171,23 @@ Otherwise launch the entire first wave in one turn — every axis at once, as te
169
171
 
170
172
  Scaling floor — more angles always justify more workers:
171
173
 
172
- | Query scope | explore | librarian | browsing | repo-dive | floor |
173
- |---|---|---|---|---|---|
174
- | Single topic, codebase only | 3 | 0 | 0 | 0 | 3 |
175
- | Single topic, web only | 0 | 4 | 1 | 1 | 6 |
176
- | Single topic, both | 2 | 3 | 1 | 1 | 7 |
177
- | Multi-faceted | 4 | 6 | 2 | 2 | 14 |
178
- | Full due diligence | 4 | 6 | 3 | 2 | 15 |
179
-
180
- The browsing column is BINDING, not advisory: when the brief says `Browsing: yes`, the roster names a browsing-worker angle, armed with the `ultimate-browsing` skill, before the first wave launches, and that worker is spawned in the same turn as the rest of the wave. A run that reaches wave 2 with zero browsing workers on a `Browsing: yes` brief has silently downgraded every source to what plain fetch happened to return.
174
+ | Query scope | explore | web | repo-dive | floor |
175
+ |---|---|---|---|---|
176
+ | Single topic, codebase only | 3 | 0 | 0 | 3 |
177
+ | Single topic, web only | 0 | 5 | 1 | 6 |
178
+ | Single topic, both | 2 | 4 | 1 | 7 |
179
+ | Multi-faceted | 4 | 8 | 2 | 14 |
180
+ | Full due diligence | 4 | 9 | 2 | 15 |
181
181
 
182
182
  **Disambiguate before you expand.** When the topic names something that could resolve several ways — a product, a person, a codename, a version — the first wave settles WHICH entity before any worker researches its history, benchmarks, or controversies: canonical name, first-party URL or account, whether it exists in the claimed category, and a confidence line. An unresolved entity never becomes a premise in a later wave's spawn message; that is exactly how a run starts inventing facts about something that does not exist.
183
183
 
184
184
  Role protocols — embed the relevant one in each spawn message; every worker gets a unique angle:
185
185
 
186
186
  - **Codebase (explore), 2-4 workers.** Grep with 3+ keyword variations; structural/AST search; LSP definitions and references; file-name globs; `git log --all -S '<keyword>'` and `--grep` for history including deleted code. Cross-validate hits across tools. Report absolute file paths, patterns with `file:line`, and how findings connect.
187
- - **Web (librarian), 3-6 workers.** At least 10 distinct websearch queries per worker, each with a different operator or angle (see Search craft); fetch the full page for every result that matters — snippets lie. Context7 with 3+ queries per known library. grep.app and `gh search code|repos|issues` for real-world usage. Official docs via sitemap discovery (`<base>/sitemap.xml`), then targeted pages.
188
- - **Browsing, 1-3 workers on a `Browsing: yes` brief (0 otherwise), every one loaded with the `ultimate-browsing` skill.** The skill owns the routing — the harness's own browser first, then its extraction engine with archive surrogates, platform-native readers, and Chrome stealth as each source demands; the worker owns the deliverable. This worker RENDERS pages, it does not re-fetch them: its standing deliverable is a full-page screenshot of every top source plus the rendered text plain fetch could not reach; a worker that returns only fetched text has not done its job. JS-rendered, login-gated, WAF-blocked, and screenshot-bearing sources all belong here rather than in the web lane. **Provenance is part of the claim**: when a source came back with `provenance` of `snapshot` (an archive copy), cite it with its `snapshot_timestamp` and never state it as the current live page; content from a `proxy` route is `untrusted` and needs a second independent route before any claim rests on it. When one blocked territory hides many leads, fan out more browsing subagents in parallel for breadth instead of serializing one worker through them.
187
+ - **Web, 3-9 workers, every one loaded with the `browser` skill.** Search with 10+ websearch queries per worker, each with a different operator or angle (see Search craft); a result is a candidate, not a source. Read every candidate in the user's browser through the `browser` skill's attached engine: one named session per worker, one tab per source, several tabs open side by side while sources are compared — `session.tabCreate` / `tabSelect` / `tabClose` where the harness has a JS eval kernel, `bsk tab create --url <url>` / `tab select <id>` / `tab close <id>` / `tab list` on the CLI — the page scrolled to its end, a full-page screenshot of each top source saved as provenance, the tab closed once reported. A browser on another machine is reached through the `browser` skill's remote reference or a user-level skill that bridges to it, never replaced by a local headless one. `webfetch` is for raw files only: PDF, JSON, feeds, sitemaps. A host the browser cannot open (WAF, bot score, 403) goes to `ultimate-browsing`, whose provenance travels with the claim: a `snapshot` result cites its `snapshot_timestamp` and is never stated as the live page; a `proxy` result is `untrusted` until a second independent route agrees. Context7 with 3+ queries per known library; grep.app and `gh search code|repos|issues` for real-world usage; official docs via sitemap discovery (`<base>/sitemap.xml`), then targeted pages. A worker whose sources are all fetched text has searched, not read.
189
188
  - **Repo deep-dive (librarian), 0-2 workers.** Shallow-clone the most relevant repos to `${TMPDIR:-/tmp}`, pin the HEAD SHA, read core modules, follow call chains, return SHA-pinned permalinks.
190
189
 
191
- Example spawn (codebase axis; librarian, browsing, and repo-dive follow the same contract with their own protocol):
190
+ Example spawn (codebase axis; web and repo-dive follow the same contract with their own protocol):
192
191
 
193
192
  ```
194
193
  task(subagent_type="explore", run_in_background=true, prompt="TASK: act as a codebase researcher. AXIS: <specific angle>.
@@ -207,9 +206,9 @@ This loop is what makes the mode research rather than search. Collect returns as
207
206
  3. Spawn an expansion worker immediately for each new unchecked lead:
208
207
 
209
208
  ```
210
- task(subagent_type="librarian", run_in_background=true, prompt="TASK: expansion wave <N> — investigate: <lead>.
209
+ task(category="deep-low", load_skills=["browser"], run_in_background=true, prompt="TASK: expansion wave <N> — investigate: <lead>.
211
210
  PARENT: <which return surfaced it>. This is an explicit exhaustive-research assignment; budgets do not apply.
212
- <role protocol for the lead's territory — librarian protocol for external leads, explore protocol for codebase leads>
211
+ <role protocol for the lead's territory — web protocol for external leads, explore protocol for codebase leads>
213
212
  End your reply with the ## EXPAND tail.")
214
213
  ```
215
214
 
@@ -331,7 +330,7 @@ Asset workers (background, parallel, each fed `design-spec.md`) — visuals are
331
330
  - **Charts for every quantitative finding, computed from real data.** Pull the numbers into an actual table first (CSV/JSON under `$SESSION_DIR`), then plot from that table, never from prose. Follow the data-scientist tool doctrine — numpy always, Polars for filtering/sorting/transforms, DuckDB for joins/aggregations/window functions, never pandas — and load the `data-scientist` skill when this session has it: `uv run --with numpy --with polars --with duckdb --with pyarrow --with matplotlib python`. Keep `pyarrow` in that set — the DuckDB-to-Polars handoff (`.pl()`) fails without it, and `.df()` fails without pandas, so hand data across through `.pl()`, never `.df()`. Save to `$SESSION_DIR/assets/`.
332
331
  - **Mermaid graphs** for process, architecture, argument, timeline, and evidence-flow structure, themed to the spec's fonts and palette. Render each to SVG and confirm the file exists before the document references it.
333
332
  - **Generated visuals through the imagegen skill whenever the session has it:** a cover plus a concept illustration per major theme, prompted from the spec's style, palette, and mood — document-styled illustration, never generic stock art dropped into a designed page.
334
- - **Full-page screenshots** of the top 5-10 sources (browsing worker) as provenance you can show.
333
+ - **Full-page screenshots** of the top 5-10 sources, saved by the web workers while reading, as provenance you can show.
335
334
 
336
335
  **Verify the asset manifest before rendering.** List every asset the document references, assert each file exists and is non-empty on disk, and re-render whatever is missing. A document that renders with three broken diagrams is a document you will publish twice.
337
336
 
@@ -390,7 +389,7 @@ High-yield combinations: official docs (`site:<docs domain>`), GitHub implementa
390
389
  | Obeying a surrounding "stop exploring" rule mid-research | Authority section — those rules do not bind this mode |
391
390
  | Asking a worker to write journal or session files | Workers are read-only; you journal every return |
392
391
  | Two workers given the same angle | One unique angle per worker, always |
393
- | A `Browsing: yes` run whose roster carries no browsing worker, or a browsing worker spawned without `ultimate-browsing` | The browsing column is binding — name the angle in the brief and spawn it, armed with the skill, in the first wave before any lead is chased |
392
+ | A web worker that returned only fetched text, or a `Collection: browser` run whose workers never opened a tab | Sources are read in the user's browser through the `browser` skill; `webfetch` is for raw files; every web worker carries the skill from the first wave |
394
393
  | Contested claim settled by judgment | Phase 3 — run code, capture output, verdict |
395
394
  | Deliverable claims without citations | Every claim cites a source or a verification artifact |
396
395
  | Guessing the deliverable format | Derive it from the request and destination; ask the empty-info interview only for what is still missing, and record `answered_by` for every field |
@@ -1,5 +1,5 @@
1
- import { describe, expect, test } from "bun:test"
2
- import { mkdtempSync, readdirSync, readFileSync, writeFileSync } from "node:fs"
1
+ import { describe, expect, onTestFinished, test } from "bun:test"
2
+ import { mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"
3
3
  import { tmpdir } from "node:os"
4
4
  import { join } from "node:path"
5
5
  import { pathToFileURL } from "node:url"
@@ -8,7 +8,9 @@ import { CliError, exitCodeFor, parseArgs, readJsonFile, writeJsonAtomic } from
8
8
  import { isCliEntry } from "./entry-guard.mjs"
9
9
 
10
10
  function tempDir() {
11
- return mkdtempSync(join(tmpdir(), "report-tools-"))
11
+ const dir = mkdtempSync(join(tmpdir(), "report-tools-"))
12
+ onTestFinished(() => rmSync(dir, { recursive: true, force: true }))
13
+ return dir
12
14
  }
13
15
 
14
16
  describe("parseArgs", () => {
@@ -1,5 +1,5 @@
1
- import { describe, expect, test } from "bun:test"
2
- import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, writeFileSync } from "node:fs"
1
+ import { describe, expect, onTestFinished, test } from "bun:test"
2
+ import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"
3
3
  import { tmpdir } from "node:os"
4
4
  import { join } from "node:path"
5
5
 
@@ -22,8 +22,14 @@ import {
22
22
  const STAMP = "20260101-120000"
23
23
  const START_LOCAL = new Date(2026, 0, 1, 12, 0, 0)
24
24
 
25
+ function tempRoot(): string {
26
+ const root = mkdtempSync(join(tmpdir(), "ulw-outcome-"))
27
+ onTestFinished(() => rmSync(root, { recursive: true, force: true }))
28
+ return root
29
+ }
30
+
25
31
  function sessionDir(): string {
26
- const dir = join(mkdtempSync(join(tmpdir(), "ulw-outcome-")), STAMP)
32
+ const dir = join(tempRoot(), STAMP)
27
33
  mkdirSync(dir)
28
34
  return dir
29
35
  }
@@ -57,7 +63,7 @@ describe("initManifest", () => {
57
63
 
58
64
  test("#given a session dir without a YYYYMMDD-HHMMSS basename #when initialised #then it throws a typed error", () => {
59
65
  // given
60
- const dir = mkdtempSync(join(tmpdir(), "ulw-outcome-"))
66
+ const dir = tempRoot()
61
67
  // when / then
62
68
  expect(() => initManifest({ sessionDir: dir, promised: ["pdf"], lane: null })).toThrow(OutcomeError)
63
69
  })
@@ -1,5 +1,5 @@
1
- import { describe, expect, test } from "bun:test"
2
- import { mkdtempSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"
1
+ import { describe, expect, onTestFinished, test } from "bun:test"
2
+ import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"
3
3
  import { tmpdir } from "node:os"
4
4
  import { delimiter, join } from "node:path"
5
5
 
@@ -10,6 +10,7 @@ const FIXTURES = join(import.meta.dir, "tests", "fixtures")
10
10
 
11
11
  function sessionDir() {
12
12
  const root = mkdtempSync(join(tmpdir(), "report-tools-cli-"))
13
+ onTestFinished(() => rmSync(root, { recursive: true, force: true }))
13
14
  const dir = join(root, "20260101-120000")
14
15
  mkdirSync(dir)
15
16
  return dir
@@ -1,5 +1,5 @@
1
- import { describe, expect, test } from "bun:test"
2
- import { mkdtempSync, writeFileSync } from "node:fs"
1
+ import { describe, expect, onTestFinished, test } from "bun:test"
2
+ import { mkdtempSync, rmSync, writeFileSync } from "node:fs"
3
3
  import { tmpdir } from "node:os"
4
4
  import { join } from "node:path"
5
5
 
@@ -7,7 +7,9 @@ import { run, runImageDiff, runTuiCheck } from "./cli"
7
7
  import { encodeRgbaPng, solidRgba } from "./png-synth"
8
8
 
9
9
  function tempDir(): string {
10
- return mkdtempSync(join(tmpdir(), "visual-qa-"))
10
+ const dir = mkdtempSync(join(tmpdir(), "visual-qa-"))
11
+ onTestFinished(() => rmSync(dir, { recursive: true, force: true }))
12
+ return dir
11
13
  }
12
14
 
13
15
  describe("runImageDiff", () => {
@@ -12,6 +12,7 @@ export interface ExecutorContext {
12
12
  browserProvider?: BrowserAutomationProvider;
13
13
  agentOverrides?: AgentOverrides;
14
14
  sisyphusAgentConfig?: SisyphusAgentConfig;
15
+ claudeCodeAgentsEnabled?: boolean;
15
16
  modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
16
17
  onSyncSessionCreated?: (event: {
17
18
  sessionID: string;
@@ -5,6 +5,7 @@ export declare function createSyncSession(client: OpencodeClient, input: {
5
5
  agentToUse: string;
6
6
  description: string;
7
7
  defaultDirectory: string;
8
+ category?: string;
8
9
  categoryModel?: DelegatedModelConfig;
9
10
  }): Promise<{
10
11
  ok: true;
@@ -124,6 +124,8 @@ export interface DelegateTaskToolOptions {
124
124
  /** Reload model-bearing config at task invocation time so edits are honored without rebuilding tools. */
125
125
  loadCurrentModelConfig?: () => Pick<OhMyOpenCodeConfig, "agents" | "categories">;
126
126
  sisyphusAgentConfig?: SisyphusAgentConfig;
127
+ /** Mirrors `claude_code.agents`; when false, `.claude/agents` definitions are not read during subagent matching. */
128
+ claudeCodeAgentsEnabled?: boolean;
127
129
  modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
128
130
  onSyncSessionCreated?: (event: SyncSessionCreatedEvent) => Promise<void>;
129
131
  syncPollTimeoutMs?: number;
@@ -1,8 +1,21 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
2
  import type { SessionMessage, SessionMetadata, TodoItem } from "./types";
3
- export declare function getSdkMainSessions(client: PluginInput["client"], directory?: string): Promise<SessionMetadata[]>;
4
- export declare function getSdkAllSessions(client: PluginInput["client"]): Promise<string[]>;
3
+ type ExperimentalSessionList = (input: {
4
+ roots?: boolean;
5
+ cursor?: number;
6
+ limit: number;
7
+ }) => Promise<unknown>;
8
+ export type GlobalSessionClient = {
9
+ experimental: {
10
+ session: {
11
+ list: ExperimentalSessionList;
12
+ };
13
+ };
14
+ };
15
+ export declare function getSdkMainSessions(client: PluginInput["client"], directory?: string, globalClient?: GlobalSessionClient, limit?: number): Promise<SessionMetadata[]>;
16
+ export declare function getSdkAllSessions(client: PluginInput["client"], globalClient?: GlobalSessionClient, limit?: number): Promise<string[]>;
5
17
  export declare function sdkSessionExists(client: PluginInput["client"], sessionID: string): Promise<boolean>;
6
18
  export declare function getSdkSessionMessages(client: PluginInput["client"], sessionID: string): Promise<SessionMessage[]>;
7
19
  export declare function getSdkSessionTodos(client: PluginInput["client"], sessionID: string): Promise<TodoItem[]>;
8
20
  export declare function shouldFallbackFromSdkError(error: unknown): boolean;
21
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare function describeSessionError(error: unknown): string;
2
+ export declare function toSessionError(error: unknown): Error;
3
+ export type SkippedSession = {
4
+ readonly id: string;
5
+ readonly reason: string;
6
+ };
7
+ export declare function formatSkippedSessions(skipped: readonly SkippedSession[]): string;
@@ -1,12 +1,14 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
+ import { type GlobalSessionClient } from "./sdk-storage";
2
3
  import type { SessionInfo, SessionMessage, SessionMetadata, TodoItem } from "./types";
3
4
  export interface GetMainSessionsOptions {
4
5
  directory?: string;
6
+ limit?: number;
5
7
  }
6
- export declare function setStorageClient(client: PluginInput["client"]): void;
8
+ export declare function setStorageClient(client: PluginInput["client"], globalClient?: GlobalSessionClient): void;
7
9
  export declare function resetStorageClient(): void;
8
10
  export declare function getMainSessions(options: GetMainSessionsOptions): Promise<SessionMetadata[]>;
9
- export declare function getAllSessions(): Promise<string[]>;
11
+ export declare function getAllSessions(limit?: number): Promise<string[]>;
10
12
  export { getMessageDir } from "../../shared/opencode-message-dir";
11
13
  export declare function sessionExists(sessionID: string): Promise<boolean>;
12
14
  export declare function readSessionMessages(sessionID: string): Promise<SessionMessage[]>;