@reinamaccredy/oh-my-opencode 1.0.1 → 3.0.0-beta.3

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 CHANGED
@@ -5,8 +5,8 @@
5
5
 
6
6
  > [!TIP]
7
7
  >
8
- > [![The Orchestrator is now available in beta.](./.github/assets/orchestrator-sisyphus.png?v=3)](https://github.com/code-yeongyu/oh-my-opencode/releases/tag/v3.0.0-beta.1)
9
- > > **オーケストレーターがベータ版で利用可能になりました。`oh-my-opencode@beta`を使用してインストールしてください。**
8
+ > [![The Orchestrator is now available in beta.](./.github/assets/orchestrator-sisyphus.png?v=3)](https://github.com/ReinaMacCredy/oh-my-opencode/releases)
9
+ > > **オーケストレーターがベータ版で利用可能になりました。`@reinamaccredy/oh-my-opencode@3.0.0-beta.1`を使用してインストールしてください。**
10
10
  >
11
11
  > 一緒に歩みましょう!
12
12
  >
@@ -19,9 +19,9 @@
19
19
 
20
20
  <div align="center">
21
21
 
22
- [![Oh My OpenCode](./.github/assets/hero.jpg)](https://github.com/code-yeongyu/oh-my-opencode#oh-my-opencode)
22
+ [![Oh My OpenCode](./.github/assets/hero.jpg)](https://github.com/ReinaMacCredy/oh-my-opencode#oh-my-opencode)
23
23
 
24
- [![Preview](./.github/assets/omo.png)](https://github.com/code-yeongyu/oh-my-opencode#oh-my-opencode)
24
+ [![Preview](./.github/assets/omo.png)](https://github.com/ReinaMacCredy/oh-my-opencode#oh-my-opencode)
25
25
 
26
26
 
27
27
  </div>
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
 
6
6
  > [!TIP]
7
7
  >
8
- > [![The Orchestrator is now available in beta.](./.github/assets/orchestrator-sisyphus.png?v=3)](https://github.com/code-yeongyu/oh-my-opencode/releases/tag/v3.0.0-beta.1)
9
- > > **The Orchestrator is now available in beta. Use `oh-my-opencode@beta` to install it.**
8
+ > [![The Orchestrator is now available in beta.](./.github/assets/orchestrator-sisyphus.png?v=3)](https://github.com/ReinaMacCredy/oh-my-opencode/releases)
9
+ > > **The Orchestrator is now available in beta. Use `@reinamaccredy/oh-my-opencode@3.0.0-beta.1` to install it.**
10
10
  >
11
11
  > Be with us!
12
12
  >
@@ -19,9 +19,9 @@
19
19
 
20
20
  <div align="center">
21
21
 
22
- [![Oh My OpenCode](./.github/assets/hero.jpg)](https://github.com/code-yeongyu/oh-my-opencode#oh-my-opencode)
22
+ [![Oh My OpenCode](./.github/assets/hero.jpg)](https://github.com/ReinaMacCredy/oh-my-opencode#oh-my-opencode)
23
23
 
24
- [![Preview](./.github/assets/omo.png)](https://github.com/code-yeongyu/oh-my-opencode#oh-my-opencode)
24
+ [![Preview](./.github/assets/omo.png)](https://github.com/ReinaMacCredy/oh-my-opencode#oh-my-opencode)
25
25
 
26
26
 
27
27
  </div>
@@ -237,9 +237,9 @@ If you don't want all this, as mentioned, you can just pick and choose specific
237
237
  Run the interactive installer:
238
238
 
239
239
  ```bash
240
- bunx oh-my-opencode install
240
+ bunx @reinamaccredy/oh-my-opencode install
241
241
  # or use npx if bunx doesn't work
242
- npx oh-my-opencode install
242
+ npx @reinamaccredy/oh-my-opencode install
243
243
  ```
244
244
 
245
245
  > **Note for Ubuntu/Debian users**: If you installed Bun via Snap (`/snap/bin/bun`), `bunx` will fail with "script not found" due to Snap's sandboxing. Either use `npx` instead, or reinstall Bun via the official installer: `curl -fsSL https://bun.sh/install | bash`
@@ -250,7 +250,7 @@ Follow the prompts to configure your Claude, ChatGPT, and Gemini subscriptions.
250
250
 
251
251
  Paste this into a fresh opencode session:
252
252
  ```
253
- Install and configure by following the instructions here https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/README.md
253
+ Install and configure by following the instructions here https://raw.githubusercontent.com/ReinaMacCredy/oh-my-opencode/refs/heads/main/README.md
254
254
  ```
255
255
 
256
256
  ### For LLM Agents
@@ -299,13 +299,13 @@ Spawn a subagent to handle installation and report back - to save context.
299
299
  Based on user's answers, run the CLI installer with appropriate flags:
300
300
 
301
301
  ```bash
302
- bunx oh-my-opencode install --no-tui --claude=<yes|no|max20> --chatgpt=<yes|no> --gemini=<yes|no>
302
+ bunx @reinamaccredy/oh-my-opencode install --no-tui --claude=<yes|no|max20> --chatgpt=<yes|no> --gemini=<yes|no>
303
303
  ```
304
304
 
305
305
  **Examples:**
306
- - User has all subscriptions with max20: `bunx oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes`
307
- - User has only Claude (no max20): `bunx oh-my-opencode install --no-tui --claude=yes --chatgpt=no --gemini=no`
308
- - User has no subscriptions: `bunx oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no`
306
+ - User has all subscriptions with max20: `bunx @reinamaccredy/oh-my-opencode install --no-tui --claude=max20 --chatgpt=yes --gemini=yes`
307
+ - User has only Claude (no max20): `bunx @reinamaccredy/oh-my-opencode install --no-tui --claude=yes --chatgpt=no --gemini=no`
308
+ - User has no subscriptions: `bunx @reinamaccredy/oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no`
309
309
 
310
310
  The CLI will:
311
311
  - Register the plugin in `opencode.json`
package/README.zh-cn.md CHANGED
@@ -5,8 +5,8 @@
5
5
 
6
6
  > [!TIP]
7
7
  >
8
- > [![The Orchestrator is now available in beta.](./.github/assets/orchestrator-sisyphus.png?v=3)](https://github.com/code-yeongyu/oh-my-opencode/releases/tag/v3.0.0-beta.1)
9
- > > **编排器现已推出测试版。使用`oh-my-opencode@beta`来安装。**
8
+ > [![The Orchestrator is now available in beta.](./.github/assets/orchestrator-sisyphus.png?v=3)](https://github.com/ReinaMacCredy/oh-my-opencode/releases)
9
+ > > **编排器现已推出测试版。使用`@reinamaccredy/oh-my-opencode@3.0.0-beta.1`来安装。**
10
10
  >
11
11
  > 与我们同行!
12
12
  >
@@ -19,9 +19,9 @@
19
19
 
20
20
  <div align="center">
21
21
 
22
- [![Oh My OpenCode](./.github/assets/hero.jpg)](https://github.com/code-yeongyu/oh-my-opencode#oh-my-opencode)
22
+ [![Oh My OpenCode](./.github/assets/hero.jpg)](https://github.com/ReinaMacCredy/oh-my-opencode#oh-my-opencode)
23
23
 
24
- [![Preview](./.github/assets/omo.png)](https://github.com/code-yeongyu/oh-my-opencode#oh-my-opencode)
24
+ [![Preview](./.github/assets/omo.png)](https://github.com/ReinaMacCredy/oh-my-opencode#oh-my-opencode)
25
25
 
26
26
  </div>
27
27
 
@@ -14,5 +14,6 @@ import type { AgentPromptMetadata } from "./types";
14
14
  * - Prepare directives for the planner agent
15
15
  */
16
16
  export declare const METIS_SYSTEM_PROMPT = "# Metis - Pre-Planning Consultant\n\n## CONSTRAINTS\n\n- **READ-ONLY**: You analyze, question, advise. You do NOT implement or modify files.\n- **OUTPUT**: Your analysis feeds into Prometheus (planner). Be actionable.\n\n---\n\n## PHASE 0: INTENT CLASSIFICATION (MANDATORY FIRST STEP)\n\nBefore ANY analysis, classify the work intent. This determines your entire strategy.\n\n### Step 1: Identify Intent Type\n\n| Intent | Signals | Your Primary Focus |\n|--------|---------|-------------------|\n| **Refactoring** | \"refactor\", \"restructure\", \"clean up\", changes to existing code | SAFETY: regression prevention, behavior preservation |\n| **Build from Scratch** | \"create new\", \"add feature\", greenfield, new module | DISCOVERY: explore patterns first, informed questions |\n| **Mid-sized Task** | Scoped feature, specific deliverable, bounded work | GUARDRAILS: exact deliverables, explicit exclusions |\n| **Collaborative** | \"help me plan\", \"let's figure out\", wants dialogue | INTERACTIVE: incremental clarity through dialogue |\n| **Architecture** | \"how should we structure\", system design, infrastructure | STRATEGIC: long-term impact, Oracle recommendation |\n| **Research** | Investigation needed, goal exists but path unclear | INVESTIGATION: exit criteria, parallel probes |\n\n### Step 2: Validate Classification\n\nConfirm:\n- [ ] Intent type is clear from request\n- [ ] If ambiguous, ASK before proceeding\n\n---\n\n## PHASE 1: INTENT-SPECIFIC ANALYSIS\n\n### IF REFACTORING\n\n**Your Mission**: Ensure zero regressions, behavior preservation.\n\n**Tool Guidance** (recommend to Prometheus):\n- `lsp_find_references`: Map all usages before changes\n- `lsp_rename` / `lsp_prepare_rename`: Safe symbol renames\n- `ast_grep_search`: Find structural patterns to preserve\n- `ast_grep_replace(dryRun=true)`: Preview transformations\n\n**Questions to Ask**:\n1. What specific behavior must be preserved? (test commands to verify)\n2. What's the rollback strategy if something breaks?\n3. Should this change propagate to related code, or stay isolated?\n\n**Directives for Prometheus**:\n- MUST: Define pre-refactor verification (exact test commands + expected outputs)\n- MUST: Verify after EACH change, not just at the end\n- MUST NOT: Change behavior while restructuring\n- MUST NOT: Refactor adjacent code not in scope\n\n---\n\n### IF BUILD FROM SCRATCH\n\n**Your Mission**: Discover patterns before asking, then surface hidden requirements.\n\n**Pre-Analysis Actions** (YOU should do before questioning):\n```\n// Launch these explore agents FIRST\ncall_omo_agent(subagent_type=\"explore\", prompt=\"Find similar implementations...\")\ncall_omo_agent(subagent_type=\"explore\", prompt=\"Find project patterns for this type...\")\ncall_omo_agent(subagent_type=\"librarian\", prompt=\"Find best practices for [technology]...\")\n```\n\n**Questions to Ask** (AFTER exploration):\n1. Found pattern X in codebase. Should new code follow this, or deviate? Why?\n2. What should explicitly NOT be built? (scope boundaries)\n3. What's the minimum viable version vs full vision?\n\n**Directives for Prometheus**:\n- MUST: Follow patterns from `[discovered file:lines]`\n- MUST: Define \"Must NOT Have\" section (AI over-engineering prevention)\n- MUST NOT: Invent new patterns when existing ones work\n- MUST NOT: Add features not explicitly requested\n\n---\n\n### IF MID-SIZED TASK\n\n**Your Mission**: Define exact boundaries. AI slop prevention is critical.\n\n**Questions to Ask**:\n1. What are the EXACT outputs? (files, endpoints, UI elements)\n2. What must NOT be included? (explicit exclusions)\n3. What are the hard boundaries? (no touching X, no changing Y)\n4. Acceptance criteria: how do we know it's done?\n\n**AI-Slop Patterns to Flag**:\n| Pattern | Example | Ask |\n|---------|---------|-----|\n| Scope inflation | \"Also tests for adjacent modules\" | \"Should I add tests beyond [TARGET]?\" |\n| Premature abstraction | \"Extracted to utility\" | \"Do you want abstraction, or inline?\" |\n| Over-validation | \"15 error checks for 3 inputs\" | \"Error handling: minimal or comprehensive?\" |\n| Documentation bloat | \"Added JSDoc everywhere\" | \"Documentation: none, minimal, or full?\" |\n\n**Directives for Prometheus**:\n- MUST: \"Must Have\" section with exact deliverables\n- MUST: \"Must NOT Have\" section with explicit exclusions\n- MUST: Per-task guardrails (what each task should NOT do)\n- MUST NOT: Exceed defined scope\n\n---\n\n### IF COLLABORATIVE\n\n**Your Mission**: Build understanding through dialogue. No rush.\n\n**Behavior**:\n1. Start with open-ended exploration questions\n2. Use explore/librarian to gather context as user provides direction\n3. Incrementally refine understanding\n4. Don't finalize until user confirms direction\n\n**Questions to Ask**:\n1. What problem are you trying to solve? (not what solution you want)\n2. What constraints exist? (time, tech stack, team skills)\n3. What trade-offs are acceptable? (speed vs quality vs cost)\n\n**Directives for Prometheus**:\n- MUST: Record all user decisions in \"Key Decisions\" section\n- MUST: Flag assumptions explicitly\n- MUST NOT: Proceed without user confirmation on major decisions\n\n---\n\n### IF ARCHITECTURE\n\n**Your Mission**: Strategic analysis. Long-term impact assessment.\n\n**Oracle Consultation** (RECOMMEND to Prometheus):\n```\nTask(\n subagent_type=\"oracle\",\n prompt=\"Architecture consultation:\n Request: [user's request]\n Current state: [gathered context]\n \n Analyze: options, trade-offs, long-term implications, risks\"\n)\n```\n\n**Questions to Ask**:\n1. What's the expected lifespan of this design?\n2. What scale/load should it handle?\n3. What are the non-negotiable constraints?\n4. What existing systems must this integrate with?\n\n**AI-Slop Guardrails for Architecture**:\n- MUST NOT: Over-engineer for hypothetical future requirements\n- MUST NOT: Add unnecessary abstraction layers\n- MUST NOT: Ignore existing patterns for \"better\" design\n- MUST: Document decisions and rationale\n\n**Directives for Prometheus**:\n- MUST: Consult Oracle before finalizing plan\n- MUST: Document architectural decisions with rationale\n- MUST: Define \"minimum viable architecture\"\n- MUST NOT: Introduce complexity without justification\n\n---\n\n### IF RESEARCH\n\n**Your Mission**: Define investigation boundaries and exit criteria.\n\n**Questions to Ask**:\n1. What's the goal of this research? (what decision will it inform?)\n2. How do we know research is complete? (exit criteria)\n3. What's the time box? (when to stop and synthesize)\n4. What outputs are expected? (report, recommendations, prototype?)\n\n**Investigation Structure**:\n```\n// Parallel probes\ncall_omo_agent(subagent_type=\"explore\", prompt=\"Find how X is currently handled...\")\ncall_omo_agent(subagent_type=\"librarian\", prompt=\"Find official docs for Y...\")\ncall_omo_agent(subagent_type=\"librarian\", prompt=\"Find OSS implementations of Z...\")\n```\n\n**Directives for Prometheus**:\n- MUST: Define clear exit criteria\n- MUST: Specify parallel investigation tracks\n- MUST: Define synthesis format (how to present findings)\n- MUST NOT: Research indefinitely without convergence\n\n---\n\n## OUTPUT FORMAT\n\n```markdown\n## Intent Classification\n**Type**: [Refactoring | Build | Mid-sized | Collaborative | Architecture | Research]\n**Confidence**: [High | Medium | Low]\n**Rationale**: [Why this classification]\n\n## Pre-Analysis Findings\n[Results from explore/librarian agents if launched]\n[Relevant codebase patterns discovered]\n\n## Questions for User\n1. [Most critical question first]\n2. [Second priority]\n3. [Third priority]\n\n## Identified Risks\n- [Risk 1]: [Mitigation]\n- [Risk 2]: [Mitigation]\n\n## Directives for Prometheus\n- MUST: [Required action]\n- MUST: [Required action]\n- MUST NOT: [Forbidden action]\n- MUST NOT: [Forbidden action]\n- PATTERN: Follow `[file:lines]`\n- TOOL: Use `[specific tool]` for [purpose]\n\n## Recommended Approach\n[1-2 sentence summary of how to proceed]\n```\n\n---\n\n## TOOL REFERENCE\n\n| Tool | When to Use | Intent |\n|------|-------------|--------|\n| `lsp_find_references` | Map impact before changes | Refactoring |\n| `lsp_rename` | Safe symbol renames | Refactoring |\n| `ast_grep_search` | Find structural patterns | Refactoring, Build |\n| `explore` agent | Codebase pattern discovery | Build, Research |\n| `librarian` agent | External docs, best practices | Build, Architecture, Research |\n| `oracle` agent | Read-only consultation. High-IQ debugging, architecture | Architecture |\n\n---\n\n## CRITICAL RULES\n\n**NEVER**:\n- Skip intent classification\n- Ask generic questions (\"What's the scope?\")\n- Proceed without addressing ambiguity\n- Make assumptions about user's codebase\n\n**ALWAYS**:\n- Classify intent FIRST\n- Be specific (\"Should this change UserService only, or also AuthService?\")\n- Explore before asking (for Build/Research intents)\n- Provide actionable directives for Prometheus\n";
17
+ export declare function createMetisAgent(model?: string): AgentConfig;
17
18
  export declare const metisAgent: AgentConfig;
18
19
  export declare const metisPromptMetadata: AgentPromptMetadata;
@@ -9,6 +9,7 @@ import type { CategoryConfig } from "../config/schema";
9
9
  * You are the conductor of a symphony of specialized agents.
10
10
  */
11
11
  export interface OrchestratorContext {
12
+ model?: string;
12
13
  availableAgents?: AvailableAgent[];
13
14
  availableSkills?: AvailableSkill[];
14
15
  userCategories?: Record<string, CategoryConfig>;
package/dist/cli/index.js CHANGED
@@ -2253,7 +2253,7 @@ var require_picocolors = __commonJS((exports, module) => {
2253
2253
  var require_package = __commonJS((exports, module) => {
2254
2254
  module.exports = {
2255
2255
  name: "@reinamaccredy/oh-my-opencode",
2256
- version: "1.0.1",
2256
+ version: "3.0.0-beta.3",
2257
2257
  description: "Fork of oh-my-opencode with Maestro workflow integration - Multi-Model Orchestration, Parallel Background Agents, Design Phases, and TDD Methodology",
2258
2258
  main: "dist/index.js",
2259
2259
  types: "dist/index.d.ts",
@@ -35,6 +35,7 @@ export declare class BackgroundManager {
35
35
  parentSessionID: string;
36
36
  description: string;
37
37
  agent?: string;
38
+ parentAgent?: string;
38
39
  }): BackgroundTask;
39
40
  resume(input: ResumeInput): Promise<BackgroundTask>;
40
41
  private checkSessionTodos;
@@ -1,5 +1,8 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
2
  import type { AutoUpdateCheckerOptions } from "./types";
3
+ export declare function isPrereleaseVersion(version: string): boolean;
4
+ export declare function isDistTag(version: string): boolean;
5
+ export declare function isPrereleaseOrDistTag(pinnedVersion: string | null): boolean;
3
6
  export declare function createAutoUpdateCheckerHook(ctx: PluginInput, options?: AutoUpdateCheckerOptions): {
4
7
  event: ({ event }: {
5
8
  event: {
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js CHANGED
@@ -19567,6 +19567,18 @@ async function runBunInstallWithDetails() {
19567
19567
 
19568
19568
  // src/hooks/auto-update-checker/index.ts
19569
19569
  var SISYPHUS_SPINNER = ["\xB7", "\u2022", "\u25CF", "\u25CB", "\u25CC", "\u25E6", " "];
19570
+ function isPrereleaseVersion(version) {
19571
+ return version.includes("-");
19572
+ }
19573
+ function isDistTag(version) {
19574
+ const startsWithDigit = /^\d/.test(version);
19575
+ return !startsWithDigit;
19576
+ }
19577
+ function isPrereleaseOrDistTag(pinnedVersion) {
19578
+ if (!pinnedVersion)
19579
+ return false;
19580
+ return isPrereleaseVersion(pinnedVersion) || isDistTag(pinnedVersion);
19581
+ }
19570
19582
  function createAutoUpdateCheckerHook(ctx, options = {}) {
19571
19583
  const { showStartupToast = true, isSisyphusEnabled = false, autoUpdate = true } = options;
19572
19584
  const getToastMessage = (isUpdate, latestVersion) => {
@@ -19637,7 +19649,15 @@ async function runBackgroundUpdateCheck(ctx, autoUpdate, getToastMessage) {
19637
19649
  log("[auto-update-checker] Auto-update disabled, notification only");
19638
19650
  return;
19639
19651
  }
19652
+ if (isPrereleaseVersion(currentVersion)) {
19653
+ log(`[auto-update-checker] Skipping auto-update for prerelease version: ${currentVersion}`);
19654
+ return;
19655
+ }
19640
19656
  if (pluginInfo.isPinned) {
19657
+ if (isPrereleaseOrDistTag(pluginInfo.pinnedVersion)) {
19658
+ log(`[auto-update-checker] Skipping auto-update for prerelease/dist-tag: ${pluginInfo.pinnedVersion}`);
19659
+ return;
19660
+ }
19641
19661
  const updated = updatePinnedVersion(pluginInfo.configPath, pluginInfo.entry, latestVersion);
19642
19662
  if (!updated) {
19643
19663
  await showUpdateAvailableToast(ctx, latestVersion, getToastMessage);
@@ -19755,6 +19775,8 @@ var TARGET_TOOLS = new Set([
19755
19775
  "safe_glob",
19756
19776
  "webfetch",
19757
19777
  "context7_resolve-library-id",
19778
+ "context7_query-docs",
19779
+ "websearch_web_search_exa",
19758
19780
  "context7_get-library-docs",
19759
19781
  "grep_app_searchgithub"
19760
19782
  ]);
@@ -45777,7 +45799,8 @@ class BackgroundManager {
45777
45799
  progress: {
45778
45800
  toolCalls: 0,
45779
45801
  lastUpdate: new Date
45780
- }
45802
+ },
45803
+ parentAgent: input.parentAgent
45781
45804
  };
45782
45805
  this.tasks.set(task.id, task);
45783
45806
  subagentSessions.add(input.sessionID);
@@ -45971,14 +45994,18 @@ class BackgroundManager {
45971
45994
  this.concurrencyManager.release(task.concurrencyKey);
45972
45995
  }
45973
45996
  try {
45974
- const modelField = task.parentModel?.providerID && task.parentModel?.modelID ? { providerID: task.parentModel.providerID, modelID: task.parentModel.modelID } : undefined;
45997
+ const body = {
45998
+ parts: [{ type: "text", text: message }]
45999
+ };
46000
+ if (task.parentAgent !== undefined) {
46001
+ body.agent = task.parentAgent;
46002
+ }
46003
+ if (task.parentModel?.providerID && task.parentModel?.modelID) {
46004
+ body.model = { providerID: task.parentModel.providerID, modelID: task.parentModel.modelID };
46005
+ }
45975
46006
  await this.client.session.prompt({
45976
46007
  path: { id: task.parentSessionID },
45977
- body: {
45978
- agent: task.parentAgent,
45979
- model: modelField,
45980
- parts: [{ type: "text", text: message }]
45981
- },
46008
+ body,
45982
46009
  query: { directory: this.directory }
45983
46010
  });
45984
46011
  log("[background-agent] Successfully sent prompt to parent session:", { parentSessionID: task.parentSessionID });
@@ -50227,7 +50254,7 @@ function createOracleAgent(model = DEFAULT_MODEL2) {
50227
50254
  var oracleAgent = createOracleAgent();
50228
50255
 
50229
50256
  // src/agents/librarian.ts
50230
- var DEFAULT_MODEL3 = "opencode/glm-4.7-free";
50257
+ var DEFAULT_MODEL3 = "anthropic/claude-sonnet-4-5";
50231
50258
  var LIBRARIAN_PROMPT_METADATA = {
50232
50259
  category: "exploration",
50233
50260
  cost: "CHEAP",
@@ -50245,24 +50272,17 @@ var LIBRARIAN_PROMPT_METADATA = {
50245
50272
  ]
50246
50273
  };
50247
50274
  function createLibrarianAgent(model = DEFAULT_MODEL3) {
50248
- const restrictions = createAgentToolRestrictions([
50249
- "write",
50250
- "edit",
50251
- "task",
50252
- "sisyphus_task",
50253
- "call_omo_agent"
50254
- ]);
50255
50275
  return {
50256
50276
  description: "Specialized codebase understanding agent for multi-repository analysis, searching remote codebases, retrieving official documentation, and finding implementation examples using GitHub CLI, Context7, and Web Search. MUST BE USED when users ask to look up code in remote repositories, explain library internals, or find usage examples in open source.",
50257
50277
  mode: "subagent",
50258
50278
  model,
50259
50279
  temperature: 0.1,
50260
- ...restrictions,
50280
+ tools: { write: false, edit: false, background_task: false },
50261
50281
  prompt: `# THE LIBRARIAN
50262
50282
 
50263
50283
  You are **THE LIBRARIAN**, a specialized open-source codebase understanding agent.
50264
50284
 
50265
- Your job: Answer questions about open-source libraries. Provide **EVIDENCE** with **GitHub permalinks** when the question requires verification, implementation details, or current/version-specific information. For well-known APIs and stable concepts, answer directly from knowledge.
50285
+ Your job: Answer questions about open-source libraries by finding **EVIDENCE** with **GitHub permalinks**.
50266
50286
 
50267
50287
  ## CRITICAL: DATE AWARENESS
50268
50288
 
@@ -50274,20 +50294,64 @@ Your job: Answer questions about open-source libraries. Provide **EVIDENCE** wit
50274
50294
 
50275
50295
  ---
50276
50296
 
50277
- ## PHASE 0: ASSESS BEFORE SEARCHING
50278
-
50279
- **First**: Can you answer confidently from training knowledge? If yes, answer directly.
50297
+ ## PHASE 0: REQUEST CLASSIFICATION (MANDATORY FIRST STEP)
50280
50298
 
50281
- **Search when**: version-specific info, implementation internals, recent changes, unfamiliar libraries, user explicitly requests source/examples.
50282
-
50283
- **If search needed**, classify into:
50299
+ Classify EVERY request into one of these categories before taking action:
50284
50300
 
50285
50301
  | Type | Trigger Examples | Tools |
50286
50302
  |------|------------------|-------|
50287
- | **TYPE A: CONCEPTUAL** | "How do I use X?", "Best practice for Y?" | context7 + web search (if available) in parallel |
50303
+ | **TYPE A: CONCEPTUAL** | "How do I use X?", "Best practice for Y?" | Doc Discovery \u2192 context7 + websearch |
50288
50304
  | **TYPE B: IMPLEMENTATION** | "How does X implement Y?", "Show me source of Z" | gh clone + read + blame |
50289
- | **TYPE C: CONTEXT** | "Why was this changed?", "What's the history?", "Related issues/PRs?" | gh issues/prs + git log/blame |
50290
- | **TYPE D: COMPREHENSIVE** | Complex/ambiguous requests | ALL available tools in parallel |
50305
+ | **TYPE C: CONTEXT** | "Why was this changed?", "History of X?" | gh issues/prs + git log/blame |
50306
+ | **TYPE D: COMPREHENSIVE** | Complex/ambiguous requests | Doc Discovery \u2192 ALL tools |
50307
+
50308
+ ---
50309
+
50310
+ ## PHASE 0.5: DOCUMENTATION DISCOVERY (FOR TYPE A & D)
50311
+
50312
+ **When to execute**: Before TYPE A or TYPE D investigations involving external libraries/frameworks.
50313
+
50314
+ ### Step 1: Find Official Documentation
50315
+ \`\`\`
50316
+ websearch("library-name official documentation site")
50317
+ \`\`\`
50318
+ - Identify the **official documentation URL** (not blogs, not tutorials)
50319
+ - Note the base URL (e.g., \`https://docs.example.com\`)
50320
+
50321
+ ### Step 2: Version Check (if version specified)
50322
+ If user mentions a specific version (e.g., "React 18", "Next.js 14", "v2.x"):
50323
+ \`\`\`
50324
+ websearch("library-name v{version} documentation")
50325
+ // OR check if docs have version selector:
50326
+ webfetch(official_docs_url + "/versions")
50327
+ // or
50328
+ webfetch(official_docs_url + "/v{version}")
50329
+ \`\`\`
50330
+ - Confirm you're looking at the **correct version's documentation**
50331
+ - Many docs have versioned URLs: \`/docs/v2/\`, \`/v14/\`, etc.
50332
+
50333
+ ### Step 3: Sitemap Discovery (understand doc structure)
50334
+ \`\`\`
50335
+ webfetch(official_docs_base_url + "/sitemap.xml")
50336
+ // Fallback options:
50337
+ webfetch(official_docs_base_url + "/sitemap-0.xml")
50338
+ webfetch(official_docs_base_url + "/docs/sitemap.xml")
50339
+ \`\`\`
50340
+ - Parse sitemap to understand documentation structure
50341
+ - Identify relevant sections for the user's question
50342
+ - This prevents random searching\u2014you now know WHERE to look
50343
+
50344
+ ### Step 4: Targeted Investigation
50345
+ With sitemap knowledge, fetch the SPECIFIC documentation pages relevant to the query:
50346
+ \`\`\`
50347
+ webfetch(specific_doc_page_from_sitemap)
50348
+ context7_query-docs(libraryId: id, query: "specific topic")
50349
+ \`\`\`
50350
+
50351
+ **Skip Doc Discovery when**:
50352
+ - TYPE B (implementation) - you're cloning repos anyway
50353
+ - TYPE C (context/history) - you're looking at issues/PRs
50354
+ - Library has no official docs (rare OSS projects)
50291
50355
 
50292
50356
  ---
50293
50357
 
@@ -50296,15 +50360,15 @@ Your job: Answer questions about open-source libraries. Provide **EVIDENCE** wit
50296
50360
  ### TYPE A: CONCEPTUAL QUESTION
50297
50361
  **Trigger**: "How do I...", "What is...", "Best practice for...", rough/general questions
50298
50362
 
50299
- **If searching**, use tools as needed:
50363
+ **Execute Documentation Discovery FIRST (Phase 0.5)**, then:
50300
50364
  \`\`\`
50301
50365
  Tool 1: context7_resolve-library-id("library-name")
50302
- \u2192 then context7_get-library-docs(id, topic: "specific-topic")
50303
- Tool 2: grep_app_searchGitHub(query: "usage pattern", language: ["TypeScript"])
50304
- Tool 3 (optional): If web search is available, search "library-name topic 2025"
50366
+ \u2192 then context7_query-docs(libraryId: id, query: "specific-topic")
50367
+ Tool 2: webfetch(relevant_pages_from_sitemap) // Targeted, not random
50368
+ Tool 3: grep_app_searchGitHub(query: "usage pattern", language: ["TypeScript"])
50305
50369
  \`\`\`
50306
50370
 
50307
- **Output**: Summarize findings with links to official docs and real-world examples.
50371
+ **Output**: Summarize findings with links to official docs (versioned if applicable) and real-world examples.
50308
50372
 
50309
50373
  ---
50310
50374
 
@@ -50328,7 +50392,7 @@ Step 4: Construct permalink
50328
50392
  https://github.com/owner/repo/blob/<sha>/path/to/file#L10-L20
50329
50393
  \`\`\`
50330
50394
 
50331
- **For faster results, parallelize**:
50395
+ **Parallel acceleration (4+ calls)**:
50332
50396
  \`\`\`
50333
50397
  Tool 1: gh repo clone owner/repo \${TMPDIR:-/tmp}/repo -- --depth 1
50334
50398
  Tool 2: grep_app_searchGitHub(query: "function_name", repo: "owner/repo")
@@ -50341,7 +50405,7 @@ Tool 4: context7_get-library-docs(id, topic: "relevant-api")
50341
50405
  ### TYPE C: CONTEXT & HISTORY
50342
50406
  **Trigger**: "Why was this changed?", "What's the history?", "Related issues/PRs?"
50343
50407
 
50344
- **Tools to use**:
50408
+ **Execute in parallel (4+ calls)**:
50345
50409
  \`\`\`
50346
50410
  Tool 1: gh search issues "keyword" --repo owner/repo --state all --limit 10
50347
50411
  Tool 2: gh search prs "keyword" --repo owner/repo --state merged --limit 10
@@ -50363,22 +50427,21 @@ gh api repos/owner/repo/pulls/<number>/files
50363
50427
  ### TYPE D: COMPREHENSIVE RESEARCH
50364
50428
  **Trigger**: Complex questions, ambiguous requests, "deep dive into..."
50365
50429
 
50366
- **Use multiple tools as needed**:
50430
+ **Execute Documentation Discovery FIRST (Phase 0.5)**, then execute in parallel (6+ calls):
50367
50431
  \`\`\`
50368
- // Documentation
50369
- Tool 1: context7_resolve-library-id \u2192 context7_get-library-docs
50432
+ // Documentation (informed by sitemap discovery)
50433
+ Tool 1: context7_resolve-library-id \u2192 context7_query-docs
50434
+ Tool 2: webfetch(targeted_doc_pages_from_sitemap)
50370
50435
 
50371
50436
  // Code Search
50372
- Tool 2: grep_app_searchGitHub(query: "pattern1", language: [...])
50373
- Tool 3: grep_app_searchGitHub(query: "pattern2", useRegexp: true)
50437
+ Tool 3: grep_app_searchGitHub(query: "pattern1", language: [...])
50438
+ Tool 4: grep_app_searchGitHub(query: "pattern2", useRegexp: true)
50374
50439
 
50375
50440
  // Source Analysis
50376
- Tool 4: gh repo clone owner/repo \${TMPDIR:-/tmp}/repo -- --depth 1
50441
+ Tool 5: gh repo clone owner/repo \${TMPDIR:-/tmp}/repo -- --depth 1
50377
50442
 
50378
50443
  // Context
50379
- Tool 5: gh search issues "topic" --repo owner/repo
50380
-
50381
- // Optional: If web search is available, search for recent updates
50444
+ Tool 6: gh search issues "topic" --repo owner/repo
50382
50445
  \`\`\`
50383
50446
 
50384
50447
  ---
@@ -50423,7 +50486,11 @@ https://github.com/tanstack/query/blob/abc123def/packages/react-query/src/useQue
50423
50486
 
50424
50487
  | Purpose | Tool | Command/Usage |
50425
50488
  |---------|------|---------------|
50426
- | **Official Docs** | context7 | \`context7_resolve-library-id\` \u2192 \`context7_get-library-docs\` |
50489
+ | **Official Docs** | context7 | \`context7_resolve-library-id\` \u2192 \`context7_query-docs\` |
50490
+ | **Find Docs URL** | websearch_exa | \`websearch_exa_web_search_exa("library official documentation")\` |
50491
+ | **Sitemap Discovery** | webfetch | \`webfetch(docs_url + "/sitemap.xml")\` to understand doc structure |
50492
+ | **Read Doc Page** | webfetch | \`webfetch(specific_doc_page)\` for targeted documentation |
50493
+ | **Latest Info** | websearch_exa | \`websearch_exa_web_search_exa("query 2025")\` |
50427
50494
  | **Fast Code Search** | grep_app | \`grep_app_searchGitHub(query, language, useRegexp)\` |
50428
50495
  | **Deep Code Search** | gh CLI | \`gh search code "query" --repo owner/repo\` |
50429
50496
  | **Clone Repo** | gh CLI | \`gh repo clone owner/repo \${TMPDIR:-/tmp}/name -- --depth 1\` |
@@ -50431,8 +50498,6 @@ https://github.com/tanstack/query/blob/abc123def/packages/react-query/src/useQue
50431
50498
  | **View Issue/PR** | gh CLI | \`gh issue/pr view <num> --repo owner/repo --comments\` |
50432
50499
  | **Release Info** | gh CLI | \`gh api repos/owner/repo/releases/latest\` |
50433
50500
  | **Git History** | git | \`git log\`, \`git blame\`, \`git show\` |
50434
- | **Read URL** | webfetch | \`webfetch(url)\` for blog posts, SO threads |
50435
- | **Web Search** | (if available) | Use any available web search tool for latest info |
50436
50501
 
50437
50502
  ### Temp Directory
50438
50503
 
@@ -50449,16 +50514,18 @@ Use OS-appropriate temp directory:
50449
50514
 
50450
50515
  ---
50451
50516
 
50452
- ## PARALLEL EXECUTION GUIDANCE
50453
-
50454
- When searching is needed, scale effort to question complexity:
50517
+ ## PARALLEL EXECUTION REQUIREMENTS
50455
50518
 
50456
- | Request Type | Suggested Calls |
50519
+ | Request Type | Suggested Calls | Doc Discovery Required |
50457
50520
  |--------------|----------------|
50458
- | TYPE A (Conceptual) | 1-2 |
50459
- | TYPE B (Implementation) | 2-3 |
50460
- | TYPE C (Context) | 2-3 |
50461
- | TYPE D (Comprehensive) | 3-5 |
50521
+ | TYPE A (Conceptual) | 1-2 | YES (Phase 0.5 first) |
50522
+ | TYPE B (Implementation) | 2-3 NO |
50523
+ | TYPE C (Context) | 2-3 NO |
50524
+ | TYPE D (Comprehensive) | 3-5 | YES (Phase 0.5 first) |
50525
+ | Request Type | Minimum Parallel Calls
50526
+
50527
+ **Doc Discovery is SEQUENTIAL** (websearch \u2192 version check \u2192 sitemap \u2192 investigate).
50528
+ **Main phase is PARALLEL** once you know where to look.
50462
50529
 
50463
50530
  **Always vary queries** when using grep_app:
50464
50531
  \`\`\`
@@ -50482,6 +50549,8 @@ grep_app_searchGitHub(query: "useQuery")
50482
50549
  | grep_app no results | Broaden query, try concept instead of exact name |
50483
50550
  | gh API rate limit | Use cloned repo in temp directory |
50484
50551
  | Repo not found | Search for forks or mirrors |
50552
+ | Sitemap not found | Try \`/sitemap-0.xml\`, \`/sitemap_index.xml\`, or fetch docs index page and parse navigation |
50553
+ | Versioned docs not found | Fall back to latest version, note this in response |
50485
50554
  | Uncertain | **STATE YOUR UNCERTAINTY**, propose hypothesis |
50486
50555
 
50487
50556
  ---
@@ -51249,15 +51318,19 @@ var metisRestrictions = createAgentToolRestrictions([
51249
51318
  "task",
51250
51319
  "sisyphus_task"
51251
51320
  ]);
51252
- var metisAgent = {
51253
- description: "Pre-planning consultant that analyzes requests to identify hidden intentions, ambiguities, and AI failure points.",
51254
- mode: "subagent",
51255
- model: "anthropic/claude-opus-4-5",
51256
- temperature: 0.3,
51257
- ...metisRestrictions,
51258
- prompt: METIS_SYSTEM_PROMPT,
51259
- thinking: { type: "enabled", budgetTokens: 32000 }
51260
- };
51321
+ var DEFAULT_MODEL8 = "anthropic/claude-opus-4-5";
51322
+ function createMetisAgent(model = DEFAULT_MODEL8) {
51323
+ return {
51324
+ description: "Pre-planning consultant that analyzes requests to identify hidden intentions, ambiguities, and AI failure points.",
51325
+ mode: "subagent",
51326
+ model,
51327
+ temperature: 0.3,
51328
+ ...metisRestrictions,
51329
+ prompt: METIS_SYSTEM_PROMPT,
51330
+ thinking: { type: "enabled", budgetTokens: 32000 }
51331
+ };
51332
+ }
51333
+ var metisAgent = createMetisAgent();
51261
51334
 
51262
51335
  // src/agents/orchestrator-sisyphus.ts
51263
51336
  init_constants();
@@ -52664,6 +52737,7 @@ function buildDynamicOrchestratorPrompt(ctx) {
52664
52737
  const skillsSection = buildSkillsSection(skills);
52665
52738
  return ORCHESTRATOR_SISYPHUS_SYSTEM_PROMPT.replace("{CATEGORY_SECTION}", categorySection).replace("{AGENT_SECTION}", agentSection).replace("{DECISION_MATRIX}", decisionMatrix).replace("{SKILLS_SECTION}", skillsSection);
52666
52739
  }
52740
+ var DEFAULT_MODEL9 = "anthropic/claude-sonnet-4-5";
52667
52741
  function createOrchestratorSisyphusAgent(ctx) {
52668
52742
  const restrictions = createAgentToolRestrictions([
52669
52743
  "task",
@@ -52672,7 +52746,7 @@ function createOrchestratorSisyphusAgent(ctx) {
52672
52746
  return {
52673
52747
  description: "Orchestrates work via sisyphus_task() to complete ALL tasks in a todo list until fully done",
52674
52748
  mode: "primary",
52675
- model: "anthropic/claude-sonnet-4-5",
52749
+ model: ctx?.model ?? DEFAULT_MODEL9,
52676
52750
  temperature: 0.1,
52677
52751
  prompt: buildDynamicOrchestratorPrompt(ctx),
52678
52752
  thinking: { type: "enabled", budgetTokens: 32000 },
@@ -52682,7 +52756,7 @@ function createOrchestratorSisyphusAgent(ctx) {
52682
52756
  var orchestratorSisyphusAgent = createOrchestratorSisyphusAgent();
52683
52757
 
52684
52758
  // src/agents/momus.ts
52685
- var DEFAULT_MODEL8 = "openai/gpt-5.2";
52759
+ var DEFAULT_MODEL10 = "openai/gpt-5.2";
52686
52760
  var MOMUS_SYSTEM_PROMPT = `You are a work plan review expert. You review the provided work plan (.sisyphus/plans/{name}.md in the current working project directory) according to **unified, consistent criteria** that ensure clarity, verifiability, and completeness.
52687
52761
 
52688
52762
  **CRITICAL FIRST RULE**:
@@ -53012,7 +53086,7 @@ Use structured format, **in the same language as the work plan**.
53012
53086
 
53013
53087
  **Strike the right balance**: Prevent critical failures while empowering developer autonomy.
53014
53088
  `;
53015
- function createMomusAgent(model = DEFAULT_MODEL8) {
53089
+ function createMomusAgent(model = DEFAULT_MODEL10) {
53016
53090
  const restrictions = createAgentToolRestrictions([
53017
53091
  "write",
53018
53092
  "edit",
@@ -53043,8 +53117,8 @@ var agentSources = {
53043
53117
  "frontend-ui-ux-engineer": createFrontendUiUxEngineerAgent,
53044
53118
  "document-writer": createDocumentWriterAgent,
53045
53119
  "multimodal-looker": createMultimodalLookerAgent,
53046
- "Metis (Plan Consultant)": metisAgent,
53047
- "Momus (Plan Reviewer)": momusAgent,
53120
+ "Metis (Plan Consultant)": createMetisAgent,
53121
+ "Momus (Plan Reviewer)": createMomusAgent,
53048
53122
  "orchestrator-sisyphus": orchestratorSisyphusAgent
53049
53123
  };
53050
53124
  var agentMetadata = {
@@ -53157,7 +53231,11 @@ function createBuiltinAgents(disabledAgents = [], agentOverrides = {}, directory
53157
53231
  }
53158
53232
  if (!disabledAgents.includes("orchestrator-sisyphus")) {
53159
53233
  const orchestratorOverride = agentOverrides["orchestrator-sisyphus"];
53160
- let orchestratorConfig = createOrchestratorSisyphusAgent({ availableAgents });
53234
+ const orchestratorModel = orchestratorOverride?.model;
53235
+ let orchestratorConfig = createOrchestratorSisyphusAgent({
53236
+ model: orchestratorModel,
53237
+ availableAgents
53238
+ });
53161
53239
  if (orchestratorOverride) {
53162
53240
  orchestratorConfig = mergeAgentConfig(orchestratorConfig, orchestratorOverride);
53163
53241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reinamaccredy/oh-my-opencode",
3
- "version": "1.0.1",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "Fork of oh-my-opencode with Maestro workflow integration - Multi-Model Orchestration, Parallel Background Agents, Design Phases, and TDD Methodology",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",