agent-orchestrator-kit 0.1.13 → 0.2.0
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 +16 -0
- package/README.md +18 -11
- package/bin/agent-orchestrator.js +558 -2
- package/package.json +2 -2
- package/profiles/generic/orchestrator.yaml +3 -0
- package/profiles/mvp/orchestrator.yaml +3 -0
- package/profiles/node/orchestrator.yaml +3 -0
- package/profiles/vue3/orchestrator.yaml +3 -0
- package/templates/.agents/amp.settings.json.example +2 -5
- package/templates/.agents/commands/opsx-apply.md +10 -3
- package/templates/.agents/commands/opsx-archive.md +10 -3
- package/templates/.agents/commands/opsx-design.md +10 -3
- package/templates/.agents/commands/opsx-explore.md +10 -3
- package/templates/.agents/commands/opsx-propose.md +10 -3
- package/templates/.agents/commands/opsx-quick.md +10 -3
- package/templates/.agents/commands/opsx-review.md +10 -3
- package/templates/.agents/mcp.json.example +2 -5
- package/templates/.agents/rules/agent-orchestration.mdc +28 -68
- package/templates/.agents/rules/cli-via-npm.mdc +2 -1
- package/templates/.agents/rules/figma-token-setup.mdc +1 -1
- package/templates/.agents/rules/memory-mcp-autosetup.mdc +4 -54
- package/templates/.agents/rules/session-handoff.mdc +28 -0
- package/templates/.agents/skills/agent-orchestration/SKILL.md +36 -19
- package/templates/.agents/subagents/session-handoff.md +48 -0
- package/templates/.agents/subagents/setup-doctor.md +1 -1
- package/templates/AGENTS.md +22 -119
- package/templates/CLAUDE.md +6 -65
- package/templates/orchestrator.yaml +6 -0
- package/templates/scripts/memory-mcp-launcher.cjs +46 -0
- package/templates/scripts/sync-local-agent-skills.sh +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
### Changed
|
|
8
|
+
- **Context budget** — thinned always-apply rules and `AGENTS.md` / `CLAUDE.md`; details stay in on-demand skills. `figma-token-setup.mdc` is no longer `alwaysApply`. Restore spawn of `session-handoff` is skipped when `handoff --restore` already printed a briefing.
|
|
9
|
+
|
|
10
|
+
## [0.1.14] - 2026-08-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **`session-handoff` subagent** — mandatory restore at session start and persist at session exit (Amp: isolated `subagent-session-handoff`)
|
|
14
|
+
- **`npx agent-orchestrator-kit handoff <name>`** — validates `handoff.md`, upserts `.cursor/memory.json` with an absolute path, prints an expanded self-contained next-thread prompt in `project.agent_language`
|
|
15
|
+
- **`npx agent-orchestrator-kit memory-setup`** — installs `scripts/memory-mcp-launcher.cjs` and rewrites Cursor/Amp Memory MCP away from relative `MEMORY_FILE_PATH`
|
|
16
|
+
- Always-apply rule `.agents/rules/session-handoff.mdc` with HARD STOP gates Amp cannot treat as optional
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- Next-session prompt is now a full operating brief (Done, Decisions, Blocked, attach, which subagent to spawn, Amp isolation, exit HARD STOP) so the next thread works even if Memory MCP is ignored
|
|
20
|
+
- Amp `subagent-*` wrappers require STOP if spawn is unavailable instead of running specialist work in the main thread
|
|
21
|
+
- Memory MCP examples and init/sync use the launcher instead of `npx` + relative path
|
|
22
|
+
|
|
7
23
|
## [0.1.13] - 2026-08-13
|
|
8
24
|
|
|
9
25
|
### Added
|
package/README.md
CHANGED
|
@@ -32,12 +32,14 @@ Each role runs in a **separate agent session**. The parent `/opsx:*` session is
|
|
|
32
32
|
| `spec-architect` | Proposal, design, delta specs, and tasks |
|
|
33
33
|
| `spec-reviewer` | Pre-apply artifact gate + `review.md` |
|
|
34
34
|
| `spec-archiver` | Delta merge and completed-change archive |
|
|
35
|
+
| `session-handoff` | Restore/persist Memory + `handoff.md` + expanded next-thread prompt |
|
|
35
36
|
|
|
36
37
|
The conductor uses one exclusive route per signal:
|
|
37
38
|
|
|
38
39
|
| Phase / signal | Subagent |
|
|
39
40
|
|----------------|----------|
|
|
40
41
|
| Status / gates / next command | `openspec-guide` |
|
|
42
|
+
| Session start restore / session exit persist | `session-handoff` |
|
|
41
43
|
| Kit / MCP / sync repair | `setup-doctor` |
|
|
42
44
|
| Explore repository research | `codebase-explorer` |
|
|
43
45
|
| Design / propose / spec review | `design-intake` / `spec-architect` / `spec-reviewer` |
|
|
@@ -71,7 +73,7 @@ npx agent-orchestrator-kit@latest init --profile generic --ci gitlab --spec-veri
|
|
|
71
73
|
|
|
72
74
|
See [Installation](#installation) for profile/CI options.
|
|
73
75
|
|
|
74
|
-
**🔄 Already have the kit installed? Upgrade to latest (
|
|
76
|
+
**🔄 Already have the kit installed? Upgrade to latest (hardened handoff CLI + Memory launcher in v0.1.14+, conductor in v0.1.13+, Figma PAT in v0.1.11+):**
|
|
75
77
|
|
|
76
78
|
```bash
|
|
77
79
|
npx agent-orchestrator-kit@latest update
|
|
@@ -164,7 +166,7 @@ your-project/
|
|
|
164
166
|
│ ├── amp.settings.json.example # Amp MCP template
|
|
165
167
|
│ ├── commands/ # /opsx:* role commands
|
|
166
168
|
│ ├── rules/ # auto-applied orchestration rules
|
|
167
|
-
│ ├── subagents/ #
|
|
169
|
+
│ ├── subagents/ # 12 stage/custom subagents (Cursor/Claude/Amp)
|
|
168
170
|
│ └── skills/
|
|
169
171
|
│ ├── agent-orchestration/ # Pipeline orchestration
|
|
170
172
|
│ ├── openspec-howto/
|
|
@@ -185,8 +187,8 @@ your-project/
|
|
|
185
187
|
| Orchestration | 5-role pipeline, `AGENTS.md`, `orchestrator.yaml`, review command |
|
|
186
188
|
| OpenSpec skills | All 7 skills for `/opsx:*` workflow |
|
|
187
189
|
| IDE sync | Cursor + Claude Code sync script (`--delete` semantics — removes stale skills/subagents) |
|
|
188
|
-
| Subagents |
|
|
189
|
-
| CLI gates | `npx agent-orchestrator-kit status` / `gate-check` — deterministic review-gate
|
|
190
|
+
| Subagents | 12 exclusive routes: guide/setup/session-handoff, explore/design/propose/review/archive stage agents, and apply implementation/test/code-review agents — native in Cursor + Claude Code, isolated Amp `subagent-*` wrappers |
|
|
191
|
+
| CLI gates | `npx agent-orchestrator-kit status` / `gate-check` / `handoff` / `memory-setup` — deterministic review-gate and session-handoff (always via `npx`; see `cli-via-npm.mdc`) |
|
|
190
192
|
| CI | `agent-verify.yml` — GitHub (default) or GitLab fragment + `prebuild` hook, both run `gate-check` |
|
|
191
193
|
| AI Spec Verifier | `spec-verify.yml` + verifier scripts — GitLab or GitHub, opt-in (`--spec-verify`) |
|
|
192
194
|
| MCP templates | Memory MCP for Cursor and Amp |
|
|
@@ -278,7 +280,7 @@ You can add `context: fork` to explore/review skills for isolated subagent sessi
|
|
|
278
280
|
2. Creates:
|
|
279
281
|
- `.cursor/skills/` — all skills
|
|
280
282
|
- `.cursor/rules/` — `.mdc` rule files
|
|
281
|
-
- `.cursor/agents/` — all
|
|
283
|
+
- `.cursor/agents/` — all 12 custom/stage subagents
|
|
282
284
|
- `.mcp.json` — from `mcp.json.example` (if not present)
|
|
283
285
|
3. Rules are applied automatically per `alwaysApply: true`.
|
|
284
286
|
4. `/opsx:*` sessions use the mandatory conductor routing table to spawn subagents. Add project-specific subagents in `.agents/subagents/`, add an exclusive route, and re-run sync.
|
|
@@ -289,9 +291,8 @@ You can add `context: fork` to explore/review skills for isolated subagent sessi
|
|
|
289
291
|
{
|
|
290
292
|
"mcpServers": {
|
|
291
293
|
"memory": {
|
|
292
|
-
"command": "
|
|
293
|
-
"args": ["
|
|
294
|
-
"env": { "MEMORY_FILE_PATH": ".cursor/memory.json" }
|
|
294
|
+
"command": "node",
|
|
295
|
+
"args": ["scripts/memory-mcp-launcher.cjs"]
|
|
295
296
|
},
|
|
296
297
|
"figma": {
|
|
297
298
|
"command": "node",
|
|
@@ -673,7 +674,7 @@ Handoff:add-bulk-export next_role: implementer, next_command: /opsx:apply add
|
|
|
673
674
|
session_count: 2, summary: ..., blocked: none
|
|
674
675
|
```
|
|
675
676
|
|
|
676
|
-
Every `/opsx:*` session
|
|
677
|
+
Every `/opsx:*` session restores via `npx agent-orchestrator-kit handoff --restore`, then Memory `Change:<name>`, `Handoff:<name>`, `Decision:*`, falling back to `handoff.md` if Memory is unavailable. At exit it MUST spawn `session-handoff`, write `handoff.md`, run `npx agent-orchestrator-kit handoff <name>` (upserts `.cursor/memory.json` with an absolute path), and paste the CLI stdout prompt. The prompt is self-contained — Amp often skips Memory MCP, so the next thread must be able to work from the pasted text alone. Never configure Memory with a relative `MEMORY_FILE_PATH`; use `scripts/memory-mcp-launcher.cjs` (`npx agent-orchestrator-kit memory-setup`). The next phase always starts in a new chat.
|
|
677
678
|
|
|
678
679
|
## Amp Code — Deep Integration Notes
|
|
679
680
|
|
|
@@ -697,8 +698,8 @@ name: subagent-codebase-explorer
|
|
|
697
698
|
description: Read-only repository research specialist...
|
|
698
699
|
---
|
|
699
700
|
|
|
700
|
-
Parent MUST spawn this skill as an isolated subagent with fresh context.
|
|
701
|
-
Do not execute it in the main thread.
|
|
701
|
+
CRITICAL (Amp / Cursor / Claude): Parent MUST spawn this skill as an isolated subagent with fresh context.
|
|
702
|
+
Do not execute it in the main thread. If spawn is unavailable, STOP and report blocked.
|
|
702
703
|
```
|
|
703
704
|
|
|
704
705
|
The conductor invokes the wrapper in isolation and consumes only its structured report.
|
|
@@ -775,6 +776,12 @@ openspec/ # Committed — spec-driven workflow
|
|
|
775
776
|
|
|
776
777
|
## Changelog
|
|
777
778
|
|
|
779
|
+
### 0.1.14
|
|
780
|
+
- **HARD STOP session handoff** — `session-handoff` subagent at start/exit; Amp isolated `subagent-session-handoff`
|
|
781
|
+
- **`handoff` CLI** — writes `handoff.md`, upserts `.cursor/memory.json` with an absolute path, prints an expanded self-contained next-thread prompt
|
|
782
|
+
- **`memory-setup` + `memory-mcp-launcher.cjs`** — never a relative `MEMORY_FILE_PATH` (Amp was reading the wrong graph)
|
|
783
|
+
- Next-thread prompt includes role, spawn instructions, Done/Decisions/Blocked, and exit HARD STOP
|
|
784
|
+
|
|
778
785
|
### 0.1.13
|
|
779
786
|
- Pipeline **conductor**: `/opsx:*` parent spawns the routed specialist and does not do that work itself
|
|
780
787
|
- Five new stage subagents: `codebase-explorer`, `design-intake`, `spec-architect`, `spec-reviewer`, `spec-archiver`
|