opencodekit 0.15.12 → 0.15.14

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 (23) hide show
  1. package/README.md +4 -4
  2. package/dist/index.js +16 -4
  3. package/dist/template/.opencode/AGENTS.md +28 -3
  4. package/dist/template/.opencode/README.md +7 -4
  5. package/dist/template/.opencode/agent/scout.md +117 -27
  6. package/dist/template/.opencode/command/research-ui.md +1 -1
  7. package/dist/template/.opencode/command/research.md +56 -62
  8. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +29 -0
  9. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +21 -0
  10. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +32 -0
  11. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +42 -0
  12. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +32 -0
  13. package/dist/template/.opencode/memory/research/opencode-mcp-bug-report.md +5 -2
  14. package/dist/template/.opencode/opencode.json +697 -812
  15. package/dist/template/.opencode/plans/1768385996691-silent-wizard.md +12 -2
  16. package/dist/template/.opencode/skill/deep-research/SKILL.md +385 -0
  17. package/dist/template/.opencode/skill/source-code-research/SKILL.md +8 -8
  18. package/dist/template/.opencode/skill/tool-priority/SKILL.md +8 -6
  19. package/dist/template/.opencode/tool/context7-query-docs.ts +89 -0
  20. package/dist/template/.opencode/tool/context7-resolve-library-id.ts +113 -0
  21. package/dist/template/.opencode/tool/grep-search.ts +135 -0
  22. package/dist/template/.opencode/tool/oracle.ts +240 -0
  23. package/package.json +16 -4
@@ -0,0 +1,42 @@
1
+ ---
2
+ type: learning
3
+ created: 2026-01-28T18:03:19.579Z
4
+ confidence: high
5
+ valid_until: null
6
+ superseded_by: null
7
+ concepts: ["deep-mode", "ampcode", "scout", "research", "autonomous", "extended-thinking", "oracle"]
8
+ ---
9
+
10
+ # 📚 AmpCode Deep Mode Research - Integration with Scout/Research
11
+
12
+ 🟢 **Confidence:** high
13
+
14
+ ## AmpCode Deep Mode Research (Jan 2026)
15
+
16
+ ### Key Concepts from AmpCode:
17
+ 1. **Three Modes**: smart (collaborative), rush (fast/cheap), deep (autonomous/extended thinking)
18
+ 2. **Deep Mode Behavior**: 5-15 minutes of silent reading before changes, uses GPT-5.2-Codex
19
+ 3. **Oracle Pattern**: Second opinion tool using reasoning model for complex decisions
20
+ 4. **Handoff**: Move context between modes/threads
21
+
22
+ ### How This Maps to OpenCodeKit:
23
+
24
+ **Scout Agent** already has:
25
+ - Quick Mode (~2-3 tool calls)
26
+ - Deep Mode (~4-6 tool calls) - triggers on "how do others", "compare", "best practices"
27
+
28
+ **Research Command** already has:
29
+ - `--quick` (~10 tool calls)
30
+ - Default (~30 tool calls)
31
+ - `--thorough` (~100+ tool calls)
32
+
33
+ ### Enhancement Opportunities:
34
+ 1. Add `--deep` flag to research that enforces extended LSP exploration before ANY findings
35
+ 2. Create oracle tool for "second opinion" on complex architectural decisions
36
+ 3. Add mode handoff commands: `/mode deep`, `/mode smart`
37
+ 4. Make thorough mode more autonomous (fewer check-ins)
38
+
39
+ ### AmpCode Insights to Adopt:
40
+ - "Deep mode is lazy about verification" - sometimes useful to defer verification
41
+ - "Requires clear problem definition upfront" - enforce problem statement template
42
+ - "Goes off to solve problems alone, not pair program" - reduce chattiness in thorough mode
@@ -0,0 +1,32 @@
1
+ ---
2
+ type: pattern
3
+ created: 2026-01-28T18:11:31.174Z
4
+ confidence: high
5
+ valid_until: null
6
+ superseded_by: null
7
+ concepts: ["delegation", "explore-agent", "scout-agent", "research-command", "LSP", "deep-research", "parallel-execution"]
8
+ ---
9
+
10
+ # 🔄 Research delegation pattern: @explore for LSP, @scout for external
11
+
12
+ 🟢 **Confidence:** high
13
+
14
+ Optimized scout.md and research.md to use proper delegation:
15
+
16
+ **Delegation pattern:**
17
+ - Internal codebase LSP analysis → delegate to @explore agent
18
+ - External docs/GitHub patterns → @scout handles directly
19
+ - Run both in parallel when possible
20
+
21
+ **Key changes:**
22
+ 1. Scout agent loads deep-research skill for deep mode
23
+ 2. Research command loads deep-research skill for --thorough
24
+ 3. Both delegate LSP exploration to @explore instead of manual LSP calls
25
+ 4. Removed redundant manual LSP code examples
26
+ 5. Added parallel execution pattern for internal + external research
27
+
28
+ **Why this is better:**
29
+ - @explore is specialized for LSP with structured output
30
+ - Reduces manual tool call overhead (9 LSP ops → 1 delegation)
31
+ - Enables parallel research (codebase + external simultaneously)
32
+ - Consistent methodology via deep-research skill
@@ -94,10 +94,13 @@ The bug is in **OpenCode's tool response handler**, not the MCP connection layer
94
94
  2. `opencode mcp debug` shows HTTP 200 OK responses
95
95
  3. The error happens only when the AI agent calls the tool
96
96
 
97
- ## Workaround
97
+ ## Resolution
98
98
 
99
- Use alternative tools that don't go through MCP:
99
+ **FIXED** - Replaced MCP tools with native HTTP wrappers:
100
100
 
101
+ - `context7_resolve-library-id` - Native HTTP wrapper (works)
102
+ - `context7_query-docs` - Native HTTP wrapper (works)
103
+ - `grep-search` - Native HTTP wrapper (works)
101
104
  - `codesearch` (Exa Code API) - works
102
105
  - `websearch` (Exa Web Search) - works
103
106