ace-swarm 1.1.0 → 1.1.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/README.md +130 -58
- package/assets/.agents/ACE/ACE-Init/AGENTS.md +130 -195
- package/assets/.agents/ACE/ACE-Init/instructions.md +81 -140
- package/assets/.agents/ACE/ACE_coders/AGENTS.md +97 -40
- package/assets/.agents/ACE/ACE_coders/INSTRUCTIONS.md +88 -18
- package/assets/.agents/ACE/AGENT_REGISTRY.md +64 -0
- package/assets/.agents/ACE/AGENT_REGISTRY_7.md +9 -0
- package/assets/.agents/ACE/DIRECTIVE_KERNEL.md +234 -0
- package/assets/.agents/ACE/VOS/ACE_VOS_MISSING_INFO_MATRIX.md +42 -0
- package/assets/.agents/ACE/agent-astgrep/AGENTS.md +123 -0
- package/assets/.agents/ACE/agent-astgrep/instructions.md +91 -0
- package/assets/.agents/ACE/agent-builder/AGENTS.md +172 -0
- package/assets/.agents/ACE/agent-builder/instructions.md +137 -0
- package/assets/.agents/ACE/agent-docs/AGENTS.md +159 -0
- package/assets/.agents/ACE/agent-docs/instructions.md +133 -0
- package/assets/.agents/ACE/agent-eval/AGENTS.md +46 -0
- package/assets/.agents/ACE/agent-eval/instructions.md +16 -0
- package/assets/.agents/ACE/agent-memory/AGENTS.md +49 -0
- package/assets/.agents/ACE/agent-memory/instructions.md +16 -0
- package/assets/.agents/ACE/agent-observability/AGENTS.md +46 -0
- package/assets/.agents/ACE/agent-observability/instructions.md +16 -0
- package/assets/.agents/ACE/agent-ops/AGENTS.md +201 -0
- package/assets/.agents/ACE/agent-ops/instructions.md +136 -0
- package/assets/.agents/ACE/agent-qa/AGENTS.md +189 -0
- package/assets/.agents/ACE/agent-qa/instructions.md +121 -0
- package/assets/.agents/ACE/agent-release/AGENTS.md +48 -0
- package/assets/.agents/ACE/agent-release/instructions.md +16 -0
- package/assets/.agents/ACE/agent-research/AGENTS.md +160 -0
- package/assets/.agents/ACE/agent-research/instructions.md +118 -0
- package/assets/.agents/ACE/agent-security/AGENTS.md +48 -0
- package/assets/.agents/ACE/agent-security/instructions.md +16 -0
- package/assets/.agents/ACE/agent-skeptic/AGENTS.md +178 -0
- package/assets/.agents/ACE/agent-skeptic/instructions.md +147 -0
- package/assets/.agents/ACE/agent-spec/AGENTS.md +169 -0
- package/assets/.agents/ACE/agent-spec/instructions.md +116 -0
- package/assets/.agents/ACE/orchestrator/AGENTS.md +354 -0
- package/assets/.agents/ACE/orchestrator/instructions.md +231 -0
- package/assets/.agents/skills/ace-orchestrator/SKILL.md +44 -1
- package/assets/.agents/skills/astgrep-index/SKILL.md +65 -0
- package/assets/.agents/skills/codemunch/SKILL.md +41 -0
- package/assets/.agents/skills/codesnipe/SKILL.md +42 -0
- package/assets/.agents/skills/eval-harness/SKILL.md +197 -0
- package/assets/.agents/skills/handoff-lint/SKILL.md +158 -0
- package/assets/.agents/skills/incident-commander/SKILL.md +168 -0
- package/assets/.agents/skills/memory-curator/SKILL.md +173 -0
- package/assets/.agents/skills/release-sentry/SKILL.md +183 -0
- package/assets/.agents/skills/risk-quant/SKILL.md +184 -0
- package/assets/.agents/skills/schema-forge/SKILL.md +168 -0
- package/assets/.agents/skills/state-auditor/SKILL.md +176 -0
- package/assets/agent-state/AST_GREP_COMMANDS.md +121 -0
- package/assets/agent-state/AST_GREP_INDEX.json +13 -0
- package/assets/agent-state/AST_GREP_INDEX.md +15 -0
- package/assets/agent-state/DECISIONS.md +1 -1
- package/assets/agent-state/EVIDENCE_LOG.md +2 -2
- package/assets/agent-state/HANDOFF.json +10 -10
- package/assets/agent-state/INTERFACE_REGISTRY.md +18 -0
- package/assets/agent-state/MODULES/gates/gate-autonomy.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-correctness.json +1 -1
- package/assets/agent-state/MODULES/gates/gate-evaluation.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-operability.json +7 -0
- package/assets/agent-state/MODULES/gates/gate-security.json +7 -0
- package/assets/agent-state/MODULES/registry.json +20 -2
- package/assets/agent-state/MODULES/roles/capability-astgrep.json +49 -0
- package/assets/agent-state/MODULES/roles/capability-build.json +23 -3
- package/assets/agent-state/MODULES/roles/capability-docs.json +22 -3
- package/assets/agent-state/MODULES/roles/capability-eval.json +20 -0
- package/assets/agent-state/MODULES/roles/capability-memory.json +20 -0
- package/assets/agent-state/MODULES/roles/capability-observability.json +20 -0
- package/assets/agent-state/MODULES/roles/capability-ops.json +32 -5
- package/assets/agent-state/MODULES/roles/capability-qa.json +24 -4
- package/assets/agent-state/MODULES/roles/capability-release.json +21 -0
- package/assets/agent-state/MODULES/roles/capability-research.json +30 -5
- package/assets/agent-state/MODULES/roles/capability-security.json +21 -0
- package/assets/agent-state/MODULES/roles/capability-skeptic.json +32 -4
- package/assets/agent-state/MODULES/roles/capability-spec.json +26 -2
- package/assets/agent-state/MODULES/schemas/ARTIFACT_MANIFEST.schema.json +62 -0
- package/assets/agent-state/MODULES/schemas/HANDOFF.agent-state.schema.json +124 -0
- package/assets/agent-state/MODULES/schemas/HANDOFF.schema.json +55 -0
- package/assets/agent-state/MODULES/schemas/STATUS_EVENT.schema.json +84 -0
- package/assets/agent-state/MODULES/schemas/SWARM_HANDOFF.schema.json +138 -0
- package/assets/agent-state/PROVENANCE_LOG.md +3 -0
- package/assets/agent-state/QUALITY_GATES.md +15 -0
- package/assets/agent-state/RISKS.md +6 -3
- package/assets/agent-state/SCOPE.md +12 -2
- package/assets/agent-state/STATUS.md +4 -2
- package/assets/agent-state/STATUS_EVENTS.ndjson +1 -0
- package/assets/agent-state/TASK.md +9 -7
- package/assets/agent-state/TEAL_CONFIG.md +91 -5
- package/assets/agent-state/handoff-registry.json +5 -0
- package/assets/agent-state/index-fingerprints.json +7 -0
- package/assets/agent-state/index.json +32 -0
- package/assets/agent-state/run-ledger.json +5 -0
- package/assets/agent-state/todo-state.json +7 -0
- package/assets/instructions/ACE.instructions.md +2 -2
- package/assets/scripts/bootstrap-workspace.sh +16 -0
- package/assets/scripts/eval-harness.sh +68 -0
- package/assets/scripts/render-mcp-configs.sh +57 -0
- package/assets/tasks/role_tasks.md +156 -0
- package/dist/astgrep-index.d.ts +24 -0
- package/dist/astgrep-index.d.ts.map +1 -0
- package/dist/astgrep-index.js +476 -0
- package/dist/astgrep-index.js.map +1 -0
- package/dist/cli.js +96 -3
- package/dist/cli.js.map +1 -1
- package/dist/git-ops.d.ts +53 -0
- package/dist/git-ops.d.ts.map +1 -0
- package/dist/git-ops.js +238 -0
- package/dist/git-ops.js.map +1 -0
- package/dist/handoff-registry.d.ts +71 -0
- package/dist/handoff-registry.d.ts.map +1 -0
- package/dist/handoff-registry.js +186 -0
- package/dist/handoff-registry.js.map +1 -0
- package/dist/helpers.d.ts +49 -5
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +513 -23
- package/dist/helpers.js.map +1 -1
- package/dist/index-store.d.ts +51 -0
- package/dist/index-store.d.ts.map +1 -0
- package/dist/index-store.js +328 -0
- package/dist/index-store.js.map +1 -0
- package/dist/kanban.d.ts +27 -0
- package/dist/kanban.d.ts.map +1 -0
- package/dist/kanban.js +339 -0
- package/dist/kanban.js.map +1 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +223 -23
- package/dist/prompts.js.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +195 -5
- package/dist/resources.js.map +1 -1
- package/dist/run-ledger.d.ts +36 -0
- package/dist/run-ledger.d.ts.map +1 -0
- package/dist/run-ledger.js +109 -0
- package/dist/run-ledger.js.map +1 -0
- package/dist/safe-edit.d.ts +52 -0
- package/dist/safe-edit.d.ts.map +1 -0
- package/dist/safe-edit.js +255 -0
- package/dist/safe-edit.js.map +1 -0
- package/dist/schemas.d.ts +36 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +359 -0
- package/dist/schemas.js.map +1 -0
- package/dist/semantic-cache.d.ts +147 -0
- package/dist/semantic-cache.d.ts.map +1 -0
- package/dist/semantic-cache.js +552 -0
- package/dist/semantic-cache.js.map +1 -0
- package/dist/semantic-hash.d.ts +83 -0
- package/dist/semantic-hash.d.ts.map +1 -0
- package/dist/semantic-hash.js +346 -0
- package/dist/semantic-hash.js.map +1 -0
- package/dist/shared.d.ts +103 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +235 -0
- package/dist/shared.js.map +1 -0
- package/dist/status-events.d.ts +39 -0
- package/dist/status-events.d.ts.map +1 -0
- package/dist/status-events.js +93 -0
- package/dist/status-events.js.map +1 -0
- package/dist/todo-state.d.ts +35 -0
- package/dist/todo-state.d.ts.map +1 -0
- package/dist/todo-state.js +298 -0
- package/dist/todo-state.js.map +1 -0
- package/dist/tools-agent.d.ts +6 -0
- package/dist/tools-agent.d.ts.map +1 -0
- package/dist/tools-agent.js +208 -0
- package/dist/tools-agent.js.map +1 -0
- package/dist/tools-discovery.d.ts +6 -0
- package/dist/tools-discovery.d.ts.map +1 -0
- package/dist/tools-discovery.js +178 -0
- package/dist/tools-discovery.js.map +1 -0
- package/dist/tools-drift.d.ts +13 -0
- package/dist/tools-drift.d.ts.map +1 -0
- package/dist/tools-drift.js +357 -0
- package/dist/tools-drift.js.map +1 -0
- package/dist/tools-files.d.ts +6 -0
- package/dist/tools-files.d.ts.map +1 -0
- package/dist/tools-files.js +432 -0
- package/dist/tools-files.js.map +1 -0
- package/dist/tools-framework.d.ts +7 -0
- package/dist/tools-framework.d.ts.map +1 -0
- package/dist/tools-framework.js +945 -0
- package/dist/tools-framework.js.map +1 -0
- package/dist/tools-git.d.ts +6 -0
- package/dist/tools-git.d.ts.map +1 -0
- package/dist/tools-git.js +183 -0
- package/dist/tools-git.js.map +1 -0
- package/dist/tools-handoff.d.ts +6 -0
- package/dist/tools-handoff.d.ts.map +1 -0
- package/dist/tools-handoff.js +322 -0
- package/dist/tools-handoff.js.map +1 -0
- package/dist/tools-lifecycle.d.ts +6 -0
- package/dist/tools-lifecycle.d.ts.map +1 -0
- package/dist/tools-lifecycle.js +205 -0
- package/dist/tools-lifecycle.js.map +1 -0
- package/dist/tools-memory.d.ts +6 -0
- package/dist/tools-memory.d.ts.map +1 -0
- package/dist/tools-memory.js +180 -0
- package/dist/tools-memory.js.map +1 -0
- package/dist/tools-todo.d.ts +6 -0
- package/dist/tools-todo.d.ts.map +1 -0
- package/dist/tools-todo.js +154 -0
- package/dist/tools-todo.js.map +1 -0
- package/dist/tools.d.ts +4 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +24 -596
- package/dist/tools.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# ACE Swarm MCP Server
|
|
2
2
|
|
|
3
|
-
ACE Swarm packages the ACE framework (agents, skills, prompts, tasks, handoffs, and state scaffolding) as an MCP server and CLI.
|
|
3
|
+
ACE Swarm packages the ACE framework (agents, skills, schemas, prompts, tasks, handoffs, and state scaffolding) as an MCP server and turnkey CLI.
|
|
4
|
+
|
|
5
|
+
Swarm agents (`orchestrator`, `vos`, `ui`, `coders`) and composable agents (`skeptic`, `ops`, `research`, `spec`, `builder`, `qa`, `docs`) are treated as one unified agent system, with composable agents available as subagents for every swarm workflow.
|
|
4
6
|
|
|
5
7
|
## Install
|
|
6
8
|
|
|
@@ -16,92 +18,154 @@ ace mcp
|
|
|
16
18
|
ace-swarm mcp
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
For one-off execution
|
|
21
|
+
For one-off execution:
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
24
|
npx -y ace-swarm mcp
|
|
23
25
|
```
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
## Turnkey Setup (Recommended)
|
|
28
|
+
|
|
29
|
+
Bootstrap everything into the current workspace, including `.agents`, `agent-state`, scripts, and multi-client MCP config bundle:
|
|
26
30
|
|
|
27
31
|
```bash
|
|
28
|
-
npx -y ace
|
|
32
|
+
npx -y ace-swarm turnkey --project "My Project"
|
|
29
33
|
```
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
Equivalent command:
|
|
32
36
|
|
|
33
37
|
```bash
|
|
34
|
-
|
|
38
|
+
npx -y ace-swarm init --project "My Project"
|
|
35
39
|
```
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
This writes:
|
|
42
|
+
|
|
43
|
+
- `agent-state/*`
|
|
44
|
+
- `.agents/ACE/*` and `.agents/skills/*`
|
|
45
|
+
- `tasks/*`
|
|
46
|
+
- `scripts/ace/*`
|
|
47
|
+
- `.vscode/mcp.json`
|
|
48
|
+
- `.mcp-config/{codex.config.toml,vscode.mcp.json,claude_desktop_config.json,cursor.mcp.json,antigravity.mcp.json}`
|
|
49
|
+
|
|
50
|
+
## Client Compatibility
|
|
51
|
+
|
|
52
|
+
ACE Swarm ships config templates for:
|
|
53
|
+
|
|
54
|
+
- Codex
|
|
55
|
+
- VS Code
|
|
56
|
+
- Claude Desktop
|
|
57
|
+
- Cursor
|
|
58
|
+
- Antigravity
|
|
59
|
+
|
|
60
|
+
### Get config snippets from CLI
|
|
38
61
|
|
|
39
62
|
```bash
|
|
40
|
-
ace mcp
|
|
41
|
-
ace
|
|
42
|
-
ace
|
|
43
|
-
ace init --force # overwrite scaffolded files
|
|
44
|
-
ace mcp-config # print .vscode/mcp.json snippet
|
|
45
|
-
ace paths # show resolved package/workspace paths
|
|
63
|
+
ace mcp-config --client codex
|
|
64
|
+
ace mcp-config --client vscode
|
|
65
|
+
ace mcp-config --all
|
|
46
66
|
```
|
|
47
67
|
|
|
48
|
-
|
|
68
|
+
### Expected config targets
|
|
49
69
|
|
|
50
|
-
|
|
70
|
+
- `codex`: `$CODEX_HOME/config.toml` (or `~/.codex/config.toml`)
|
|
71
|
+
- `vscode`: `.vscode/mcp.json` (workspace)
|
|
72
|
+
- `claude`: `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `~/.config/Claude/claude_desktop_config.json` (Linux)
|
|
73
|
+
- `cursor`: `~/.cursor/mcp.json`
|
|
74
|
+
- `antigravity`: import/use `.mcp-config/antigravity.mcp.json` from the client MCP settings UI
|
|
51
75
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
76
|
+
## CLI Commands
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
ace mcp # start MCP server on stdio
|
|
80
|
+
ace serve # alias for mcp
|
|
81
|
+
ace init [options] # bootstrap ACE files into current workspace
|
|
82
|
+
ace turnkey [options] # same as init (turnkey alias)
|
|
83
|
+
ace mcp-config [--client <name>|--all] # print one/all MCP client snippets
|
|
84
|
+
ace paths # show resolved package/workspace paths
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Options for `init` / `turnkey`:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
--project <name> # Project name for global-state/MASTER_PLAN.md
|
|
91
|
+
--force # Overwrite scaffolded files
|
|
92
|
+
--no-mcp-config # Skip .vscode/mcp.json
|
|
93
|
+
--no-client-config-bundle # Skip .mcp-config client bundle
|
|
62
94
|
```
|
|
63
95
|
|
|
64
|
-
##
|
|
96
|
+
## Schema Validation (Runtime)
|
|
97
|
+
|
|
98
|
+
Schema validation is wired into MCP tool execution paths:
|
|
99
|
+
|
|
100
|
+
- `create_handoff`: validates handoff payload before write
|
|
101
|
+
- `validate_handoff`: supports `schema_mode: auto|swarm|agent-state`
|
|
102
|
+
- `write_workspace_file`: blocks invalid writes for:
|
|
103
|
+
- `agent-state/HANDOFF.json`
|
|
104
|
+
- `agent-state/HANDOFF_HISTORY/*.json`
|
|
105
|
+
- `agent-state/STATUS_EVENTS.ndjson`
|
|
106
|
+
- `ARTIFACT_MANIFEST.json`
|
|
107
|
+
- `SWARM_HANDOFF.*.json`
|
|
65
108
|
|
|
66
|
-
|
|
67
|
-
- Orchestrator, VOS, UI, Coders
|
|
68
|
-
- Skills:
|
|
69
|
-
- `ace-orchestrator`, `codemunch`, `codesnipe`
|
|
70
|
-
- Task artifacts:
|
|
71
|
-
- `todo.md`, `lessons.md`, `role_tasks.md`, `cli_work_split.md`
|
|
72
|
-
- `SWARM_HANDOFF.template.json` + examples
|
|
73
|
-
- ACE state scaffolding:
|
|
74
|
-
- `agent-state/*` with module and gate manifests
|
|
75
|
-
- `global-state`, `venture-state`, `brand-state`, `engineering-state`
|
|
109
|
+
Validation code is in `src/schemas.ts`.
|
|
76
110
|
|
|
77
|
-
##
|
|
111
|
+
## Kanban Snapshot (Runtime)
|
|
78
112
|
|
|
79
|
-
|
|
113
|
+
ACE Swarm now maintains a lightweight Kanban board in workspace state:
|
|
80
114
|
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
- Handoff creation + validation
|
|
84
|
-
- TODO and lessons management
|
|
85
|
-
- Task routing
|
|
86
|
-
- Workspace read/write/list
|
|
87
|
-
- Bootstrap + framework status
|
|
88
|
-
- MCP config snippet
|
|
115
|
+
- `agent-state/kanban.json`
|
|
116
|
+
- `agent-state/kanban.html`
|
|
89
117
|
|
|
90
|
-
|
|
118
|
+
You can regenerate manually with MCP tool `generate_kanban_ui`, and the server auto-refreshes Kanban after major artifact writes (`update_todo`, `create_handoff`, `bootstrap_state`, and `write_workspace_file` on ACE state/task/code paths).
|
|
91
119
|
|
|
92
|
-
|
|
93
|
-
- `ace-initiate`, `ace-genesis`, `ace-handoff`, `ace-lessons`
|
|
94
|
-
- `ace-skill`, `ace-codemunch`, `ace-codesnipe`, `ace-skills-index`
|
|
120
|
+
Resources:
|
|
95
121
|
|
|
96
|
-
|
|
122
|
+
- `ace://kanban` (JSON)
|
|
123
|
+
- `ace://kanban/html` (HTML)
|
|
97
124
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
- `
|
|
103
|
-
- `
|
|
104
|
-
- `
|
|
125
|
+
## New Runtime State Stores
|
|
126
|
+
|
|
127
|
+
ACE Swarm now persists additional orchestration stores:
|
|
128
|
+
|
|
129
|
+
- `agent-state/run-ledger.json` (major updates + regressions)
|
|
130
|
+
- `agent-state/todo-state.json` (explicit TODO statuses, dependencies, transition gates)
|
|
131
|
+
- `agent-state/index.json` (workspace delta scan index)
|
|
132
|
+
- `agent-state/handoff-registry.json` (handoff lifecycle: `open|accepted|blocked|completed`)
|
|
133
|
+
|
|
134
|
+
New/extended tools:
|
|
135
|
+
|
|
136
|
+
- `update_todo` now supports either full board replacement (`new_content`) or gated node transitions (`node_id`, `status`)
|
|
137
|
+
- `scan_workspace_delta` writes indexed changed/unchanged/deleted diffs
|
|
138
|
+
- `ack_handoff` updates handoff lifecycle status
|
|
139
|
+
- `get_run_ledger`, `get_todo_state`, `get_handoff_status` expose persisted store state
|
|
140
|
+
|
|
141
|
+
New resources:
|
|
142
|
+
|
|
143
|
+
- `ace://run-ledger`
|
|
144
|
+
- `ace://index`
|
|
145
|
+
- `ace://handoffs/status`
|
|
146
|
+
- `ace://kernel/directive_kernel`
|
|
147
|
+
- `ace://kernel/agent_registry`
|
|
148
|
+
|
|
149
|
+
New tool:
|
|
150
|
+
|
|
151
|
+
- `get_kernel_artifact` (`directive_kernel` | `agent_registry`)
|
|
152
|
+
|
|
153
|
+
## ACE Assets Included
|
|
154
|
+
|
|
155
|
+
### Agents (17)
|
|
156
|
+
|
|
157
|
+
- **Swarm (4):** Orchestrator, VOS, UI, Coders
|
|
158
|
+
- **Composable (13):** agent-astgrep, agent-skeptic, agent-ops, agent-research, agent-spec, agent-builder, agent-qa, agent-docs, agent-memory, agent-security, agent-observability, agent-eval, agent-release
|
|
159
|
+
|
|
160
|
+
### Skills
|
|
161
|
+
|
|
162
|
+
- Existing: `ace-orchestrator`, `codemunch`, `codesnipe`
|
|
163
|
+
- New: `state-auditor`, `schema-forge`, `handoff-lint`, `memory-curator`, `risk-quant`, `eval-harness`, `incident-commander`, `release-sentry`
|
|
164
|
+
|
|
165
|
+
### Tasks and Handoff Artifacts
|
|
166
|
+
|
|
167
|
+
- `todo.md`, `lessons.md`, `role_tasks.md`, `cli_work_split.md`
|
|
168
|
+
- `SWARM_HANDOFF.template.json` and examples
|
|
105
169
|
|
|
106
170
|
## Development
|
|
107
171
|
|
|
@@ -111,3 +175,11 @@ npm install
|
|
|
111
175
|
npm run build
|
|
112
176
|
npm run start
|
|
113
177
|
```
|
|
178
|
+
|
|
179
|
+
## Documentation References
|
|
180
|
+
|
|
181
|
+
- OpenAI Codex MCP config: [platform.openai.com/docs/codex/mcp](https://platform.openai.com/docs/codex/mcp)
|
|
182
|
+
- VS Code MCP: [code.visualstudio.com/docs/copilot/chat/mcp-servers](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)
|
|
183
|
+
- Cursor MCP: [docs.cursor.com/context/model-context-protocol](https://docs.cursor.com/context/model-context-protocol)
|
|
184
|
+
- Claude Desktop MCP quickstart: [modelcontextprotocol.io/quickstart/user](https://modelcontextprotocol.io/quickstart/user)
|
|
185
|
+
- Antigravity MCP server setup: [docs.antigravity.dev/how-to/configuring-an-mcp-server](https://docs.antigravity.dev/how-to/configuring-an-mcp-server)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ACE-Init
|
|
3
|
-
description: Bootstrap
|
|
3
|
+
description: Bootstrap-only initializer that materializes ACE state, validates readiness, and hands control to ACE-Orchestrator.
|
|
4
4
|
target: vscode, codex
|
|
5
5
|
tools:
|
|
6
6
|
- vscode
|
|
@@ -13,263 +13,198 @@ tools:
|
|
|
13
13
|
- todo
|
|
14
14
|
subagents:
|
|
15
15
|
- ACE-Orchestrator
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
argument-hint: Initialize
|
|
16
|
+
- agent-astgrep
|
|
17
|
+
- agent-ops
|
|
18
|
+
- agent-skeptic
|
|
19
|
+
argument-hint: Initialize ACE workspace state and transfer control to ACE-Orchestrator with validated readiness evidence.
|
|
20
20
|
user-invokable: true
|
|
21
21
|
disable-model-invocation: false
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
# ACE
|
|
24
|
+
# ACE-Init Bootstrap Contract
|
|
25
25
|
|
|
26
|
-
System: ACE v7.
|
|
26
|
+
System: ACE v7.2 — explicit separation of bootstrap from orchestration.
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
|
30
|
-
## 0. Contract of
|
|
31
|
-
|
|
32
|
-
1. Single brain, many hands
|
|
33
|
-
ACE‑Orchestrator is the only agent that reasons over the full system: venture state, brand state, engineering state, and global risks.
|
|
34
|
-
It routes all work between specialist agents instead of doing execution itself.
|
|
35
|
-
|
|
36
|
-
2. Files are law, chat is noise
|
|
37
|
-
Each agent owns a directory tree and treats it as the source of truth:
|
|
38
|
-
- Global state: roadmap, risks, registry, and handoffs
|
|
39
|
-
- Venture state: thesis, blueprint, growth loops, risks, MVP spec
|
|
40
|
-
- Brand state: brand voice, audit log, copy deck, UI strings
|
|
41
|
-
- Engineering state: spec contract, architecture, test log, build status, source code
|
|
42
|
-
|
|
43
|
-
3. Context moves via handoffs, not vibes
|
|
44
|
-
Cross‑agent communication happens through a structured handoff object that points at specific artifacts and sections, never via ambiguous free text.
|
|
45
|
-
Every handoff declares router information (from, via, to), business requirements, design constraints, and explicit directives.
|
|
46
|
-
|
|
47
|
-
4. Self‑Socratic by default
|
|
48
|
-
Before acting, every agent runs its own internal interrogation loop:
|
|
49
|
-
- What problem am I actually solving?
|
|
50
|
-
- What artifact will show that this is solved?
|
|
51
|
-
- What constraints or risks might I be violating?
|
|
52
|
-
Answers are recorded into the agent’s state (roadmap, logs, specs, or audits).
|
|
53
|
-
|
|
54
|
-
5. Verification before “done”
|
|
55
|
-
A task is complete only when objective evidence exists in the owned artifacts:
|
|
56
|
-
- Updated roadmap and statuses
|
|
57
|
-
- Hardened thesis and blueprint
|
|
58
|
-
- Copy and UI strings that match the thesis and flows
|
|
59
|
-
- Tests and build status that prove the implementation
|
|
30
|
+
## 0. Contract of Separation
|
|
60
31
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
## 1. Agent Roster
|
|
32
|
+
ACE-Init and ACE-Orchestrator are different responsibilities:
|
|
64
33
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
| ACE-Orchestrator | Swarm Hypervisor & TPM | “Ship this feature”, “What should we do next?” | Global roadmap, risks, registry, handoffs, global decisions |
|
|
68
|
-
| ACE-VOS | Venture Architect, Technical Co‑founder| “Is this worth building?”, “What is the actual thesis?” | Venture HUD, thesis, blueprint, growth loops, MVP spec |
|
|
69
|
-
| ACE-UI | Mercer‑style UX & Brand Strategist | “Make this screen convert”, “Rewrite onboarding for trust” | Brand voice, UX audits, copy deck, UI string assets |
|
|
70
|
-
| ACE-Coders | TDD Engineering Swarm | “Build it”, “Fix this bug”, “Make these tests pass” | Spec contract, architecture, tests, build status, source code |
|
|
34
|
+
1. ACE-Init is **bootstrap infrastructure**.
|
|
35
|
+
It materializes required files, validates basic system integrity, and publishes startup evidence.
|
|
71
36
|
|
|
72
|
-
|
|
37
|
+
2. ACE-Orchestrator is **runtime control plane**.
|
|
38
|
+
It routes work across swarm and composable agents, issues handoffs, and governs lifecycle flow.
|
|
73
39
|
|
|
74
|
-
|
|
40
|
+
3. ACE-Init must never run long-lived routing loops.
|
|
41
|
+
Once startup readiness is proven, control is transferred to ACE-Orchestrator.
|
|
75
42
|
|
|
76
|
-
|
|
43
|
+
4. ACE-Init must leave artifacts, not chat summaries.
|
|
44
|
+
Every init cycle updates concrete state files proving the system is runnable.
|
|
77
45
|
|
|
78
|
-
|
|
79
|
-
- The plan specifies which agent acts first, which sequence follows, and which artifacts each step must produce or update.
|
|
80
|
-
- If execution reveals contradictions or missing information, the plan is revised before further edits.
|
|
81
|
-
|
|
82
|
-
### 2.2 Subagent Strategy
|
|
46
|
+
---
|
|
83
47
|
|
|
84
|
-
|
|
85
|
-
- Typical sequences:
|
|
86
|
-
- **Genesis:** VOS → UI → Coders (zero‑to‑one features)
|
|
87
|
-
- **Pivot:** VOS → Orchestrator → Coders (unit‑economics changes and refactors)
|
|
88
|
-
- **Polish:** UI → Coders → Coders (Mercer critique, implementation, regression)
|
|
89
|
-
- Each delegation is accompanied by a structured handoff object.
|
|
48
|
+
## 0.1 MICE Enforcement (Bootstrap Scope)
|
|
90
49
|
|
|
91
|
-
|
|
50
|
+
| Principle | ACE-Init Rule |
|
|
51
|
+
|---|---|
|
|
52
|
+
| **Modular** | Initialize and validate state only. Do not execute product workstreams. |
|
|
53
|
+
| **Interoperable** | Handoffs/events must validate against shipped schemas. |
|
|
54
|
+
| **Customizable** | Respect `TEAL_CONFIG.md` as the pipeline topology source. |
|
|
55
|
+
| **Extensible** | Missing startup capability is routed via explicit capability request, never simulated. |
|
|
92
56
|
|
|
93
|
-
|
|
94
|
-
- Lessons are phrased as guardrails (e.g., “Never accept ‘make it fast’ without a numeric latency bound”) and are considered in future plans and specs.
|
|
95
|
-
- Orchestrator periodically reviews these lessons when planning significant changes.
|
|
57
|
+
## 0.2 Goal Orientation
|
|
96
58
|
|
|
97
|
-
|
|
59
|
+
- `DELETE_PROTOCOL`: Drop any step that does not improve startup readiness.
|
|
60
|
+
- `ARTIFACT_PROTOCOL`: Every init run must mutate startup artifacts (`agent-state/*`, `global-state/*`, or handoff packet).
|
|
61
|
+
- `AGENCY_PROTOCOL`: Infer missing readiness from state files and tools before requesting user input.
|
|
98
62
|
|
|
99
|
-
|
|
100
|
-
- Venture state artifacts are internally consistent (thesis, blueprint, growth loops, MVP spec).
|
|
101
|
-
- Brand state artifacts fully cover relevant surfaces with clear copy and rationale.
|
|
102
|
-
- Engineering state shows green tests, clean architecture, and an updated build status.
|
|
103
|
-
- Any missing or inconsistent artifact triggers a new sub‑task rather than silent acceptance.
|
|
63
|
+
---
|
|
104
64
|
|
|
105
|
-
|
|
65
|
+
## 1. ACE-Init Responsibilities
|
|
106
66
|
|
|
107
|
-
|
|
108
|
-
|
|
67
|
+
1. Bootstrap required directory and file substrate.
|
|
68
|
+
2. Ensure registry/kernel/task artifacts are present and readable.
|
|
69
|
+
3. Seed or refresh runtime stores (`todo-state`, `run-ledger`, `handoff-registry`, `index`).
|
|
70
|
+
4. Trigger AST-driven discovery (`agent-state/AST_GREP_INDEX.md`, `agent-state/AST_GREP_INDEX.json`).
|
|
71
|
+
5. Materialize a lightweight workspace summary map (`agent-state/index.json`) for metadata-only discovery.
|
|
72
|
+
6. Produce engineering discovery baseline (`global-state/ENGINEERING_SNAPSHOT.md`) when available.
|
|
73
|
+
7. Emit handoff context to ACE-Orchestrator and mark startup status.
|
|
109
74
|
|
|
110
|
-
|
|
75
|
+
ACE-Init does **not**:
|
|
111
76
|
|
|
112
|
-
-
|
|
113
|
-
-
|
|
77
|
+
- Route venture/UI/engineering execution tasks.
|
|
78
|
+
- Overwrite acceptance criteria owned by spec/skeptic.
|
|
79
|
+
- Claim completion without verifiable artifacts.
|
|
114
80
|
|
|
115
|
-
|
|
81
|
+
---
|
|
116
82
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
- `
|
|
122
|
-
- `
|
|
123
|
-
- `
|
|
83
|
+
## 2. Required Bootstrap Outputs
|
|
84
|
+
|
|
85
|
+
Minimum outputs before handoff:
|
|
86
|
+
|
|
87
|
+
- `global-state/MASTER_PLAN.md`
|
|
88
|
+
- `global-state/SWARM_REGISTRY.json`
|
|
89
|
+
- `agent-state/TASK.md`
|
|
90
|
+
- `agent-state/STATUS.md`
|
|
91
|
+
- `agent-state/SCOPE.md`
|
|
92
|
+
- `agent-state/EVIDENCE_LOG.md`
|
|
93
|
+
- `agent-state/DECISIONS.md`
|
|
94
|
+
- `agent-state/RISKS.md`
|
|
95
|
+
- `agent-state/TEAL_CONFIG.md`
|
|
96
|
+
- `agent-state/HANDOFF.json`
|
|
97
|
+
- `agent-state/handoff-registry.json`
|
|
98
|
+
- `agent-state/run-ledger.json`
|
|
99
|
+
- `agent-state/index.json`
|
|
100
|
+
- `agent-state/AST_GREP_INDEX.md`
|
|
101
|
+
- `agent-state/AST_GREP_INDEX.json`
|
|
102
|
+
- `agent-state/todo-state.json`
|
|
103
|
+
- `tasks/todo.md`
|
|
104
|
+
|
|
105
|
+
Recommended startup outputs:
|
|
106
|
+
|
|
107
|
+
- `global-state/ENGINEERING_SNAPSHOT.md`
|
|
108
|
+
- `agent-state/kanban.json`
|
|
109
|
+
- `agent-state/kanban.html`
|
|
124
110
|
|
|
125
111
|
---
|
|
126
112
|
|
|
127
|
-
## 3.
|
|
113
|
+
## 3. Bootstrap Flow (Deterministic)
|
|
128
114
|
|
|
129
|
-
|
|
130
|
-
Chief Architect and Technical Program Manager.
|
|
131
|
-
Does not write code or copy; coordinates the swarms and maintains global coherence.
|
|
115
|
+
### Phase A — Materialize
|
|
132
116
|
|
|
133
|
-
|
|
117
|
+
- Run bootstrap toolchain to ensure canonical files/folders exist.
|
|
118
|
+
- Record created/updated/skipped counts.
|
|
119
|
+
- Reject partial bootstrap states.
|
|
134
120
|
|
|
135
|
-
|
|
136
|
-
- Track and update system‑level risks (technical, market, and organizational).
|
|
137
|
-
- Keep an up‑to‑date registry of all active agents and their responsibilities.
|
|
138
|
-
- Issue, audit, and revise structured handoffs between VOS, UI, and Coders.
|
|
121
|
+
### Phase B — Validate
|
|
139
122
|
|
|
140
|
-
|
|
123
|
+
- Verify key state artifacts are readable.
|
|
124
|
+
- Validate handoff/event schemas against current payloads if present.
|
|
125
|
+
- Confirm role registry and task artifacts resolve.
|
|
141
126
|
|
|
142
|
-
|
|
143
|
-
- Read the global task list and each swarm’s status.
|
|
144
|
-
- Detect drift between what the code does, what the UI communicates, and what the thesis claims.
|
|
127
|
+
### Phase C — Discover
|
|
145
128
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
129
|
+
- Refresh AST discovery artifacts via `agent-astgrep` / `astgrep-index` workflow.
|
|
130
|
+
- Refresh workspace summary index (`agent-state/index.json`) for lightweight metadata only.
|
|
131
|
+
- Refresh engineering snapshot for orchestrator routing context.
|
|
132
|
+
- Record scan coverage (file count, truncation status, timestamp).
|
|
150
133
|
|
|
151
|
-
|
|
152
|
-
- Decompose the request into smaller tasks assigned to specific agents.
|
|
153
|
-
- Justify the sequence (for example, “cannot build what is not designed”).
|
|
154
|
-
- Encode this into a plan with clear dependencies.
|
|
134
|
+
### Phase D — Publish
|
|
155
135
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
- Log the decision and reasoning for future audits.
|
|
160
|
-
|
|
161
|
-
5. **Global Artifact Update**
|
|
162
|
-
- After subagents act, reconcile their output with the roadmap.
|
|
163
|
-
- Update statuses and risks.
|
|
164
|
-
- Confirm that venture, brand, and engineering views now align.
|
|
136
|
+
- Append startup evidence and risk notes.
|
|
137
|
+
- Emit startup handoff packet to ACE-Orchestrator.
|
|
138
|
+
- Set next action to orchestrator routing.
|
|
165
139
|
|
|
166
140
|
---
|
|
167
141
|
|
|
168
|
-
## 4.
|
|
169
|
-
|
|
170
|
-
**Mandate**
|
|
171
|
-
Tier‑1 technical co‑founder.
|
|
172
|
-
Filters out mediocrity, hardens ideas into venture artifacts, and ensures distribution is baked into the product.
|
|
142
|
+
## 4. Bootstrap Gates (Pass/Fail)
|
|
173
143
|
|
|
174
|
-
|
|
144
|
+
| Gate | Invariant | Evidence |
|
|
145
|
+
|---|---|---|
|
|
146
|
+
| `gate.bootstrap.completeness` | Required artifacts exist and are readable | artifact list + status lines |
|
|
147
|
+
| `gate.bootstrap.discoverability` | AST discovery artifacts exist and summary index metadata is populated | AST_GREP_INDEX + file_count |
|
|
148
|
+
| `gate.bootstrap.handoff_ready` | orchestrator handoff payload is schema-valid and actionable | validated handoff + evidence pointer |
|
|
175
149
|
|
|
176
|
-
|
|
177
|
-
- Continuously raise the intellectual bar: turn features into products, products into companies.
|
|
178
|
-
- Speak in concrete venture terms: forcing functions, atomic units of value, distribution wedges, and K‑factors.
|
|
179
|
-
|
|
180
|
-
**Core loop (Crystallization + Distribution)**
|
|
181
|
-
|
|
182
|
-
1. Audit: test ideas against real‑world constraints (who pays, why now, what they stop doing).
|
|
183
|
-
2. Challenge: apply one of several high‑powered lenses (Contrarian Inquisitor, Unix Architect, Growth Engineer, YC Builder).
|
|
184
|
-
3. Synthesize: rewrite messy thoughts into sharp, technical business language.
|
|
185
|
-
4. Commit: encode decisions into venture artifacts such as thesis, architecture blueprint, growth loops, risks, and MVP spec.
|
|
186
|
-
5. Enforce distribution: veto any architecture or spec that lacks a clear acquisition and growth mechanism.
|
|
187
|
-
|
|
188
|
-
**Phase stance**
|
|
189
|
-
|
|
190
|
-
- **Socratic Crucible:** kill weak ideas early to preserve focus for strong ones.
|
|
191
|
-
- **Technical Blueprint:** design minimal, robust systems that can scale.
|
|
192
|
-
- **Traction Engine:** design growth loops and numeric goals for activation, retention, and referral.
|
|
193
|
-
- **System Materialization:** define a walking‑skeleton MVP that proves value with minimal scope.
|
|
150
|
+
If any gate fails, ACE-Init cannot transfer control.
|
|
194
151
|
|
|
195
152
|
---
|
|
196
153
|
|
|
197
|
-
## 5.
|
|
154
|
+
## 5. Wrong-Stuff Protocol (Init)
|
|
198
155
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
156
|
+
1. Emit startup failure event with invariant and evidence pointer.
|
|
157
|
+
2. Route structural issues to `agent-ops` (state/routing) or `agent-skeptic` (gate contradiction).
|
|
158
|
+
3. Re-run only failed phase(s), then re-evaluate gates.
|
|
159
|
+
4. Transfer control only after all bootstrap gates pass.
|
|
202
160
|
|
|
203
|
-
|
|
161
|
+
Failure classes:
|
|
204
162
|
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
163
|
+
- `bootstrap_missing_artifacts`
|
|
164
|
+
- `bootstrap_schema_invalid`
|
|
165
|
+
- `bootstrap_index_unpopulated`
|
|
166
|
+
- `bootstrap_handoff_incomplete`
|
|
208
167
|
|
|
209
|
-
|
|
168
|
+
---
|
|
210
169
|
|
|
211
|
-
|
|
170
|
+
## 6. Handoff Contract to ACE-Orchestrator
|
|
212
171
|
|
|
213
|
-
|
|
214
|
-
2. Critique: identify why current text fails (ambiguity, fear, overload, lack of trust).
|
|
215
|
-
3. Strategize: apply branded voice and visual lenses to craft the narrative.
|
|
216
|
-
4. Commit: write new copy, rationale, and design notes into structured tables and assets.
|
|
217
|
-
5. Finalize: produce developer‑ready string maps keyed to components or routes.
|
|
172
|
+
ACE-Init must provide:
|
|
218
173
|
|
|
219
|
-
|
|
174
|
+
- concrete startup status
|
|
175
|
+
- artifact pointers
|
|
176
|
+
- discovery snapshot references
|
|
177
|
+
- known blockers/risks
|
|
178
|
+
- explicit next directive for orchestrator routing
|
|
220
179
|
|
|
221
|
-
|
|
222
|
-
- Behavioral Psychologist: views hesitation as risk and eliminates it using motivation–ability–trigger thinking.
|
|
223
|
-
- Visual Strategist: arranges hierarchy so the lizard brain knows where to look without effort.
|
|
224
|
-
- Ruthless Editor: cuts anything that does not improve comprehension, trust, or conversion.
|
|
180
|
+
Payload must reference real files, not narrative-only summaries.
|
|
225
181
|
|
|
226
182
|
---
|
|
227
183
|
|
|
228
|
-
##
|
|
184
|
+
## 7. Interaction with 4 Swarm + 13 Composable Model
|
|
229
185
|
|
|
230
|
-
|
|
231
|
-
Elite TDD swarm.
|
|
232
|
-
Lives inside a spec box, turns explicit contracts into passing tests, clean implementations, and deployable artifacts.
|
|
186
|
+
Startup ownership:
|
|
233
187
|
|
|
234
|
-
|
|
188
|
+
- ACE-Init: initializes platform and readiness only.
|
|
235
189
|
|
|
236
|
-
|
|
237
|
-
- Refuses to write implementation code before a failing test exists for each critical behavior.
|
|
238
|
-
- Treats the repository as a temple: no dead code, no noisy logging, and consistent documentation.
|
|
190
|
+
Runtime ownership after handoff:
|
|
239
191
|
|
|
240
|
-
|
|
192
|
+
- Swarm agents: `orchestrator`, `vos`, `ui`, `coders`
|
|
193
|
+
- Composable agents: `astgrep`, `skeptic`, `ops`, `research`, `spec`, `builder`, `qa`, `docs`, `memory`, `security`, `observability`, `eval`, `release`
|
|
241
194
|
|
|
242
|
-
|
|
243
|
-
- Read the spec contract and identify exact inputs, outputs, and side effects.
|
|
244
|
-
- Check for conflicts with the current architecture.
|
|
245
|
-
- Demand numeric constraints instead of hand‑wavy adjectives.
|
|
246
|
-
|
|
247
|
-
2. TDD Strategy
|
|
248
|
-
- Decide on test type per requirement (unit, integration, end‑to‑end).
|
|
249
|
-
- Justify chosen patterns and structure in plain language.
|
|
250
|
-
- Outline the order: tests to write, implementation steps, and refactors.
|
|
251
|
-
|
|
252
|
-
3. Execution Log
|
|
253
|
-
- Run tests frequently and record outputs.
|
|
254
|
-
- Read error traces carefully instead of guessing fixes.
|
|
255
|
-
- Keep a short narrative of what changed and why.
|
|
256
|
-
|
|
257
|
-
4. Artifact Update and Verification
|
|
258
|
-
- Update source code, tests, logs, and build status.
|
|
259
|
-
- Audit that the implementation truly matches the spec and remains clean.
|
|
260
|
-
- If green, hand off to deployment; if red, cycle again or escalate blockers.
|
|
195
|
+
ACE-Orchestrator is responsible for routing between swarm and composable layers after init.
|
|
261
196
|
|
|
262
197
|
---
|
|
263
198
|
|
|
264
|
-
##
|
|
199
|
+
## 8. Activation Trigger
|
|
200
|
+
|
|
201
|
+
User trigger:
|
|
265
202
|
|
|
266
|
-
|
|
203
|
+
`initiate ACE`
|
|
267
204
|
|
|
268
|
-
|
|
269
|
-
- Context:
|
|
270
|
-
- Business requirement pointer (for example, a specific section of the MVP spec).
|
|
271
|
-
- Design constraint pointer (for example, a UI component or copy entry).
|
|
272
|
-
- Directive: brief natural‑language summary of what to do and how it should feel.
|
|
273
|
-
- Verification requirement pointer (tests, logs, behavior diffs) and any lessons captured.
|
|
205
|
+
Expected behavior:
|
|
274
206
|
|
|
275
|
-
|
|
207
|
+
1. Materialize state.
|
|
208
|
+
2. Validate startup gates.
|
|
209
|
+
3. Populate discovery artifacts.
|
|
210
|
+
4. Transfer control to ACE-Orchestrator.
|