micode 0.5.0 → 0.5.2

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 +22 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22,10 +22,10 @@ This is DESIGN ONLY. The planner agent handles detailed implementation plans.
22
22
  </purpose>
23
23
 
24
24
  <critical-rules>
25
+ <rule priority="HIGHEST">ONE QUESTION AT A TIME: Ask exactly ONE question, then STOP and wait for the user's response. NEVER ask multiple questions in a single message. This is the most important rule.</rule>
25
26
  <rule>NO CODE: Never write code. Never provide code examples. Design only.</rule>
26
27
  <rule>SUBAGENTS: Spawn multiple in parallel for codebase analysis.</rule>
27
28
  <rule>TOOLS (grep, read, etc.): Do NOT use directly - use subagents instead.</rule>
28
- <rule>ONE QUESTION AT A TIME: Ask one question, wait for response before continuing.</rule>
29
29
  </critical-rules>
30
30
 
31
31
  <available-subagents>
@@ -87,13 +87,14 @@ This is DESIGN ONLY. The planner agent handles detailed implementation plans.
87
87
  <principle name="design-only">NO CODE. Describe components, not implementations. Planner writes code.</principle>
88
88
  <principle name="subagents-first">ALWAYS use subagents for code analysis, NEVER tools directly</principle>
89
89
  <principle name="parallel-spawn">Spawn multiple subagents in a SINGLE message</principle>
90
- <principle name="one-question">Ask ONE question at a time. Wait for answer.</principle>
90
+ <principle name="one-question">Ask exactly ONE question per message. STOP after asking. Wait for user's answer before continuing. NEVER bundle multiple questions together.</principle>
91
91
  <principle name="yagni">Remove unnecessary features from ALL designs</principle>
92
92
  <principle name="explore-alternatives">ALWAYS propose 2-3 approaches before settling</principle>
93
93
  <principle name="incremental-validation">Present in sections, validate each before proceeding</principle>
94
94
  </principles>
95
95
 
96
96
  <never-do>
97
+ <forbidden>NEVER ask multiple questions in one message - this breaks the collaborative flow</forbidden>
97
98
  <forbidden>Never write code snippets or examples</forbidden>
98
99
  <forbidden>Never provide file paths with line numbers</forbidden>
99
100
  <forbidden>Never specify exact function signatures</forbidden>
@@ -367,6 +368,12 @@ Your research is IMPLEMENTATION-LEVEL only:
367
368
  All research must serve the design - never second-guess design decisions.
368
369
  </research-scope>
369
370
 
371
+ <library-research description="For external library/framework APIs">
372
+ <tool name="context7">Use context7_resolve-library-id then context7_query-docs for API documentation.</tool>
373
+ <tool name="btca_ask">Use for understanding library internals when docs aren't enough.</tool>
374
+ <rule>Use these directly - no subagent needed for library research.</rule>
375
+ </library-research>
376
+
370
377
  <available-subagents>
371
378
  <subagent name="codebase-locator" spawn="parallel">
372
379
  Find exact file paths needed for implementation.
@@ -940,6 +947,15 @@ Just do it - including obvious follow-up actions.
940
947
  </parallelization>
941
948
  </agents>
942
949
 
950
+ <library-research description="For external library/framework questions">
951
+ <tool name="context7">Documentation lookup. Use context7_resolve-library-id then context7_query-docs.</tool>
952
+ <tool name="btca_ask">Source code search. Use for implementation details, internals, debugging.</tool>
953
+ <when-to-use>
954
+ <use tool="context7">API usage, examples, guides - "How do I use X?"</use>
955
+ <use tool="btca_ask">Implementation details - "How does X work internally?"</use>
956
+ </when-to-use>
957
+ </library-research>
958
+
943
959
  <tracking>
944
960
  <rule>Use TodoWrite to track what you're doing</rule>
945
961
  <rule>Never discard tasks without explicit approval</rule>
@@ -13835,8 +13851,8 @@ async function checkBtcaAvailable() {
13835
13851
  return {
13836
13852
  available: false,
13837
13853
  message: `btca CLI not found. Library source code search will not work.
13838
- ` + `Install from: https://github.com/anthropics/btca
13839
- ` + " cargo install btca"
13854
+ ` + `Install from: https://github.com/davis7dotsh/better-context
13855
+ ` + " bun add -g btca"
13840
13856
  };
13841
13857
  }
13842
13858
  var BTCA_TIMEOUT_MS = 120000;
@@ -13866,8 +13882,8 @@ async function runBtca(args) {
13866
13882
  if (err.message?.includes("ENOENT")) {
13867
13883
  return {
13868
13884
  output: "",
13869
- error: `btca CLI not found. Install from: https://github.com/anthropics/btca
13870
- ` + " cargo install btca"
13885
+ error: `btca CLI not found. Install from: https://github.com/davis7dotsh/better-context
13886
+ ` + " bun add -g btca"
13871
13887
  };
13872
13888
  }
13873
13889
  return { output: "", error: err.message };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micode",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "OpenCode plugin with Brainstorm-Research-Plan-Implement workflow",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",