opencode-ultra 0.6.2 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +49 -45
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14923,82 +14923,86 @@ SYNTHESIZE findings before proceeding.`;
14923
14923
  var THINK_MESSAGE = `Extended thinking enabled. Take your time to reason thoroughly.`;
14924
14924
  var EVOLVE_MESSAGE = `[evolve-mode] SELF-IMPROVEMENT CYCLE ACTIVATED.
14925
14925
 
14926
+ ## CRITICAL PATH: opencode-ultra source location
14927
+ opencode-ultra is INSTALLED as a plugin. Its source is at:
14928
+ **~/.cache/opencode/node_modules/opencode-ultra/**
14929
+ NOT in the working directory. You must read from this path.
14930
+
14926
14931
  ## MISSION
14927
- Discover what other OpenCode plugins do well, compare with opencode-ultra's current capabilities, and propose concrete improvements to opencode-ultra itself.
14932
+ Compare opencode-ultra's ACTUAL current capabilities (read from source) with other OpenCode plugins, then propose concrete improvements.
14928
14933
 
14929
14934
  This is NOT about installing other plugins. This is about LEARNING from the ecosystem and making opencode-ultra better.
14930
14935
 
14931
- ## TOOLS AVAILABLE
14932
- - **spawn_agent** \u2014 run scout + explore agents in parallel for data gathering
14933
- - **ledger_save** \u2014 persist improvement proposals for future implementation
14936
+ ## PHASE 1: SELF-ANALYSIS (DO THIS FIRST \u2014 before anything else)
14937
+
14938
+ Before researching other plugins, you MUST understand what opencode-ultra already has.
14939
+ Read these files yourself using Read/Grep/Glob (do NOT spawn an agent for this \u2014 you can read directly):
14940
+
14941
+ 1. ~/.cache/opencode/node_modules/opencode-ultra/README.md
14942
+ 2. ~/.cache/opencode/node_modules/opencode-ultra/dist/index.js (search for tool names, hook names)
14943
+
14944
+ Or use Glob to list: ~/.cache/opencode/node_modules/opencode-ultra/**/*.ts
14945
+
14946
+ From the README and source, build this inventory:
14947
+ - Tools provided: (list each tool name and what it does)
14948
+ - Hooks used: (list each hook and its purpose)
14949
+ - Agents defined: (list each agent, its model, its role)
14950
+ - Safety features: (sanitizer, trust score, spawn limits, etc.)
14951
+ - Other features: (concurrency, categories, keyword detection, etc.)
14934
14952
 
14935
- ## PHASE 1: GATHER (parallel \u2014 BOTH agents MANDATORY)
14953
+ **STOP and verify**: You must have a concrete capability list before proceeding. If you cannot read the files, try: ls ~/.cache/opencode/node_modules/opencode-ultra/
14936
14954
 
14937
- You MUST spawn BOTH agents below. Do NOT skip the explore agent.
14955
+ ## PHASE 2: ECOSYSTEM RESEARCH (parallel with spawn_agent)
14938
14956
 
