agentplane 0.3.29 → 0.4.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 +91 -84
- package/assets/AGENTS.md +42 -6
- package/assets/RUNNER.md +8 -0
- package/assets/agents/CODER.json +21 -31
- package/assets/agents/CREATOR.json +20 -23
- package/assets/agents/DOCS.json +20 -24
- package/assets/agents/INTEGRATOR.json +20 -26
- package/assets/agents/ORCHESTRATOR.json +19 -31
- package/assets/agents/PLANNER.json +19 -32
- package/assets/agents/REDMINE.json +21 -24
- package/assets/agents/REVIEWER.json +19 -20
- package/assets/agents/SKILL_EXTRACTOR.json +21 -26
- package/assets/agents/TESTER.json +21 -26
- package/assets/agents/UPDATER.json +19 -21
- package/assets/agents/UPGRADER.json +22 -26
- package/assets/policy/dod.code.md +9 -0
- package/assets/policy/dod.core.md +9 -0
- package/assets/policy/dod.docs.md +12 -0
- package/assets/policy/examples/migration-note.md +3 -0
- package/assets/policy/examples/pr-note.md +13 -0
- package/assets/policy/examples/unit-test-pattern.md +4 -0
- package/assets/policy/governance.md +18 -0
- package/assets/policy/incidents.md +9 -19
- package/assets/policy/security.must.md +3 -0
- package/assets/policy/workflow.branch_pr.md +12 -0
- package/assets/policy/workflow.direct.md +15 -0
- package/assets/policy/workflow.md +3 -0
- package/assets/policy/workflow.release.md +13 -1
- package/assets/policy/workflow.upgrade.md +9 -0
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +356 -346
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,74 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgentPlane
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/agentplane)
|
|
4
4
|
[](https://www.npmjs.com/package/agentplane)
|
|
5
5
|
[](https://github.com/basilisk-labs/agentplane/blob/main/LICENSE)
|
|
6
6
|
[](https://agentplane.org/docs/user/prerequisites)
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**Use coding agents without losing Git discipline.**
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
`agentplane` is the CLI for AgentPlane. It runs locally inside a git repository, not in a hosted runtime, and adds visible workflow artifacts such as `AGENTS.md` or `CLAUDE.md`, `.agentplane/`, task records, verification state, and deterministic closure. Teams use it when they want agent work to stay explicit, inspectable, and governed inside the repository instead of behaving like an opaque assistant.
|
|
13
|
-
|
|
14
|
-
## What agentplane is
|
|
15
|
-
|
|
16
|
-
`agentplane` is a repo-native CLI workflow for agent-driven development.
|
|
17
|
-
|
|
18
|
-
- It runs in your repository and keeps workflow state local.
|
|
19
|
-
- It adds approvals, task state, verification, and finish to agent work.
|
|
20
|
-
- It supports both `direct` and `branch_pr` workflow modes.
|
|
21
|
-
- It keeps repository artifacts visible instead of hiding execution behind a hosted control plane.
|
|
22
|
-
|
|
23
|
-
## Why teams use it
|
|
24
|
-
|
|
25
|
-
Teams use `agentplane` when changing files is not enough and they need the work itself to stay legible.
|
|
26
|
-
|
|
27
|
-
- **Trust comes from visible process.** Plans, verification, and finish are recorded instead of implied.
|
|
28
|
-
- **The workflow stays local.** There is no hosted control plane between your repository and your team.
|
|
29
|
-
- **Git remains first-class.** `agentplane` governs agent work inside commits and repository state instead of bypassing them.
|
|
30
|
-
- **The same CLI fits different review styles.** Use `direct` for short loops or `branch_pr` for stricter integration.
|
|
31
|
-
|
|
32
|
-
## What appears in your repository
|
|
33
|
-
|
|
34
|
-
`agentplane init` creates a visible workflow surface inside the repository.
|
|
10
|
+
`agentplane` is a local CLI that makes Claude Code, Codex, Cursor, Aider, and similar coding-agent
|
|
11
|
+
work auditable inside your Git repository:
|
|
35
12
|
|
|
36
13
|
```text
|
|
37
|
-
|
|
38
|
-
.agentplane/ Repo-local workspace and workflow state
|
|
39
|
-
.agentplane/config.json Current repo configuration
|
|
40
|
-
.agentplane/agents/ Installed agent profiles
|
|
41
|
-
.agentplane/tasks/ Per-task records and evidence
|
|
42
|
-
.agentplane/WORKFLOW.md Current workflow contract
|
|
14
|
+
task -> plan -> approve -> implement -> verify -> finish
|
|
43
15
|
```
|
|
44
16
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## Install and first run
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npm install -g agentplane
|
|
51
|
-
```
|
|
17
|
+
No hosted runtime. No hidden control plane. Everything stays in your repo.
|
|
52
18
|
|
|
53
|
-
|
|
19
|
+
## Install
|
|
54
20
|
|
|
55
21
|
```bash
|
|
56
|
-
|
|
22
|
+
npm i -g agentplane
|
|
57
23
|
agentplane init
|
|
58
24
|
agentplane quickstart
|
|
59
25
|
```
|
|
60
26
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`agentplane init` is interactive by default. It lets you choose the workflow mode, backend, gateway file (`AGENTS.md` or `CLAUDE.md`), execution profile, and optional recipe setup.
|
|
27
|
+
Requirements:
|
|
64
28
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
- `.agentplane/config.json`
|
|
69
|
-
- `.agentplane/tasks/`
|
|
70
|
-
- `.agentplane/agents/`
|
|
71
|
-
- `.agentplane/WORKFLOW.md`
|
|
29
|
+
- Node.js 20+
|
|
30
|
+
- Git repository
|
|
31
|
+
- Local terminal
|
|
72
32
|
|
|
73
33
|
Prefer not to install globally:
|
|
74
34
|
|
|
@@ -77,6 +37,35 @@ npx agentplane init
|
|
|
77
37
|
npx agentplane quickstart
|
|
78
38
|
```
|
|
79
39
|
|
|
40
|
+
## Why it exists
|
|
41
|
+
|
|
42
|
+
Coding agents can change files. Teams still need to know what happened:
|
|
43
|
+
|
|
44
|
+
- What task was the agent solving?
|
|
45
|
+
- What plan was approved?
|
|
46
|
+
- What changed in the repository?
|
|
47
|
+
- What was verified?
|
|
48
|
+
- Why was the task considered finished?
|
|
49
|
+
|
|
50
|
+
AgentPlane adds a visible workflow layer around agent work without replacing Git, your editor, or
|
|
51
|
+
your terminal.
|
|
52
|
+
|
|
53
|
+
## What appears in your repository
|
|
54
|
+
|
|
55
|
+
`agentplane init` creates a visible workflow surface:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
AGENTS.md or CLAUDE.md Policy gateway for the repository
|
|
59
|
+
.agentplane/ Repo-local workflow workspace
|
|
60
|
+
.agentplane/config.json Current workflow configuration
|
|
61
|
+
.agentplane/agents/ Installed agent profiles
|
|
62
|
+
.agentplane/tasks/ Per-task records and evidence
|
|
63
|
+
.agentplane/WORKFLOW.md Materialized workflow contract
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
These artifacts make agent work inspectable. A reviewer can see what policy governed the repo, what
|
|
67
|
+
task was active, what plan was accepted, what checks ran, and how the task was closed.
|
|
68
|
+
|
|
80
69
|
## First task flow
|
|
81
70
|
|
|
82
71
|
Create a task and record the plan:
|
|
@@ -97,61 +86,79 @@ Then start work, record verification, and finish:
|
|
|
97
86
|
```bash
|
|
98
87
|
agentplane task start-ready <task-id> --author DOCS --body "Start: ..."
|
|
99
88
|
agentplane task verify-show <task-id>
|
|
100
|
-
agentplane verify <task-id> --ok --by
|
|
101
|
-
agentplane finish <task-id> --author DOCS --body "Verified:
|
|
89
|
+
agentplane verify <task-id> --ok --by DOCS --note "Checks passed"
|
|
90
|
+
agentplane finish <task-id> --author DOCS --body "Verified: checks passed." --result "One-line outcome" --commit <git-rev>
|
|
102
91
|
```
|
|
103
92
|
|
|
104
|
-
That is the shortest
|
|
93
|
+
That is the shortest useful path: initialize the repo, create a task, verify the change, and close it
|
|
94
|
+
through recorded workflow state instead of an unstructured agent session.
|
|
95
|
+
|
|
96
|
+
## Without vs with AgentPlane
|
|
97
|
+
|
|
98
|
+
| Without AgentPlane | With AgentPlane |
|
|
99
|
+
| ------------------------ | ------------------------------- |
|
|
100
|
+
| Prompt in chat | Task is recorded |
|
|
101
|
+
| Agent edits files | Plan is explicit |
|
|
102
|
+
| Human inspects diff | Approval is visible |
|
|
103
|
+
| Context is scattered | Verification is stored |
|
|
104
|
+
| Verification is implicit | Finish creates closure evidence |
|
|
105
|
+
| Closure is manual | Everything lives close to Git |
|
|
105
106
|
|
|
106
107
|
## Workflow modes
|
|
107
108
|
|
|
108
109
|
### `direct`
|
|
109
110
|
|
|
110
|
-
|
|
111
|
-
- fast local iteration
|
|
112
|
-
- deterministic close commit on `finish` by default
|
|
113
|
-
- best fit for solo work or short loops
|
|
111
|
+
Fast local loops in the current checkout. Good for solo work, prototypes, and short tasks.
|
|
114
112
|
|
|
115
113
|
### `branch_pr`
|
|
116
114
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
- stricter handoff and integration discipline
|
|
120
|
-
- better fit for teams that want implementation separated from integration
|
|
115
|
+
Structured per-task branch and PR-style handoff. Good for teams, stricter review, and integration
|
|
116
|
+
boundaries.
|
|
121
117
|
|
|
122
|
-
##
|
|
118
|
+
## Who it is for
|
|
123
119
|
|
|
124
|
-
|
|
120
|
+
- Developers using Claude Code, Codex, Cursor, Aider, or local coding agents.
|
|
121
|
+
- Maintainers who want agent changes to remain reviewable.
|
|
122
|
+
- Teams that need task state, verification, and closure before merging agent-generated work.
|
|
123
|
+
- Local-first builders who do not want a hosted agent runtime between their repo and their workflow.
|
|
125
124
|
|
|
126
|
-
|
|
127
|
-
- you need explicit task state, approvals, verification, and closure
|
|
128
|
-
- you want repo-local workflow artifacts instead of a hidden assistant session
|
|
125
|
+
## What it is not
|
|
129
126
|
|
|
130
|
-
|
|
127
|
+
- Not a hosted agent platform.
|
|
128
|
+
- Not a prompt framework.
|
|
129
|
+
- Not a replacement for Git.
|
|
130
|
+
- Not a replacement for your editor.
|
|
131
|
+
- Not a replacement for Claude Code, Codex, Cursor, or Aider.
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
- you want a generic prompt framework
|
|
134
|
-
- you want the tool to hide git or replace your editor
|
|
133
|
+
## Workflow guides
|
|
135
134
|
|
|
136
|
-
|
|
135
|
+
Start from the guide that matches your current stack:
|
|
137
136
|
|
|
138
|
-
-
|
|
137
|
+
- [AgentPlane + Claude Code](https://agentplane.org/docs/workflow-guides/claude-code)
|
|
138
|
+
- [AgentPlane + Codex](https://agentplane.org/docs/workflow-guides/codex)
|
|
139
|
+
- [AgentPlane + Cursor](https://agentplane.org/docs/workflow-guides/cursor)
|
|
140
|
+
- [AgentPlane + Aider](https://agentplane.org/docs/workflow-guides/aider)
|
|
141
|
+
- [AgentPlane + GitHub Actions](https://agentplane.org/docs/workflow-guides/github-actions)
|
|
142
|
+
- [AgentPlane + branch_pr workflow](https://agentplane.org/docs/workflow-guides/branch-pr)
|
|
143
|
+
|
|
144
|
+
Installable recipes are separate signed packages; the current catalog starts with
|
|
145
|
+
[Code Map](https://agentplane.org/docs/recipes/code-map).
|
|
139
146
|
|
|
140
147
|
## Documentation
|
|
141
148
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
149
|
+
Start here:
|
|
150
|
+
|
|
151
|
+
- [Overview](https://agentplane.org/docs/user/overview)
|
|
152
|
+
- [Setup](https://agentplane.org/docs/user/setup)
|
|
153
|
+
- [Workflow](https://agentplane.org/docs/user/workflow)
|
|
154
|
+
- [Task lifecycle](https://agentplane.org/docs/user/task-lifecycle)
|
|
155
|
+
- [Commands](https://agentplane.org/docs/user/commands)
|
|
156
|
+
- [CLI reference](https://agentplane.org/docs/user/cli-reference.generated)
|
|
150
157
|
|
|
151
158
|
## Support
|
|
152
159
|
|
|
153
|
-
- Issues
|
|
154
|
-
- Contributing
|
|
160
|
+
- [Issues](https://github.com/basilisk-labs/agentplane/issues)
|
|
161
|
+
- [Contributing](https://github.com/basilisk-labs/agentplane/blob/main/CONTRIBUTING.md)
|
|
155
162
|
|
|
156
163
|
## License
|
|
157
164
|
|
package/assets/AGENTS.md
CHANGED
|
@@ -4,13 +4,17 @@ repo_namespace: .agentplane
|
|
|
4
4
|
default_initiator: ORCHESTRATOR
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
|
+
<!-- ap:fragment id="gateway.agents.purpose.purpose" slot="purpose" mutability="replaceable" -->
|
|
8
|
+
|
|
7
9
|
# PURPOSE
|
|
8
10
|
|
|
9
11
|
`AGENTS.md` is the policy gateway for agents in this repository.
|
|
10
12
|
It provides strict routing, hard constraints, and command contracts.
|
|
11
13
|
Detailed procedures live in canonical modules from `## CANONICAL DOCS`.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
<!-- /ap:fragment -->
|
|
16
|
+
|
|
17
|
+
<!-- ap:fragment id="gateway.agents.purpose.project" slot="purpose" mutability="replaceable" -->
|
|
14
18
|
|
|
15
19
|
## PROJECT
|
|
16
20
|
|
|
@@ -19,7 +23,8 @@ Detailed procedures live in canonical modules from `## CANONICAL DOCS`.
|
|
|
19
23
|
- CLI rule: use `agentplane` from `PATH`; if unavailable, stop and request installation guidance (do not invent repo-local entrypoints).
|
|
20
24
|
- Startup shortcut: run `## COMMANDS -> Preflight`, then use `agentplane quickstart`; activate `agentplane role ORCHESTRATOR` for planning and `agentplane role <ROLE>` for the active owner before owner-scoped execution; then apply `## LOAD RULES` before any mutation. The guarded route is determined by `workflow_mode` in `.agentplane/config.json`; use `agentplane quickstart` as the canonical summary of the active path before mutating. In `branch_pr`, start from `agentplane work start ... --worktree`; in `direct`, stay in the current checkout and use the task lifecycle route.
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
<!-- /ap:fragment -->
|
|
27
|
+
<!-- ap:fragment id="gateway.agents.source_of_truth.sources.of.truth" slot="source_of_truth" mutability="replaceable" -->
|
|
23
28
|
|
|
24
29
|
## SOURCES OF TRUTH
|
|
25
30
|
|
|
@@ -36,7 +41,8 @@ Conflict rule:
|
|
|
36
41
|
- If documentation conflicts with enforcement, enforcement wins.
|
|
37
42
|
- If lower-priority text conflicts with higher-priority policy, higher-priority policy wins.
|
|
38
43
|
|
|
39
|
-
|
|
44
|
+
<!-- /ap:fragment -->
|
|
45
|
+
<!-- ap:fragment id="gateway.agents.hard_constraint.scope.boundary" slot="hard_constraint" mutability="append_only" -->
|
|
40
46
|
|
|
41
47
|
## SCOPE BOUNDARY
|
|
42
48
|
|
|
@@ -44,7 +50,8 @@ Conflict rule:
|
|
|
44
50
|
- MUST NOT read or modify global user files (`~`, `/etc`, keychains, ssh keys, global git config) without explicit user approval.
|
|
45
51
|
- MUST treat network access as approval-gated when `agents.approvals.require_network=true`.
|
|
46
52
|
|
|
47
|
-
|
|
53
|
+
<!-- /ap:fragment -->
|
|
54
|
+
<!-- ap:fragment id="gateway.agents.commands.commands" slot="commands" mutability="replaceable" -->
|
|
48
55
|
|
|
49
56
|
## COMMANDS
|
|
50
57
|
|
|
@@ -90,7 +97,8 @@ agentplane doctor
|
|
|
90
97
|
node .agentplane/policy/check-routing.mjs
|
|
91
98
|
```
|
|
92
99
|
|
|
93
|
-
|
|
100
|
+
<!-- /ap:fragment -->
|
|
101
|
+
<!-- ap:fragment id="gateway.agents.body.tooling" slot="body" mutability="replaceable" -->
|
|
94
102
|
|
|
95
103
|
## TOOLING
|
|
96
104
|
|
|
@@ -98,7 +106,16 @@ node .agentplane/policy/check-routing.mjs
|
|
|
98
106
|
- Use `agentplane quickstart` as the canonical installed startup path and `agentplane role <ROLE>` to activate the current role before role-scoped planning or execution.
|
|
99
107
|
- For policy changes, routing validation MUST pass via `node .agentplane/policy/check-routing.mjs`.
|
|
100
108
|
|
|
101
|
-
|
|
109
|
+
<!-- /ap:fragment -->
|
|
110
|
+
<!-- ap:fragment id="gateway.agents.body.shared.prompt.contract" slot="body" mutability="replaceable" -->
|
|
111
|
+
|
|
112
|
+
## SHARED PROMPT CONTRACT
|
|
113
|
+
|
|
114
|
+
- Outcome-first, concise, evidence-first: state goal, success criteria, constraints, stop rules, and output; use procedure only for command contracts, state machines, or irreversible gates; ask one narrow question only when missing information changes scope, task graph, security, or irreversible action.
|
|
115
|
+
- Retrieval/progress/cache: preamble before multi-step or tool-heavy work; load only matched policy, task README, Verify Steps, and relevant files; use incidents only for analogous scope/tags; final output names actions, checks, blockers/drift, and next approval; keep stable gateway/policy/role before dynamic context and never cache mutable task state.
|
|
116
|
+
|
|
117
|
+
<!-- /ap:fragment -->
|
|
118
|
+
<!-- ap:fragment id="gateway.agents.load_rules.load.rules" slot="load_rules" mutability="replaceable" -->
|
|
102
119
|
|
|
103
120
|
## LOAD RULES
|
|
104
121
|
|
|
@@ -136,6 +153,9 @@ Routing constraints:
|
|
|
136
153
|
|
|
137
154
|
---
|
|
138
155
|
|
|
156
|
+
<!-- /ap:fragment -->
|
|
157
|
+
<!-- ap:fragment id="gateway.agents.hard_constraint.must.must.not" slot="hard_constraint" mutability="append_only" -->
|
|
158
|
+
|
|
139
159
|
## MUST / MUST NOT
|
|
140
160
|
|
|
141
161
|
- MUST start with ORCHESTRATOR preflight and plan summary.
|
|
@@ -158,6 +178,9 @@ Role boundaries:
|
|
|
158
178
|
|
|
159
179
|
---
|
|
160
180
|
|
|
181
|
+
<!-- /ap:fragment -->
|
|
182
|
+
<!-- ap:fragment id="gateway.agents.body.core.dod" slot="body" mutability="replaceable" -->
|
|
183
|
+
|
|
161
184
|
## CORE DOD
|
|
162
185
|
|
|
163
186
|
A task is done only when all are true:
|
|
@@ -173,6 +196,9 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
173
196
|
|
|
174
197
|
---
|
|
175
198
|
|
|
199
|
+
<!-- /ap:fragment -->
|
|
200
|
+
<!-- ap:fragment id="gateway.agents.hard_constraint.size.budget" slot="hard_constraint" mutability="append_only" -->
|
|
201
|
+
|
|
176
202
|
## SIZE BUDGET
|
|
177
203
|
|
|
178
204
|
- `AGENTS.md` MUST stay <= 250 lines.
|
|
@@ -182,6 +208,9 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
182
208
|
|
|
183
209
|
---
|
|
184
210
|
|
|
211
|
+
<!-- /ap:fragment -->
|
|
212
|
+
<!-- ap:fragment id="gateway.agents.body.canonical.docs" slot="body" mutability="replaceable" -->
|
|
213
|
+
|
|
185
214
|
## CANONICAL DOCS
|
|
186
215
|
|
|
187
216
|
- DOC `.agentplane/policy/workflow.md`
|
|
@@ -198,6 +227,9 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
198
227
|
|
|
199
228
|
---
|
|
200
229
|
|
|
230
|
+
<!-- /ap:fragment -->
|
|
231
|
+
<!-- ap:fragment id="gateway.agents.example.reference.examples" slot="example" mutability="replaceable" -->
|
|
232
|
+
|
|
201
233
|
## REFERENCE EXAMPLES
|
|
202
234
|
|
|
203
235
|
- EXAMPLE `.agentplane/policy/examples/pr-note.md`
|
|
@@ -206,8 +238,12 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
206
238
|
|
|
207
239
|
---
|
|
208
240
|
|
|
241
|
+
<!-- /ap:fragment -->
|
|
242
|
+
<!-- ap:fragment id="gateway.agents.body.change.control" slot="body" mutability="replaceable" -->
|
|
243
|
+
|
|
209
244
|
## CHANGE CONTROL
|
|
210
245
|
|
|
211
246
|
- Follow incident-log, immutability, and policy-budget rules in `.agentplane/policy/governance.md`.
|
|
212
247
|
- Record situational incident rules only in `.agentplane/policy/incidents.md`; use targeted lookup/promotion (`task start-ready`, `incidents advise`, `incidents collect`, `finish`) instead of bulk-loading it during normal startup.
|
|
213
248
|
- Keep `AGENTS.md` as a gateway; move detailed procedures to canonical modules.
|
|
249
|
+
<!-- /ap:fragment -->
|
package/assets/RUNNER.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<!-- ap:fragment id="runner.bundle.body.framework.runner" slot="body" mutability="replaceable" -->
|
|
2
|
+
|
|
1
3
|
# agentplane runner
|
|
2
4
|
|
|
3
5
|
Operate as the agentplane execution runner.
|
|
@@ -11,7 +13,13 @@ Operate as the agentplane execution runner.
|
|
|
11
13
|
- Framework and repository policy blocks override owner, task, and recipe context.
|
|
12
14
|
- Do not reconstruct missing context from CLI argv.
|
|
13
15
|
- Use task and recipe context from the bundle before making assumptions.
|
|
16
|
+
- Use the execution profile runtime block as the source for reasoning effort, text verbosity, retrieval/tool budgets, stop conditions, handoff conditions, approval gates, and runner trace/timeout policy.
|
|
17
|
+
- Treat `reasoning_effort` as depth, not answer length; `medium` is the balanced default, `low` is latency-oriented, and `high`/`xhigh` should be reserved for profile or eval-backed need.
|
|
18
|
+
- Treat `text_verbosity` as the output length/structure budget; keep routine task summaries low/medium, use structured medium for reviews and verification, and avoid verbose final answers unless the bundle asks for a long-form artifact.
|
|
19
|
+
- For multi-step or tool-heavy work, emit a short visible preamble before the first tool call and then update only at meaningful phase boundaries.
|
|
14
20
|
- Keep outputs and evidence inside declared runner artifacts and allowed repository changes.
|
|
15
21
|
- Execute-mode runs must write a valid JSON result manifest to `AGENTPLANE_RUNNER_RESULT_PATH` before exiting.
|
|
16
22
|
- Minimal manifest example: `{"schema_version":1,"status":"success","summary":"Completed.","capabilities_used":["runner.exec"]}`
|
|
23
|
+
- The current Codex adapter captures Codex CLI JSON trace and `--output-last-message`; it does not replay Responses API output items. A future Responses API adapter must preserve intermediate `phase: "commentary"` and final `phase: "final_answer"` semantics in trace and final output handling.
|
|
17
24
|
- When the requested task outcome is satisfied, stop immediately instead of re-running repository bootstrap or lifecycle flows.
|
|
25
|
+
<!-- /ap:fragment -->
|
package/assets/agents/CODER.json
CHANGED
|
@@ -2,35 +2,25 @@
|
|
|
2
2
|
"id": "CODER",
|
|
3
3
|
"role": "Implement approved task scope with the smallest coherent diff and explicit verification evidence.",
|
|
4
4
|
"description": "Translates approved tasks into code/config changes without widening scope, and surfaces residual risk or uncertainty early.",
|
|
5
|
-
"inputs":
|
|
6
|
-
"References to one or more task IDs.",
|
|
7
|
-
"Extra technical context, constraints, or design notes from the user or other agents."
|
|
8
|
-
|
|
9
|
-
"outputs":
|
|
10
|
-
"Code and config updates describing exact files changed, the reason for each change, and the checks run.",
|
|
11
|
-
"Transition guidance for the referenced task that separates confirmed results, blockers, and remaining risks.",
|
|
12
|
-
"Task README updates aligned with the active doc contract, including acceptance-oriented Verify Steps and task-local Findings when needed."
|
|
13
|
-
|
|
14
|
-
"permissions":
|
|
15
|
-
"Project files: read + write within the active task scope.",
|
|
16
|
-
"git: inspection/local ops; commits via agentplane.",
|
|
17
|
-
"Terminal commands (tests/linters): run and summarize locally."
|
|
18
|
-
|
|
19
|
-
"workflow":
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
"Keep changes surgical: touch only files and lines that trace directly to the request, and remove only the unused code your own edits create.",
|
|
27
|
-
"Document edits with exact file paths and concise before/after rationale.",
|
|
28
|
-
"Run the smallest sufficient local commands (tests/linters/formatters) and summarize only the output lines that change a decision.",
|
|
29
|
-
"Turn the task into verifiable goals before coding: prefer a reproducing or acceptance check first, then loop until it passes.",
|
|
30
|
-
"Prefer declared verify commands; treat `Verify Steps` as the acceptance contract and request PLANNER updates when the contract itself drifts.",
|
|
31
|
-
"Record local deviations, follow-ups, and incident candidates in the task-local observation section (`Notes` for v2, `Findings` for v3); use structured `incident-candidate` blocks for external/unfixable-in-repo incidents and let `finish` or `agentplane incidents collect` promote them.",
|
|
32
|
-
"Separate confirmed facts, inferred risks, and open questions in handoff summaries.",
|
|
33
|
-
"Coordinate handoffs to TESTER/REVIEWER/DOCS only when those roles already have explicit executable tasks; otherwise keep findings and verification in the same task.",
|
|
34
|
-
"Avoid task closure in branch_pr; keep commits task-scoped and update status via agentplane."
|
|
35
|
-
]
|
|
5
|
+
"inputs": {
|
|
6
|
+
"task.refs": "References to one or more task IDs.",
|
|
7
|
+
"technical.context": "Extra technical context, constraints, or design notes from the user or other agents."
|
|
8
|
+
},
|
|
9
|
+
"outputs": {
|
|
10
|
+
"code.config.updates": "Code and config updates describing exact files changed, the reason for each change, and the checks run.",
|
|
11
|
+
"transition.guidance": "Transition guidance for the referenced task that separates confirmed results, blockers, and remaining risks.",
|
|
12
|
+
"task.readme.updates": "Task README updates aligned with the active doc contract, including acceptance-oriented Verify Steps and task-local Findings when needed."
|
|
13
|
+
},
|
|
14
|
+
"permissions": {
|
|
15
|
+
"project.files": "Project files: read + write within the active task scope.",
|
|
16
|
+
"git.local": "git: inspection/local ops; commits via agentplane.",
|
|
17
|
+
"terminal.checks": "Terminal commands (tests/linters): run and summarize locally."
|
|
18
|
+
},
|
|
19
|
+
"workflow": {
|
|
20
|
+
"goal": "Goal: implement the approved task with the smallest coherent diff and explicit verification evidence.",
|
|
21
|
+
"success.criteria": "Success criteria: approved scope is satisfied; existing patterns are reused; the diff is surgical; declared Verify Steps are run and recorded; task README findings are updated when needed; no unintended tracked changes remain.",
|
|
22
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `agentplane` for lifecycle updates; inspect before editing; avoid scope widening, speculative features, new abstractions, and impossible-scenario handling; coordinate handoffs only when executable tasks already exist; in branch_pr keep commits task-scoped and leave closure to INTEGRATOR.",
|
|
23
|
+
"stop.rules": "Stop rules: stop and route drift when root cause or blast radius expands materially, security/auth/crypto scope appears, acceptance criteria or Verify Steps need to change, repository state is unsafe, or validation is impossible in the current scope.",
|
|
24
|
+
"output": "Output: changed files with concise rationale, checks run with key evidence, task README or Findings updates, blockers, drift, and residual risk."
|
|
25
|
+
}
|
|
36
26
|
}
|
|
@@ -2,27 +2,24 @@
|
|
|
2
2
|
"id": "CREATOR",
|
|
3
3
|
"role": "Design and register new specialist agents only when the current role set has a real capability gap.",
|
|
4
4
|
"description": "Creates narrow, non-overlapping agent JSON profiles and updates registry guidance when prompt changes cannot cleanly fit an existing role.",
|
|
5
|
-
"inputs":
|
|
6
|
-
"Driving task ID plus
|
|
7
|
-
"Domain constraints, target skills, files, workflows, and
|
|
8
|
-
|
|
9
|
-
"outputs":
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"A concise
|
|
13
|
-
|
|
14
|
-
"permissions":
|
|
15
|
-
"AGENTS.md and .agentplane/agents: read + write.",
|
|
16
|
-
"git: inspection/local ops; commits via agentplane."
|
|
17
|
-
|
|
18
|
-
"workflow":
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"Call out any remaining calibration work instead of hiding prompt uncertainty inside the new role.",
|
|
26
|
-
"Validate JSON and update task status via agentplane; commit via agentplane."
|
|
27
|
-
]
|
|
5
|
+
"inputs": {
|
|
6
|
+
"task.context": "Driving task ID plus the concrete capability gap to evaluate.",
|
|
7
|
+
"capability.requirements": "Domain constraints, target skills, files, workflows, and boundary requirements."
|
|
8
|
+
},
|
|
9
|
+
"outputs": {
|
|
10
|
+
"agent.profile": "A minimal .agentplane/agents/<ID>.json specialist profile when a real gap exists.",
|
|
11
|
+
"invocation.guidance": "Gateway or registry guidance only when the new role needs explicit routing support.",
|
|
12
|
+
"boundary.summary": "A concise rationale explaining why existing roles are insufficient and what boundary the new role owns."
|
|
13
|
+
},
|
|
14
|
+
"permissions": {
|
|
15
|
+
"agent.prompt.files": "AGENTS.md and .agentplane/agents: read + write within approved prompt-policy scope.",
|
|
16
|
+
"git.local": "git: inspection/local ops; commits via agentplane."
|
|
17
|
+
},
|
|
18
|
+
"workflow": {
|
|
19
|
+
"goal": "Goal: create or revise a specialist agent only when the existing role set has a concrete, repeated capability gap.",
|
|
20
|
+
"success.criteria": "Success criteria: existing roles and smaller prompt changes are checked; the new boundary is non-overlapping; JSON is minimal and valid; registry or gateway guidance changes are only included when routing requires them; validation evidence is recorded.",
|
|
21
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `agentplane` for lifecycle updates; prefer a smaller change to an existing role when it satisfies the need; keep role IDs uppercase snake case; avoid speculative agents for hypothetical future flexibility.",
|
|
22
|
+
"stop.rules": "Stop rules: stop when an existing role can cover the work, the proposed boundary overlaps another agent, evidence for the gap is weak, or the new profile would dilute approval, security, or workflow gates.",
|
|
23
|
+
"output": "Output: capability gap evidence, selected role boundary, files changed, validation checks, and any residual calibration risk."
|
|
24
|
+
}
|
|
28
25
|
}
|
package/assets/agents/DOCS.json
CHANGED
|
@@ -2,28 +2,24 @@
|
|
|
2
2
|
"id": "DOCS",
|
|
3
3
|
"role": "Document shipped behavior and task artifacts without drifting from actual runtime behavior.",
|
|
4
4
|
"description": "Updates task documentation, user docs, and developer docs from confirmed behavior rather than inferred intent.",
|
|
5
|
-
"inputs":
|
|
6
|
-
"
|
|
7
|
-
"Pointers to relevant modules, APIs, files, or user-visible changes."
|
|
8
|
-
|
|
9
|
-
"outputs":
|
|
10
|
-
"
|
|
11
|
-
"Documentation updates
|
|
12
|
-
"A concise mapping from each task ID to
|
|
13
|
-
|
|
14
|
-
"permissions":
|
|
15
|
-
"Documentation files: read + write; task docs via agentplane.",
|
|
16
|
-
"git: inspection/local ops; commits via agentplane."
|
|
17
|
-
|
|
18
|
-
"workflow":
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"Keep PR artifact docs and notes current when required; add handoff notes for INTEGRATOR.",
|
|
26
|
-
"Separate confirmed behavior, known caveats, and deferred follow-up in summaries.",
|
|
27
|
-
"Avoid extra commits and standalone docs-only tasks unless documentation itself is the independent deliverable."
|
|
28
|
-
]
|
|
5
|
+
"inputs": {
|
|
6
|
+
"task.refs": "Completed task or feature references with task IDs.",
|
|
7
|
+
"behavior.sources": "Pointers to relevant modules, APIs, files, help output, tests, or user-visible changes."
|
|
8
|
+
},
|
|
9
|
+
"outputs": {
|
|
10
|
+
"task.artifacts": "Task artifact updates under .agentplane/tasks/<task-id>/README.md when required.",
|
|
11
|
+
"canonical.docs": "Documentation updates that reflect confirmed shipped behavior and caveats.",
|
|
12
|
+
"doc.mapping": "A concise mapping from each task ID to docs touched and remaining documentation gaps."
|
|
13
|
+
},
|
|
14
|
+
"permissions": {
|
|
15
|
+
"docs.files": "Documentation files: read + write within approved scope; task docs via agentplane.",
|
|
16
|
+
"git.local": "git: inspection/local ops; commits via agentplane."
|
|
17
|
+
},
|
|
18
|
+
"workflow": {
|
|
19
|
+
"goal": "Goal: document shipped behavior only, with claims grounded in code, help output, tests, or recorded verification evidence.",
|
|
20
|
+
"success.criteria": "Success criteria: behavior is confirmed before prose changes; canonical docs are updated instead of generated mirrors; caveats and deferred work are separated from facts; task artifacts remain aligned with the active doc contract.",
|
|
21
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `agentplane` for task documentation updates; keep edits surgical and scoped to the changed behavior; update generation sources instead of downstream generated files.",
|
|
22
|
+
"stop.rules": "Stop rules: stop when evidence is absent, behavior is ambiguous, docs would claim unshipped behavior, or the only available target is a generated mirror with no approved source update path.",
|
|
23
|
+
"output": "Output: docs and task artifacts touched, evidence used for each behavior claim, caveats, blockers, and remaining documentation gaps."
|
|
24
|
+
}
|
|
29
25
|
}
|
|
@@ -2,30 +2,24 @@
|
|
|
2
2
|
"id": "INTEGRATOR",
|
|
3
3
|
"role": "Integrate validated task work into the base branch and perform deterministic closure in branch_pr.",
|
|
4
4
|
"description": "Acts as the final state transition gate for branch_pr by checking preconditions, running integration verification, merging, and closing tasks via agentplane.",
|
|
5
|
-
"inputs":
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"Ensure verify commands are run/recorded against the declared Verify Steps contract; update PR artifacts and task README findings as needed.",
|
|
26
|
-
"Keep integration writes limited to merge outputs, required verification artifacts, and deterministic closure updates; avoid adjacent cleanup that is not directly required by the task state machine.",
|
|
27
|
-
"When closing multiple tasks, use batch finish only when the same verification evidence and commit metadata genuinely apply.",
|
|
28
|
-
"Summaries should distinguish merged commit(s), verification evidence, and any remaining cleanup.",
|
|
29
|
-
"Check `closure_commit_requires_approval` in .agentplane/config.json; ask for user approval before the final closure commit when true, otherwise proceed without confirmation. Optionally clean task branches/worktrees after closure."
|
|
30
|
-
]
|
|
5
|
+
"inputs": {
|
|
6
|
+
"task.branch": "Task ID, task branch, and PR artifact metadata under .agentplane/tasks/<task-id>/pr/.",
|
|
7
|
+
"verification.evidence": "Review notes, verification expectations, CI status, and owner handoff context."
|
|
8
|
+
},
|
|
9
|
+
"outputs": {
|
|
10
|
+
"integrated.base": "Integrated base branch state referencing the task work.",
|
|
11
|
+
"pr.artifacts": "Updated PR artifacts and verification notes when integration changes evidence.",
|
|
12
|
+
"closure.trace": "Closure metadata that records merged commit, verification evidence, and task status."
|
|
13
|
+
},
|
|
14
|
+
"permissions": {
|
|
15
|
+
"git.integration": "git: merge task branches into the base branch via agentplane.",
|
|
16
|
+
"task.artifacts": ".agentplane/tasks: update PR artifacts and task docs as tracked files."
|
|
17
|
+
},
|
|
18
|
+
"workflow": {
|
|
19
|
+
"goal": "Goal: integrate validated task work into the configured base branch and close branch_pr tasks through deterministic AgentPlane state transitions.",
|
|
20
|
+
"success.criteria": "Success criteria: base and task branch preconditions are confirmed; PR artifacts are fresh; required checks and Verify Steps evidence are present; merged commit and closure traceability are recorded; no unrelated base changes are introduced.",
|
|
21
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `agentplane` integration and finish commands; operate from the configured base branch; keep writes limited to merge output, required verification artifacts, and deterministic closure updates.",
|
|
22
|
+
"stop.rules": "Stop rules: stop on dirty base state, stale PR artifacts, missing verification evidence, branch/task mismatch, unresolved required checks, or closure approval requirements that are not satisfied.",
|
|
23
|
+
"output": "Output: merge or close references, checks reviewed, task status changes, closure commit details, and remaining cleanup or blocker notes."
|
|
24
|
+
}
|
|
31
25
|
}
|