@laitszkin/apollo-toolkit 3.6.2 → 3.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/CHANGELOG.md +5 -0
- package/analyse-app-logs/scripts/__pycache__/filter_logs_by_time.cpython-312.pyc +0 -0
- package/analyse-app-logs/scripts/__pycache__/log_cli_utils.cpython-312.pyc +0 -0
- package/analyse-app-logs/scripts/__pycache__/search_logs.cpython-312.pyc +0 -0
- package/docs-to-voice/scripts/__pycache__/docs_to_voice.cpython-312.pyc +0 -0
- package/generate-spec/scripts/__pycache__/create-specscpython-312.pyc +0 -0
- package/implement-specs-with-subagents/SKILL.md +69 -27
- package/implement-specs-with-subagents/agents/openai.yaml +1 -1
- package/katex/scripts/__pycache__/render_katex.cpython-312.pyc +0 -0
- package/open-github-issue/scripts/__pycache__/open_github_issue.cpython-312.pyc +0 -0
- package/package.json +1 -1
- package/read-github-issue/scripts/__pycache__/find_issues.cpython-312.pyc +0 -0
- package/read-github-issue/scripts/__pycache__/read_issue.cpython-312.pyc +0 -0
- package/resolve-review-comments/scripts/__pycache__/review_threads.cpython-312.pyc +0 -0
- package/text-to-short-video/scripts/__pycache__/enforce_video_aspect_ratio.cpython-312.pyc +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ All notable changes to this repository are documented in this file.
|
|
|
7
7
|
### Added
|
|
8
8
|
- (None yet)
|
|
9
9
|
|
|
10
|
+
## [v3.6.3] - 2026-04-28
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Extend `implement-specs-with-subagents` with multi-phase execution: analyse spec dependencies from `coordination.md`, build phased delegation plans via topological sort, execute phases sequentially with parallel subagents per phase, and merge completed spec branches back via `merge-changes-from-local-branches` between phases.
|
|
14
|
+
|
|
10
15
|
## [v3.6.2] - 2026-04-28
|
|
11
16
|
|
|
12
17
|
### Changed
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,33 +3,38 @@ name: implement-specs-with-subagents
|
|
|
3
3
|
description: >-
|
|
4
4
|
Coordinate parallel implementation of multiple approved spec sets by assigning
|
|
5
5
|
each `docs/plans/.../<change_name>/` spec directory to a separate subagent that
|
|
6
|
-
uses `implement-specs-with-worktree`.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
uses `implement-specs-with-worktree`. Supports multi-phase execution for
|
|
7
|
+
interdependent specs: analyse dependencies, implement base specs first, merge
|
|
8
|
+
back via `merge-changes-from-local-branches`, then implement dependent specs,
|
|
9
|
+
and finally submit with commit, push, and patch version bump. Use when a user
|
|
10
|
+
asks to implement a multi-spec batch with subagents, parallel agents, delegated
|
|
11
|
+
agents, or isolated workers while completing any explicitly documented shared
|
|
12
|
+
prerequisite work before delegation, keeping at most four implementation
|
|
13
|
+
subagents active at once, staggering starts to avoid rate-limit bursts,
|
|
14
|
+
preserving independent subagent contexts, and using the user's requested model
|
|
15
|
+
when specified.
|
|
12
16
|
---
|
|
13
17
|
|
|
14
|
-
# Implement Specs with Subagents
|
|
18
|
+
# Implement Specs with Subagents (Multi-Phase)
|
|
15
19
|
|
|
16
20
|
## Dependencies
|
|
17
21
|
|
|
18
22
|
- Required: `implement-specs-with-worktree` for each delegated spec implementation.
|
|
23
|
+
- Required: `merge-changes-from-local-branches` for merging worktree branches back between phases.
|
|
19
24
|
- Conditional: `generate-spec` if the batch needs clarification before implementation; `review-change-set` if the user asks for an integration review after subagents finish.
|
|
20
25
|
- Optional: none.
|
|
21
26
|
- Fallback: If the environment cannot start independent subagents, report that limitation and fall back only if the user explicitly approves serial `implement-specs-with-worktree` execution.
|
|
22
27
|
|
|
23
28
|
## Standards
|
|
24
29
|
|
|
25
|
-
- Evidence: Read the batch-level `coordination.md` and `preparation.md` when present, enumerate the exact spec directories to implement, verify each delegated spec has the required planning files, and identify any explicit prerequisite notes before starting subagents.
|
|
26
|
-
- Execution: Complete and commit explicitly documented prerequisite preparation on the working branch before delegation,
|
|
30
|
+
- Evidence: Read the batch-level `coordination.md` and `preparation.md` when present, enumerate the exact spec directories to implement, verify each delegated spec has the required planning files, and identify any explicit prerequisite or dependency notes before starting subagents.
|
|
31
|
+
- Execution: Complete and commit explicitly documented prerequisite preparation on the working branch before delegation. Analyse spec dependencies from `coordination.md` and spec docs to build a multi-phase plan. For each phase, assign exactly one implementation subagent per spec directory, keep no more than four implementation subagents active at the same time, start subagents one at a time rather than in a burst, give each subagent an independent task-local context, and instruct every subagent to use `implement-specs-with-worktree` for its assigned spec. After each phase completes, use `merge-changes-from-local-branches` to merge all phase branches back before launching the next phase.
|
|
27
32
|
- Quality: Preserve spec ownership boundaries, avoid duplicate delegation for the same spec, ensure subagents branch from a baseline that includes prerequisite commits, track branch/worktree/commit/test outcomes for every subagent, and pause new launches when a shared blocker, collision, or rate-limit pressure appears.
|
|
28
|
-
- Output: Return a concise implementation ledger covering each spec, its subagent result, worktree branch, commit or blocker, verification run, and
|
|
33
|
+
- Output: Return a concise implementation ledger covering each spec, its subagent result, worktree branch, commit or blocker, verification run, and the merge outcome.
|
|
29
34
|
|
|
30
35
|
## Goal
|
|
31
36
|
|
|
32
|
-
Coordinate a multi-spec implementation batch safely by delegating each approved spec set to an isolated subagent-backed worktree implementation.
|
|
37
|
+
Coordinate a multi-spec implementation batch safely by delegating each approved spec set to an isolated subagent-backed worktree implementation, handling interdependent specs through phased execution.
|
|
33
38
|
|
|
34
39
|
## Workflow
|
|
35
40
|
|
|
@@ -61,15 +66,37 @@ Coordinate a multi-spec implementation batch safely by delegating each approved
|
|
|
61
66
|
- Do not start implementation subagents until the preparation commit exists and the working branch is clean.
|
|
62
67
|
- If preparation cannot be completed or verified, stop and report the blocker instead of launching subagents.
|
|
63
68
|
|
|
64
|
-
### 2)
|
|
69
|
+
### 2) Analyse spec dependencies
|
|
65
70
|
|
|
66
|
-
-
|
|
71
|
+
- Read each in-scope spec's `spec.md` and `design.md` to identify explicit references to other in-scope specs.
|
|
72
|
+
- Read `coordination.md` for any documented dependency ordering between specs (e.g. "spec A must be implemented before spec B").
|
|
73
|
+
- For each spec dependency found, determine which specs are **base specs** (depended upon by others) and which are **dependent specs** (depend on base specs).
|
|
74
|
+
- If a spec both depends on others and is depended upon, it belongs to its own middle phase.
|
|
75
|
+
- If no dependencies exist between any specs, all specs can run in a single parallel phase.
|
|
76
|
+
- Build a dependency graph and record it in the ledger:
|
|
77
|
+
- spec path
|
|
78
|
+
- phase number (starting from 1)
|
|
79
|
+
- depends-on (list of spec paths)
|
|
80
|
+
- depended-by (list of spec paths)
|
|
81
|
+
- If the dependency graph contains a cycle, stop and report the cycle instead of proceeding.
|
|
82
|
+
|
|
83
|
+
### 3) Build a multi-phase delegation plan
|
|
84
|
+
|
|
85
|
+
- Group specs into ordered phases based on the dependency graph (topological sort order):
|
|
86
|
+
- **Phase 1**: Base specs with no in-batch dependencies (depended upon by others).
|
|
87
|
+
- **Phase N**: Specs whose dependencies are all satisfied by earlier phases.
|
|
88
|
+
- **Final Phase**: Specs with no dependents (leaf specs).
|
|
89
|
+
- Each phase must have all its dependencies satisfied by earlier phases before it can start.
|
|
90
|
+
- Within each phase, specs are independent and can run in parallel.
|
|
91
|
+
- Create one queue item per spec directory per phase.
|
|
67
92
|
- Assign one subagent to one spec only; never ask one subagent to implement multiple spec directories.
|
|
68
93
|
- Keep a visible ledger with:
|
|
69
94
|
- spec path
|
|
95
|
+
- phase number
|
|
96
|
+
- depends-on
|
|
70
97
|
- intended branch/worktree name if known
|
|
71
98
|
- assigned subagent
|
|
72
|
-
- status
|
|
99
|
+
- status (pending / in-progress / merged / blocked)
|
|
73
100
|
- commit
|
|
74
101
|
- tests
|
|
75
102
|
- blockers
|
|
@@ -79,7 +106,11 @@ Coordinate a multi-spec implementation batch safely by delegating each approved
|
|
|
79
106
|
- If the user does not specify a model, let subagents use the same model or default model policy as the coordinating agent.
|
|
80
107
|
- If the environment does not expose model selection, state that the requested model cannot be enforced and continue only when the platform's default subagent model is acceptable.
|
|
81
108
|
|
|
82
|
-
###
|
|
109
|
+
### 4) Execute phases sequentially
|
|
110
|
+
|
|
111
|
+
For each phase in order (Phase 1, Phase 2, ... Final Phase):
|
|
112
|
+
|
|
113
|
+
#### 4.1) Launch subagents for this phase
|
|
83
114
|
|
|
84
115
|
- Maintain a maximum of four active implementation subagents at any time.
|
|
85
116
|
- Start subagents independently and one at a time.
|
|
@@ -87,7 +118,7 @@ Coordinate a multi-spec implementation batch safely by delegating each approved
|
|
|
87
118
|
- If a start fails due to throttling, rate limits, capacity, or platform pressure, wait before retrying and do not start additional subagents during the cooldown.
|
|
88
119
|
- Prefer steady scheduling over maximum burst parallelism; four is the ceiling, not a target that must always be filled.
|
|
89
120
|
|
|
90
|
-
|
|
121
|
+
#### 4.2) Give each subagent independent context
|
|
91
122
|
|
|
92
123
|
For each subagent, provide only task-local instructions:
|
|
93
124
|
|
|
@@ -105,31 +136,40 @@ For each subagent, provide only task-local instructions:
|
|
|
105
136
|
|
|
106
137
|
Do not pass the coordinating agent's full reasoning, unrelated sibling specs, or other subagents' private work unless a concrete coordination conflict requires it.
|
|
107
138
|
|
|
108
|
-
|
|
139
|
+
#### 4.3) Monitor and coordinate
|
|
109
140
|
|
|
110
141
|
- While subagents run, track completions and blockers in the ledger.
|
|
111
142
|
- When one subagent finishes, record its branch, worktree path, commit, verification results, and changed ownership boundaries.
|
|
112
|
-
- Start the next queued spec only when the active count drops below four and no shared blocker is unresolved.
|
|
143
|
+
- Start the next queued spec for this phase only when the active count drops below four and no shared blocker is unresolved.
|
|
113
144
|
- If two subagents report overlapping edits to a shared file or contract, pause new launches, inspect the conflict against `coordination.md`, and resolve the ownership question before continuing.
|
|
114
|
-
- If a subagent fails for a spec-local issue, keep other independent subagents running, but do not launch additional work that depends on the failed scope.
|
|
145
|
+
- If a subagent fails for a spec-local issue, keep other independent subagents in the same phase running, but do not launch additional work that depends on the failed scope.
|
|
115
146
|
- If failures indicate a batch-wide planning defect, stop scheduling new subagents and report the defect.
|
|
147
|
+
- If all specs in the current phase are completed (or blocked), proceed to the merge step.
|
|
116
148
|
|
|
117
|
-
|
|
149
|
+
#### 4.4) Merge phase branches back
|
|
118
150
|
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
151
|
+
- After all subagents in the current phase complete, use `merge-changes-from-local-branches` to merge each completed spec's worktree branch back into the current working branch.
|
|
152
|
+
- For each successful spec in the phase:
|
|
153
|
+
- Identify the branch name from the ledger.
|
|
154
|
+
- Merge the branch using `merge-changes-from-local-branches`.
|
|
155
|
+
- Resolve any merge conflicts that arise, prioritising correctness from the spec contracts.
|
|
156
|
+
- Verify the working branch is clean and tests still pass after merging.
|
|
157
|
+
- Record the merge outcome in the ledger (success / conflicts / blockers).
|
|
158
|
+
- If a merge fails and cannot be resolved, stop and report the merge blocker before proceeding to the next phase.
|
|
159
|
+
- Once merged, the current working branch now includes all changes from this phase, making them available as a baseline for dependent specs in later phases.
|
|
123
160
|
|
|
124
161
|
## Working Rules
|
|
125
162
|
|
|
126
163
|
- One spec directory maps to one implementation subagent.
|
|
127
164
|
- Explicitly documented prerequisite preparation is completed, verified, and committed by the coordinating agent before any implementation subagent starts.
|
|
128
|
-
-
|
|
165
|
+
- Spec dependencies are analysed before delegation to determine phase ordering.
|
|
166
|
+
- Phases execute sequentially; within a phase, specs are independent and run in parallel.
|
|
167
|
+
- Maximum active implementation subagents per phase: four.
|
|
129
168
|
- Subagents must be started gradually, not all at once.
|
|
130
169
|
- Every subagent must have independent context scoped to its assigned spec.
|
|
131
170
|
- Every implementation subagent must use `implement-specs-with-worktree`.
|
|
132
|
-
-
|
|
171
|
+
- After each phase, `merge-changes-from-local-branches` merges all completed spec branches back into the working branch.
|
|
172
|
+
- The coordinating agent owns scheduling, ledger tracking, dependency analysis, inter-phase merging, and conflict escalation; implementation subagents own their assigned worktree commits.
|
|
133
173
|
- The coordinating agent owns shared prerequisite commits; implementation subagents must not redo or overlap that preparation unless the preparation commit is missing or invalid.
|
|
134
174
|
- User-specified subagent model choices should be honored when supported; otherwise inherit the coordinating agent's model/default model policy.
|
|
135
175
|
- Do not use this skill for a single spec unless the user explicitly wants subagent delegation.
|
|
@@ -137,6 +177,8 @@ Do not pass the coordinating agent's full reasoning, unrelated sibling specs, or
|
|
|
137
177
|
## References
|
|
138
178
|
|
|
139
179
|
- `implement-specs-with-worktree`: required per-spec worktree implementation workflow.
|
|
180
|
+
- `merge-changes-from-local-branches`: required for merging worktree branches back between phases.
|
|
140
181
|
- `generate-spec`: clarification and planning repair workflow when a batch is not ready for parallel implementation.
|
|
141
182
|
- `preparation.md`: optional batch-level prerequisite plan that must be completed before parallel subagent work starts.
|
|
142
|
-
- `
|
|
183
|
+
- `coordination.md`: batch-level coordination plan that may contain dependency ordering information.
|
|
184
|
+
- `review-change-set`: optional post-implementation review workflow before final submission.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Implement Specs with Subagents"
|
|
3
3
|
short_description: "Coordinate parallel spec worktree implementations"
|
|
4
|
-
default_prompt: "Use $implement-specs-with-subagents to read coordination.md and any preparation.md first, complete and commit explicitly documented prerequisite preparation on the working branch before delegation,
|
|
4
|
+
default_prompt: "Use $implement-specs-with-subagents to read coordination.md and any preparation.md first, complete and commit explicitly documented prerequisite preparation on the working branch before delegation, analyse spec dependencies to build a multi-phase plan, for each phase assign each approved docs/plans spec directory to one independent subagent that uses $implement-specs-with-worktree, launch at most four implementation subagents at once with staggered starts, after each phase use $merge-changes-from-local-branches to merge completed spec branches back into the working branch before launching the next phase, honor any requested model when supported, and track each branch, commit, test result, and blocker."
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|