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.
- package/dist/index.js +49 -45
- 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
|
-
|
|
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
|
-
##
|
|
14932
|
-
|
|
14933
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
14943
|
-
{agent: "
|
|
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
|
-
##
|
|
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
|
-
|
|
14969
|
+
Build a Feature Matrix using YOUR self-analysis (Phase 1) and agent results (Phase 2).
|
|
14952
14970
|
|
|
14953
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
14979
|
-
**Why**: [
|
|
14980
|
-
**How**: [
|
|
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
|
|
14983
|
-
\`\`\`
|
|
14989
|
+
**Priority**: P0 / P1 / P2
|
|
14984
14990
|
|
|
14985
|
-
Sort
|
|
14991
|
+
Sort by Priority then Effort.
|
|
14986
14992
|
|
|
14987
|
-
## PHASE
|
|
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##
|
|
14997
|
+
content: "# Evolve Scan Results\\n\\n## Current Capabilities\\n...\\n## Feature Matrix\\n...\\n## Proposals\\n..."
|
|
14993
14998
|
})
|
|
14994
14999
|
\`\`\`
|
|
14995
15000
|
|
|
14996
|
-
##
|
|
14997
|
-
-
|
|
14998
|
-
-
|
|
14999
|
-
-
|
|
15000
|
-
-
|
|
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