claude-dev-env 1.88.0 → 1.88.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "1.88.0",
3
+ "version": "1.88.1",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,16 +2,16 @@
2
2
  name: advisor
3
3
  description: >-
4
4
  Turns the session into the advisor-orchestrator — the user's sole interface,
5
- which spawns and resumes executor subagents (clean-coder and the like) to do
6
- all the code editing and every build or test run. When an executor hits a
7
- blocker it consults the advisor, which replies with one of three brief
8
- signals — a plan, a correction, or a stop. The advisor orchestrates and
9
- advises but never edits code or runs tests itself. Caps consultations per
10
- task (default 5), reuses warm agents before spawning new ones, and
11
- re-asserts the discipline every 20 minutes through the /advisor-refresh
5
+ which routes execution through workflow-backed agent spawns with the required
6
+ agent type and model for each work category. Executors do the code editing,
7
+ verification, script driving, PR descriptions, and searches; the advisor
8
+ answers blockers with one of three brief signals — a plan, a correction, or
9
+ a stop. The advisor never edits code or runs tests itself. Caps consultations
10
+ per task (default 5), reuses warm workflow agents before spawning new ones,
11
+ and re-asserts the discipline every 20 minutes through the /advisor-refresh
12
12
  loop. Adapts Anthropic's advisor strategy to Claude Code. Triggers:
13
13
  '/advisor', 'advisor strategy', 'run with an advisor', 'executor-advisor
14
- mode'.
14
+ mode', 'advisor enforcement', 'agent routing'.
15
15
  ---
16
16
 
17
17
  # Advisor Strategy
@@ -47,6 +47,12 @@ per task) — the same guard the API's `max_uses` gives a tool.
47
47
  itself, the pairing breaks and the executor's warm context is wasted. Hand
48
48
  every code edit and every build or test run to an executor; keep the
49
49
  advisor's own tool use to orchestration and light verification reads.
50
+ - **Flat ad hoc spawns bypass routing.** Every execution task goes through a
51
+ workflow-backed spawn or workflow resume so the required agent type, model,
52
+ prompt packet, and sidecar metadata stay attached to the work.
53
+ - **Wrong agent or model is an enforcement failure.** If a task category maps
54
+ to `clean-coder` on `opus`, a `general-purpose` Sonnet spawn is not a cost
55
+ optimization; it is the wrong executor for the contract.
50
56
  - **Resuming an unnamed background agent needs its agentId.** A background
51
57
  spawn returns an `agentId` (format `a...-...`); keep it so `SendMessage` can
52
58
  reach that agent later. A named agent is reachable by name.
@@ -70,10 +76,40 @@ per task) — the same guard the API's `max_uses` gives a tool.
70
76
  enforcement surface: each firing re-asserts the discipline while the run is
71
77
  in flight.
72
78
 
73
- 3. **Orchestrate the task.** Hold the plan and the user conversation. Spawn or
74
- resume executor subagents (for example `clean-coder`) to do every code edit
75
- and every build or test run, and keep driving while they work. Your own
76
- tool use stays orchestration and light verification reads. Keep your task list updated religiously.
79
+ 3. **Orchestrate the task.** Hold the plan and the user conversation. Execute
80
+ workflow-backed spawns or resumes using the routing table below, and keep
81
+ driving while they work. Your own tool use stays orchestration and light
82
+ verification reads. Keep your task list updated religiously.
83
+
84
+ ## Workflow Agent Routing
85
+
86
+ Every delegated task runs through a workflow-backed agent invocation. Do not
87
+ spawn a flat subagent directly when a workflow invocation or workflow resume is
88
+ available.
89
+
90
+ | Work | Agent type | Model |
91
+ |---|---|---|
92
+ | Feature, bug, and refactor coding | `clean-coder` | `opus` |
93
+ | Verification passes | `code-verifier` | `opus` |
94
+ | Script runs, GitHub posting, and backfill driving | `general-purpose` runner | `sonnet` |
95
+ | PR descriptions | `pr-description-writer` | `sonnet`, with file-list grounding check |
96
+ | Fan-out searches and checklist verification reads | `Explore` | `haiku`; use `sonnet` when judgment-heavy |
97
+ | Escalated blockers, plan-level design, and advisor signals | `code-advisor` or this session | Fable preferred; opus if fable is unavailable. |
98
+
99
+ Routing rules:
100
+
101
+ - Use a workflow invocation or resume for each row above. The workflow prompt
102
+ must name the selected agent type, model, work category, task scope, and
103
+ expected output.
104
+ - Resume a warm workflow agent before creating a new workflow run when the warm
105
+ agent holds the relevant context.
106
+ - `clean-coder` owns code edits. `code-verifier` owns verification. The same
107
+ workflow agent never grades work it wrote.
108
+ - PR-description workflows include the actual changed-file list in the prompt
109
+ and verify the final body against that file list before posting or returning
110
+ it.
111
+ - Exploration workflows return file paths, line numbers, and direct evidence;
112
+ they do not write code or mutate repo state.
77
113
 
78
114
  4. **Executors consult at a hard decision.** Each executor's spawn prompt tells
79
115
  it to stop and message you — with the task, what it tried, and the exact
@@ -110,17 +146,17 @@ per task) — the same guard the API's `max_uses` gives a tool.
110
146
  every retry, so the server treats the retries as one request.
111
147
  ```
112
148
 
113
- For a decision the advisor itself cannot settle, it may spawn the tool-less
114
- `code-advisor` agent for a second opinion — an optional escalation, not a
115
- required step.
149
+ For a decision the advisor itself cannot settle, it may use a workflow
150
+ escalation to the tool-less `code-advisor` agent for a second opinion — an
151
+ optional escalation, not a required step.
116
152
 
117
153
  ## Agent reuse (non-negotiable)
118
154
 
119
155
  - **Resume before you spawn, always.** A warm agent carries its context and
120
156
  cached tokens; a fresh spawn starts cold and pays to rebuild both.
121
- `SendMessage` with an agent's name or `agentId` resumes a running or a
122
- completed agent with its context intact verified live in this environment.
123
- Prefer that path every time an existing agent holds relevant context.
157
+ Resume the existing workflow agent by name or `agentId` when it holds
158
+ relevant context. Prefer that path every time an existing workflow agent
159
+ matches the routing table.
124
160
  - **Spawn a fresh agent only when** no existing agent holds relevant context,
125
161
  or a genuine task switch needs a clean context.
126
162
  - **Name the agent to resume.** When you answer with a PLAN and a warm agent
@@ -132,6 +168,18 @@ per task) — the same guard the API's `max_uses` gives a tool.
132
168
  loop.
133
169
  - The advisor orchestrates and advises but never edits code or runs a build or
134
170
  test itself — executors do that.
171
+ - Delegated execution uses workflow-backed agent invocations and follows the
172
+ Workflow Agent Routing table exactly.
135
173
  - Consultations are capped at five per task by default. At the cap, re-scope
136
174
  or hand off; do not keep answering.
137
175
  - Reuse a warm agent over a cold spawn whenever one holds relevant context.
176
+
177
+ ## File Index
178
+
179
+ | File | Purpose |
180
+ |---|---|
181
+ | `SKILL.md` | Advisor strategy, workflow routing contract, consultation protocol, reuse rules, and constraints. |
182
+
183
+ ## Folder Map
184
+
185
+ - `SKILL.md` — complete advisor workflow instructions.