14957
+ Now research what other plugins offer:
14939
14958
  \`\`\`
14940
14959
  spawn_agent({
14941
14960
  agents: [
14942
- {agent: "scout", prompt: "Search npm and GitHub for OpenCode 1.2.x plugins. For EACH plugin, analyze: what features does it provide? What hooks, tools, or techniques does it use? Focus on UNIQUE capabilities that are genuinely useful. Return a structured feature inventory per plugin.", description: "Ecosystem feature scan"},
14943
- {agent: "explore", prompt: "Read opencode-ultra's INSTALLED source at ~/.cache/opencode/node_modules/opencode-ultra/. Read these files: src/index.ts, src/tools/spawn-agent.ts, src/tools/ralph-loop.ts, src/tools/evolve-apply.ts, src/hooks/keyword-detector.ts, src/hooks/rules-injector.ts, src/safety/sanitizer.ts, src/safety/trust-score.ts, src/concurrency/pool.ts, src/agents/index.ts, src/categories/index.ts, README.md. For EACH file, list: what it does, what hooks/tools/features it provides, what techniques it uses. Output a structured capability inventory with Yes/No for each feature area.", description: "Self-analysis of opencode-ultra"}
14961
+ {agent: "scout", prompt: "Search npm and GitHub for OpenCode 1.2.x plugins. For EACH interesting plugin: what features does it provide? What hooks, tools, or techniques does it use? Focus on UNIQUE capabilities. Return a structured feature inventory per plugin.", description: "Ecosystem scan"},
14962
+ {agent: "librarian", prompt: "Search for OpenCode plugin best practices, architectural patterns, and advanced techniques. Look at oh-my-opencode, opencode-supermemory, opencode-dcp, opencode-rate-limit-fallback, opencode-worktree, opencode-mad. What patterns do they share? What's unique?", description: "Plugin patterns research"}
14944
14963
  ]
14945
14964
  })
14946
14965
  \`\`\`
14947
14966
 
14948
- ## HARD GATE: DO NOT proceed to Phase 2 until BOTH agents return results.
14949
- If the explore agent fails to find files, try reading from the current project directory or use Grep to locate opencode-ultra source files. You MUST have a concrete list of opencode-ultra's current capabilities before comparing.
14967
+ ## PHASE 3: COMPARE
14950
14968
 
14951
- ## PHASE 2: COMPARE
14969
+ Build a Feature Matrix using YOUR self-analysis (Phase 1) and agent results (Phase 2).
14952
14970
 
14953
- Build a structured gap analysis using BOTH agents' results.
14971
+ **RULE**: The "opencode-ultra" column MUST contain Yes/No/Partial with the specific file or feature name. NEVER write "TBD", "unknown", or "\u4E0D\u660E". You read the source yourself \u2014 you know the answer.
14954
14972
 
14955
- **CRITICAL**: The "opencode-ultra" column MUST be filled with Yes/No/Partial based on the explore agent's output. NEVER write "TBD" or "unknown" \u2014 if you don't know, re-read the source.
14973
+ | Feature | opencode-ultra | Other plugin(s) | Gap? |
14974
+ |---------|---------------|-----------------|------|
14975
+ | Multi-agent orchestration | Yes \u2014 spawn_agent tool | oh-my-opencode, MAD | Covered |
14976
+ | (example) | No | opencode-dcp | Missing |
14977
+ | (example) | Partial \u2014 basic in sanitizer.ts | envsitter-guard | Partial |
14956
14978
 
14957
- ### Feature Matrix
14958
- | Feature | opencode-ultra (current) | Other plugin(s) | Gap? |
14959
- |---------|-------------------------|-----------------|------|
14960
- | (feature) | Yes / No / Partial \u2014 cite which file | Which plugin has it | Missing / Partial / Covered |
14979
+ ## PHASE 4: PROPOSE
14961
14980
 
14962
- Focus on features that are:
14963
- - **Genuinely useful** (not gimmicks)
14964
- - **Feasible to implement** (not requiring external infrastructure)
14965
- - **Complementary** to existing capabilities (not duplicate)
14981
+ For each Missing or Partial gap, propose a concrete improvement:
14966
14982
 
14967
- ### What to IGNORE
14968
- - Auth plugins (opencode-antigravity-auth etc.) \u2014 domain-specific, not relevant
14969
- - oh-my-opencode features we already ported \u2014 mark as "Covered"
14970
- - Trivial wrappers or abandoned projects
14971
-
14972
- ## PHASE 3: PROPOSE
14973
- For each identified gap (Missing or Partial), produce a concrete improvement proposal:
14974
-
14975
- \`\`\`
14976
14983
  ## Improvement: [Feature Name]
14977
14984
  **Inspiration**: [Plugin name] \u2014 [what it does]
14978
- **Current state in opencode-ultra**: [what we have now, citing files]
14979
- **Why**: [Why opencode-ultra needs this]
14980
- **How**: [Implementation sketch \u2014 which file to modify, what to add]
14985
+ **Current state**: [what opencode-ultra has now, citing specific files/tools]
14986
+ **Why**: [concrete benefit]
14987
+ **How**: [which file to modify, what to add \u2014 be specific]
14981
14988
  **Effort**: Low / Medium / High
14982
- **Priority**: P0 (critical) / P1 (important) / P2 (nice-to-have)
14983
- \`\`\`
14989
+ **Priority**: P0 / P1 / P2
14984
14990
 
14985
- Sort proposals by Priority then Effort (P0-Low first, P2-High last).
14991
+ Sort by Priority then Effort.
14986
14992
 
14987
- ## PHASE 4: SAVE
14988
- Save the full analysis to the continuity ledger:
14993
+ ## PHASE 5: SAVE
14989
14994
  \`\`\`
14990
14995
  ledger_save({
14991
14996
  name: "evolve-scan-YYYY-MM-DD",
14992
- content: "# Evolve Scan Results\\n\\n## Feature Matrix\\n...\\n## Improvement Proposals\\n..."
14997
+ content: "# Evolve Scan Results\\n\\n## Current Capabilities\\n...\\n## Feature Matrix\\n...\\n## Proposals\\n..."
14993
14998
  })
14994
14999
  \`\`\`
14995
15000
 
14996
- ## IMPORTANT
14997
- - The goal is to make opencode-ultra BETTER, not to install other plugins.
14998
- - Other plugins are REFERENCE MATERIAL \u2014 study their approach, then design our own implementation.
14999
- - Every proposal must include a concrete "How" section with file paths and implementation direction.
15000
- - The opencode-ultra column in Feature Matrix must NEVER be TBD. Read the source first.
15001
- - Present the final proposals to the user for approval before any implementation.`;
15001
+ ## RULES
15002
+ - Read opencode-ultra source YOURSELF first. Do not delegate self-analysis to a sub-agent.
15003
+ - The Feature Matrix must reflect what you actually read. No guessing.
15004
+ - Proposals must cite specific opencode-ultra files for the "How" section.
15005
+ - Present proposals to user for approval before implementation.`;
15002
15006
 
15003
15007
  // src/hooks/rules-injector.ts
15004
15008
  import * as fs2 from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-ultra",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Lightweight OpenCode 1.2.x plugin — ultrawork mode, multi-agent orchestration, rules injection",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",