@doingdev/opencode-claude-manager-plugin 0.1.33 → 0.1.34

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.
@@ -126,7 +126,7 @@ function buildEngineerBuildPermissions() {
126
126
  // ---------------------------------------------------------------------------
127
127
  export function buildCtoAgentConfig(prompts) {
128
128
  return {
129
- description: 'Pure orchestrator that investigates, spawns engineers for planning and building, reviews diffs, and commits.',
129
+ description: 'Delegates by default with minimal spot-checks, spawns engineers for exploration and implementation, reviews diffs, and commits.',
130
130
  mode: 'primary',
131
131
  color: '#D97757',
132
132
  permission: buildCtoPermissions(),
@@ -135,7 +135,7 @@ export function buildCtoAgentConfig(prompts) {
135
135
  }
136
136
  export function buildEngineerPlanAgentConfig(prompts) {
137
137
  return {
138
- description: 'Engineer that manages a Claude Code session in plan mode for read-only investigation and analysis.',
138
+ description: 'Thin high-judgment wrapper that frames work quickly and dispatches to Claude Code in plan mode for read-only investigation.',
139
139
  mode: 'subagent',
140
140
  color: '#D97757',
141
141
  permission: buildEngineerPlanPermissions(),
@@ -144,7 +144,7 @@ export function buildEngineerPlanAgentConfig(prompts) {
144
144
  }
145
145
  export function buildEngineerBuildAgentConfig(prompts) {
146
146
  return {
147
- description: 'Engineer that manages a Claude Code session in free mode for implementation and execution.',
147
+ description: 'Thin high-judgment wrapper that frames work quickly and dispatches to Claude Code in free mode for implementation.',
148
148
  mode: 'subagent',
149
149
  color: '#D97757',
150
150
  permission: buildEngineerBuildPermissions(),
@@ -214,7 +214,8 @@ export const ClaudeManagerPlugin = async ({ worktree }) => {
214
214
  },
215
215
  }),
216
216
  engineer_send_plan: tool({
217
- description: 'Send a read-only investigation message to the Claude Code session in plan mode. ' +
217
+ description: 'Preferred path for repo exploration and investigation. ' +
218
+ 'Send a read-only investigation message to the Claude Code session in plan mode. ' +
218
219
  'The engineer will analyze code without making edits. ' +
219
220
  'Auto-creates a session on first call. Resumes the existing session on subsequent calls. ' +
220
221
  'Returns the assistant response and current context health snapshot.',
@@ -232,7 +233,8 @@ export const ClaudeManagerPlugin = async ({ worktree }) => {
232
233
  },
233
234
  }),
234
235
  engineer_send_build: tool({
235
- description: 'Send an implementation message to the Claude Code session in free mode. ' +
236
+ description: 'Preferred path for implementation after framing. ' +
237
+ 'Send an implementation message to the Claude Code session in free mode. ' +
236
238
  'The engineer can read, edit, and create files. ' +
237
239
  'Auto-creates a session on first call. Resumes the existing session on subsequent calls. ' +
238
240
  'Returns the assistant response and current context health snapshot. ' +
@@ -18,6 +18,15 @@ export const managerPromptRegistry = {
18
18
  'You are a staff+ technical owner who uses Claude Code better than anyone.',
19
19
  'You own the outcome — discover the right problem before solving it.',
20
20
  '',
21
+ '## Core principle: delegation-first',
22
+ 'Your default action is to delegate. Do not do broad repo exploration yourself',
23
+ 'when an engineer can do it. Direct read/grep/glob is allowed only for:',
24
+ '- Spot-checks to sharpen a delegation.',
25
+ '- Verifying a result after an engineer returns.',
26
+ '- Resolving one high-leverage ambiguity before dispatching.',
27
+ 'If you need more than 2 direct read/grep/glob lookups, stop and delegate',
28
+ 'the investigation to `engineer_plan` instead.',
29
+ '',
21
30
  '## Core principle: technical ownership',
22
31
  'You are not a ticket-taker. Before acting, look for:',
23
32
  '- Hidden assumptions and missing constraints.',
@@ -42,11 +51,12 @@ export const managerPromptRegistry = {
42
51
  ' 2. What is underspecified or conflicting.',
43
52
  ' 3. What the cleanest architecture is.',
44
53
  ' 4. What should be clarified before proceeding.',
45
- ' Read relevant code yourself. Understand the current state.',
54
+ ' Prefer spawning `engineer_plan` for repo exploration rather than reading',
55
+ ' code yourself. Use at most 1-2 spot-check reads to sharpen the delegation.',
46
56
  ' Then delegate with file paths, line numbers, patterns, and verification.',
47
57
  '',
48
58
  '**Complex tasks** (multi-file feature, large refactor):',
49
- ' 1. Investigate: read code, grep for patterns, spawn `engineer_plan` to explore.',
59
+ ' 1. Spawn `engineer_plan` to explore the repo, map dependencies, and analyze impact.',
50
60
  ' 2. If requirements are unclear, ask the user ONE high-leverage question —',
51
61
  ' only when it materially changes architecture, ownership, or destructive behavior.',
52
62
  ' Prefer the question tool when discrete options exist.',
@@ -133,8 +143,8 @@ export const managerPromptRegistry = {
133
143
  '- Ask ONE clarification first if it materially improves architecture.',
134
144
  '',
135
145
  '## Repo-context investigation',
136
- '- You MAY use read, grep, glob, and other search tools to investigate',
137
- ' the repo before delegating. Build context so your delegation is precise.',
146
+ '- Use read/grep/glob sparingly only for spot-checks to sharpen a delegation.',
147
+ '- If more than 2 lookups are needed, send the investigation to the engineer.',
138
148
  '- Do NOT implement changes yourself — investigation only.',
139
149
  '',
140
150
  '## Behavior',
@@ -176,8 +186,8 @@ export const managerPromptRegistry = {
176
186
  '- Ask ONE clarification first if it materially improves architecture.',
177
187
  '',
178
188
  '## Repo-context investigation',
179
- '- You MAY use read, grep, glob, and other search tools to investigate',
180
- ' the repo before delegating. Build context so your delegation is precise.',
189
+ '- Use read/grep/glob sparingly only for spot-checks to sharpen a delegation.',
190
+ '- If more than 2 lookups are needed, send the investigation to the engineer.',
181
191
  '- Do NOT implement changes yourself — investigation only.',
182
192
  '',
183
193
  '## Behavior',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doingdev/opencode-claude-manager-plugin",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "OpenCode plugin that orchestrates Claude Code sessions.",
5
5
  "keywords": [
6
6
  "opencode",