agjan 0.0.19 → 0.0.20
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/dist/cli.js +8 -0
- package/dist/commands/log.js +1 -1
- package/dist/commands/skill.js +22 -0
- package/dist/commands/summary.js +37 -0
- package/dist/progress-view.js +1 -0
- package/dist/story.js +110 -0
- package/docs/guide.md +27 -0
- package/kit/skills/agjan-build/SKILL.md +19 -7
- package/kit/skills/agjan-design/SKILL.md +7 -1
- package/kit/skills/agjan-spec/SKILL.md +2 -2
- package/kit/skills/agjan-verify/SKILL.md +9 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -18,6 +18,8 @@ import * as lint from './commands/lint.js';
|
|
|
18
18
|
import * as uiTest from './commands/ui-test.js';
|
|
19
19
|
import * as models from './commands/models.js';
|
|
20
20
|
import * as findings from './commands/findings.js';
|
|
21
|
+
import * as summary from './commands/summary.js';
|
|
22
|
+
import * as skill from './commands/skill.js';
|
|
21
23
|
import { onEvent } from './log.js';
|
|
22
24
|
import { refreshAfterEvent } from './progress-view.js';
|
|
23
25
|
const COMMANDS = {
|
|
@@ -41,6 +43,8 @@ const COMMANDS = {
|
|
|
41
43
|
auto: gates.auto,
|
|
42
44
|
review: review.run,
|
|
43
45
|
findings: findings.run,
|
|
46
|
+
summary: summary.run,
|
|
47
|
+
skill: skill.run,
|
|
44
48
|
log: log.run,
|
|
45
49
|
'pr-summary': prSummary.run,
|
|
46
50
|
report: report.run,
|
|
@@ -98,6 +102,10 @@ Agent and human:
|
|
|
98
102
|
fast path for small changes (record folder under fixes/)
|
|
99
103
|
map start start mapping an existing application (project.md)
|
|
100
104
|
baseline refresh record the watched files in baseline.json
|
|
105
|
+
skill <spec|design|build|verify>
|
|
106
|
+
print the workflow skill (auto mode: the next skill of the run)
|
|
107
|
+
summary [--feature <s>] what has been done so far in plain words, ending with what the
|
|
108
|
+
work waits for
|
|
101
109
|
findings [--all] [--feature <s>]
|
|
102
110
|
the open findings by severity (--all: with resolved and
|
|
103
111
|
accepted ones), and how to decide each
|
package/dist/commands/log.js
CHANGED
|
@@ -56,7 +56,7 @@ export function run(ctx, argv) {
|
|
|
56
56
|
const next = gate === 'spec' ? 'agjan-design' : 'agjan-build';
|
|
57
57
|
ctx.out(`${ctx.style.green(`approved ${gate} automatically`)} (auto mode, switched on by ${feature.approvals.auto.by})`);
|
|
58
58
|
ctx.out(`commit the feature's documents (${message || `${feature.key}: approve ${gate} (auto mode)`}), then continue without stopping:`);
|
|
59
|
-
ctx.out(`your next action is the shell command:
|
|
59
|
+
ctx.out(`your next action is the shell command: npx agjan skill ${next.replace('agjan-', '')} (it prints the skill; then follow it).`);
|
|
60
60
|
ctx.out('A reply without a tool call ends your run: put any note for the user into the same reply as that command.');
|
|
61
61
|
ctx.out(`Do not tell the user to run /${next}: in auto mode you run it, now.`);
|
|
62
62
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { AgjanError, UsageError } from '../errors.js';
|
|
4
|
+
export const HANDOFF_SKILLS = ['spec', 'design', 'build', 'verify'];
|
|
5
|
+
/**
|
|
6
|
+
* agjan skill <spec|design|build|verify>: prints the project's workflow skill, then a closing
|
|
7
|
+
* reminder. In auto mode the agent moves from one skill to the next within one run; reading a
|
|
8
|
+
* long skill and then ending the reply with a summary is how that run breaks (seen twice with
|
|
9
|
+
* Copilot), so what the agent reads last says that its next action is a tool call.
|
|
10
|
+
*/
|
|
11
|
+
export function run(ctx, argv) {
|
|
12
|
+
const [name, ...rest] = argv;
|
|
13
|
+
if (!name || rest.length || !HANDOFF_SKILLS.includes(name)) {
|
|
14
|
+
throw new UsageError(`usage: agjan skill <${HANDOFF_SKILLS.join('|')}>`);
|
|
15
|
+
}
|
|
16
|
+
const file = join(ctx.root, '.claude', 'skills', `agjan-${name}`, 'SKILL.md');
|
|
17
|
+
if (!existsSync(file))
|
|
18
|
+
throw new AgjanError(`${file} does not exist; run 'npx agjan sync' to restore the skills`);
|
|
19
|
+
ctx.out(readFileSync(file, 'utf8').trimEnd());
|
|
20
|
+
ctx.out('', '---', `agjan: you are in the middle of one run (auto mode): you came here from the previous skill, and /agjan-${name} is yours to carry out now.`, 'Your next action is a tool call, not a message: run `npx agjan status`, then follow the skill above from its first step.', 'Do not summarize what was done so far and do not ask the user to run anything: the user gets the summary when the run ends (`npx agjan summary`). A reply without a tool call ends your run.');
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { parseArgs } from 'node:util';
|
|
2
|
+
import { changedFeatures, listFeatures } from '../feature.js';
|
|
3
|
+
import { UsageError } from '../errors.js';
|
|
4
|
+
import { unitModel } from '../progress-view.js';
|
|
5
|
+
import { storyEnd, storyItems } from '../story.js';
|
|
6
|
+
import { markLine } from '../ui.js';
|
|
7
|
+
/**
|
|
8
|
+
* agjan summary [--feature <slug>]: what has been done so far, in plain words and in order
|
|
9
|
+
* (requirement, spec, reviews, revisions, design, build, checks), ending with what the work
|
|
10
|
+
* waits for. The agents put it into their final message; anyone can run it at any time.
|
|
11
|
+
*/
|
|
12
|
+
export function run(ctx, argv) {
|
|
13
|
+
const { values } = parseArgs({ args: argv, options: { feature: { type: 'string' } } });
|
|
14
|
+
const root = ctx.root;
|
|
15
|
+
if (values.feature && !listFeatures(root).includes(values.feature))
|
|
16
|
+
throw new UsageError(`no feature '${values.feature}'`);
|
|
17
|
+
const slugs = values.feature ? [values.feature] : changedFeatures(root, ctx.config);
|
|
18
|
+
const s = ctx.style;
|
|
19
|
+
for (const line of markLine(s, ctx.kit, 'summary'))
|
|
20
|
+
ctx.out(line);
|
|
21
|
+
if (!slugs.length) {
|
|
22
|
+
ctx.out('no changed feature on this branch (pass --feature <slug>; agjan status --all lists every feature)');
|
|
23
|
+
return 0;
|
|
24
|
+
}
|
|
25
|
+
for (const slug of slugs) {
|
|
26
|
+
const model = unitModel(ctx, slug, { now: Date.parse(ctx.now()) });
|
|
27
|
+
ctx.out('', `${s.bold(model.slug)} ${s.gray(`(${model.key})`)}`, '');
|
|
28
|
+
for (const item of storyItems(model))
|
|
29
|
+
ctx.out(` ${s.green('✔')} ${item.text}`);
|
|
30
|
+
const end = storyEnd(model);
|
|
31
|
+
const mark = end.turn === 'you' ? s.violet('⏳') : end.turn === 'agent' ? s.cyan('▶') : s.green('✔');
|
|
32
|
+
ctx.out(` ${mark} ${s.bold(end.text)}`);
|
|
33
|
+
if (end.next)
|
|
34
|
+
ctx.out(` ${s.gray('Your next step:')} ${s.cyan(end.next)}`);
|
|
35
|
+
}
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
package/dist/progress-view.js
CHANGED
|
@@ -269,6 +269,7 @@ export function unitModel(ctx, slug, { onBase = false, now = Date.now() } = {})
|
|
|
269
269
|
now: stage.now,
|
|
270
270
|
optional: stage.turn === 'done' ? finalSteps(ctx.root, unit, { accepted: true }).optional : [],
|
|
271
271
|
start: iso(start),
|
|
272
|
+
created: unit.approvals.feature.created_at_utc,
|
|
272
273
|
end: iso(end),
|
|
273
274
|
last: iso(last),
|
|
274
275
|
host,
|
package/dist/story.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const PLAIN_SEVERITY = { blocker: 'blocking', major: 'important', minor: 'minor' };
|
|
2
|
+
/** "3 findings (1 important, 2 minor)", or "no findings". */
|
|
3
|
+
function findingsText(model, ids) {
|
|
4
|
+
if (!ids.length)
|
|
5
|
+
return 'no findings';
|
|
6
|
+
const count = {};
|
|
7
|
+
for (const id of ids)
|
|
8
|
+
count[model.findings[id].severity] = (count[model.findings[id].severity] ?? 0) + 1;
|
|
9
|
+
const parts = ['blocker', 'major', 'minor'].filter((k) => count[k]).map((k) => `${count[k]} ${PLAIN_SEVERITY[k]}`);
|
|
10
|
+
return `${ids.length} finding${ids.length === 1 ? '' : 's'} (${parts.join(', ')})`;
|
|
11
|
+
}
|
|
12
|
+
/** What a review step is called in a sentence the first time, again, and what is revised after it. */
|
|
13
|
+
function subject(step) {
|
|
14
|
+
if (step === 'spec')
|
|
15
|
+
return { name: 'the spec', first: 'Spec reviewed', again: 'Spec reviewed again', revised: 'Spec revised', clean: 'no findings' };
|
|
16
|
+
if (step === 'design')
|
|
17
|
+
return { name: 'the design', first: 'Design reviewed', again: 'Design reviewed again', revised: 'Design revised', clean: 'no findings' };
|
|
18
|
+
if (step === 'design:light')
|
|
19
|
+
return { name: 'the spec and design', first: 'Spec and design reviewed', again: 'Spec and design reviewed again', revised: 'Spec and design revised', clean: 'no findings' };
|
|
20
|
+
if (step === 'qa')
|
|
21
|
+
return { name: 'the independent tests', first: 'Independent tests written from the spec', again: 'Independent tests run again', revised: 'Code fixed', clean: 'all passed' };
|
|
22
|
+
if (step === 'verify')
|
|
23
|
+
return { name: 'the final check', first: 'Final check', again: 'Final check repeated', revised: 'Code fixed', clean: 'everything checks out' };
|
|
24
|
+
const part = step.replace(/^build:/, '');
|
|
25
|
+
return { name: `the code (${part})`, first: `Code checked (${part})`, again: `Code checked again (${part})`, revised: `Code revised (${part})`, clean: 'no findings' };
|
|
26
|
+
}
|
|
27
|
+
/** The part of an e-mail address before the `@`: names read better than addresses. */
|
|
28
|
+
const who = (by) => by.split('@')[0];
|
|
29
|
+
/** The chronological list of what has been done, from the progress model. */
|
|
30
|
+
export function storyItems(model) {
|
|
31
|
+
const items = [];
|
|
32
|
+
const t = (iso) => Date.parse(iso);
|
|
33
|
+
const add = (at, text, rank = 5) => items.push({ at: typeof at === 'number' ? at : t(at), text, rank });
|
|
34
|
+
// The time the unit was created, not the first logged event: `agjan new` logs nothing.
|
|
35
|
+
add(model.created && model.created < model.start ? model.created : model.start, model.kind === 'feature' ? 'Requirement received' : model.kind === 'fix' ? 'Change requested' : 'Mapping of the project started', 0);
|
|
36
|
+
// Before the first review of a step, its document was prepared.
|
|
37
|
+
const firstReview = (steps) => model.reviews.filter((r) => steps.includes(r.step)).map((r) => t(r.at)).sort((a, b) => a - b)[0];
|
|
38
|
+
const specAt = firstReview(['spec']) ?? (model.mode === 'light' ? firstReview(['design:light']) : undefined);
|
|
39
|
+
if (specAt !== undefined)
|
|
40
|
+
add(specAt - 2, 'Draft spec prepared', 2);
|
|
41
|
+
const designAt = firstReview(['design', 'design:light']);
|
|
42
|
+
if (designAt !== undefined)
|
|
43
|
+
add(designAt - 2, `Design prepared (${model.tasks.length} task${model.tasks.length === 1 ? '' : 's'})`, 2);
|
|
44
|
+
for (const e of model.events) {
|
|
45
|
+
if (e.event === 'auto-on')
|
|
46
|
+
add(e.at, 'Auto mode switched on: spec and design are approved automatically after their review', 1);
|
|
47
|
+
if (e.event === 'auto-off')
|
|
48
|
+
add(e.at, 'Auto mode switched off');
|
|
49
|
+
if (e.event === 'amendment-proposed')
|
|
50
|
+
add(e.at, `Scope change proposed${e.amendment ? ` (${e.amendment})` : ''}`);
|
|
51
|
+
if (e.event === 'round-granted')
|
|
52
|
+
add(e.at, `You allowed another review round for ${subject(String(e.step)).name}`);
|
|
53
|
+
}
|
|
54
|
+
// Reviews: a later review of the same step means the work was revised in between.
|
|
55
|
+
const seen = new Map();
|
|
56
|
+
for (const r of [...model.reviews].sort((a, b) => t(a.at) - t(b.at))) {
|
|
57
|
+
const words = subject(r.step);
|
|
58
|
+
const before = seen.get(r.step) ?? 0;
|
|
59
|
+
seen.set(r.step, before + 1);
|
|
60
|
+
if (before)
|
|
61
|
+
add(t(r.at) - 1, words.revised, 3);
|
|
62
|
+
const fixed = r.resolves.length ? `; ${r.resolves.length} earlier finding${r.resolves.length === 1 ? '' : 's'} fixed` : '';
|
|
63
|
+
add(r.at, `${before ? words.again : words.first}: ${r.findings.length ? findingsText(model, r.findings) : words.clean}${fixed}`, 4);
|
|
64
|
+
}
|
|
65
|
+
for (const d of model.decisions) {
|
|
66
|
+
const auto = d.by.startsWith('auto mode');
|
|
67
|
+
const approved = /^approved (spec and design|spec|design)$/.exec(d.what);
|
|
68
|
+
if (approved)
|
|
69
|
+
add(d.at, `${approved[1][0].toUpperCase()}${approved[1].slice(1)} approved ${auto ? 'automatically (auto mode)' : `by ${who(d.by)}`}`);
|
|
70
|
+
else if (d.what === 'accepted the feature')
|
|
71
|
+
add(d.at, `Feature accepted by ${who(d.by)}`);
|
|
72
|
+
else if (d.what.startsWith('accepted '))
|
|
73
|
+
add(d.at, `${d.what.replace('accepted ', 'Finding ')} accepted by ${who(d.by)}${d.detail ? `: ${d.detail}` : ''}`);
|
|
74
|
+
else if (d.what.startsWith('rejected '))
|
|
75
|
+
add(d.at, `${d.what[0].toUpperCase()}${d.what.slice(1)} by ${who(d.by)}${d.detail ? `: ${d.detail}` : ''}`);
|
|
76
|
+
else if (d.what.startsWith('approved amendment'))
|
|
77
|
+
add(d.at, `Scope change approved by ${who(d.by)}`);
|
|
78
|
+
}
|
|
79
|
+
for (const task of model.tasks) {
|
|
80
|
+
if (!task.done)
|
|
81
|
+
continue;
|
|
82
|
+
const at = Math.max(...model.commits.filter((c) => task.commits.includes(c.sha)).map((c) => t(c.at)), 0);
|
|
83
|
+
if (at)
|
|
84
|
+
add(at, `Built: ${task.title}`, 6);
|
|
85
|
+
}
|
|
86
|
+
return items.sort((a, b) => a.at - b.at || a.rank - b.rank);
|
|
87
|
+
}
|
|
88
|
+
/** The command or skill in a "now" text, and the text without it. */
|
|
89
|
+
function splitNow(now) {
|
|
90
|
+
const command = /\((npx agjan [^)]+)\)/.exec(now)?.[1] ?? /(\/agjan-[a-z-]+)/.exec(now)?.[1] ?? null;
|
|
91
|
+
const text = now
|
|
92
|
+
.replace(/\s*\(npx agjan [^)]+\)/, '')
|
|
93
|
+
.replace(/:\s*\/agjan-[a-z-]+.*$/, '')
|
|
94
|
+
.replace(/^verified:\s*/, '')
|
|
95
|
+
.replace(/ in a terminal/g, '')
|
|
96
|
+
.trim();
|
|
97
|
+
return { text, command };
|
|
98
|
+
}
|
|
99
|
+
/** What the story ends with: who or what the work waits for. */
|
|
100
|
+
export function storyEnd(model) {
|
|
101
|
+
if (model.turn === 'merged')
|
|
102
|
+
return { turn: 'merged', text: 'Merged', next: null };
|
|
103
|
+
if (model.turn === 'done')
|
|
104
|
+
return { turn: 'done', text: 'Done: built, verified and accepted', next: null };
|
|
105
|
+
const { text, command } = splitNow(model.now);
|
|
106
|
+
if (model.turn === 'you')
|
|
107
|
+
return { turn: 'you', text: `Now waiting for you: ${text}`, next: command };
|
|
108
|
+
const auto = /^auto mode:\s*(.*)$/.exec(text);
|
|
109
|
+
return { turn: model.turn, text: auto ? `Next, by itself (auto mode): ${auto[1].replace(/ is next$/, '')}` : `Now in progress: ${text}`, next: null };
|
|
110
|
+
}
|
package/docs/guide.md
CHANGED
|
@@ -125,6 +125,7 @@ your terminal:
|
|
|
125
125
|
npx agjan status # what is ready and what blocks it
|
|
126
126
|
npx agjan review show # the reviews and findings
|
|
127
127
|
npx agjan findings # only the open findings, by severity
|
|
128
|
+
npx agjan summary # what has been done so far, in plain words
|
|
128
129
|
npx agjan review report # the latest round, short: verdict, findings, what happens next
|
|
129
130
|
npx agjan approve spec design # light mode; full mode: approve spec, later approve design
|
|
130
131
|
```
|
|
@@ -272,6 +273,31 @@ cannot switch it on: like `approve`, it needs your terminal, and the guard denie
|
|
|
272
273
|
|
|
273
274
|
### Following the progress
|
|
274
275
|
|
|
276
|
+
**`npx agjan summary`** tells what has been done so far in plain words, in order, ending
|
|
277
|
+
with what the work waits for:
|
|
278
|
+
|
|
279
|
+
```text
|
|
280
|
+
team-leave-requests (TLR)
|
|
281
|
+
|
|
282
|
+
✔ Requirement received
|
|
283
|
+
✔ Draft spec prepared
|
|
284
|
+
✔ Spec reviewed: 3 findings (1 important, 2 minor)
|
|
285
|
+
✔ Spec revised
|
|
286
|
+
✔ Spec reviewed again: no findings; 3 earlier findings fixed
|
|
287
|
+
✔ Spec approved automatically (auto mode)
|
|
288
|
+
✔ Design prepared (5 tasks)
|
|
289
|
+
…
|
|
290
|
+
✔ Built: Fiori elements app for managers
|
|
291
|
+
✔ Independent tests written from the spec: all passed
|
|
292
|
+
✔ Final check: everything checks out
|
|
293
|
+
⏳ Now waiting for you: check TLR-AC11 by hand, then accept it
|
|
294
|
+
Your next step: npx agjan approve verify
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
The agent shows it in its message when the build is done (manual mode) and with its final
|
|
298
|
+
message after the verification. Anyone can run it at any time (`--feature <slug>` for another
|
|
299
|
+
feature). The technical timeline, with rounds and commits, is below.
|
|
300
|
+
|
|
275
301
|
agjan keeps a progress page for every unit and regenerates it after every event it
|
|
276
302
|
records (step, review, approval, amendment, fix record):
|
|
277
303
|
|
|
@@ -341,6 +367,7 @@ Run `npx agjan --help` for the full list.
|
|
|
341
367
|
| `lint [--all]` | anyone | the area linters (UI5 linter for Fiori apps) on the changed files |
|
|
342
368
|
| `ui-test [--require]` | anyone | the Playwright UI tests where Chromium can start; otherwise the reason, and a skip |
|
|
343
369
|
| `findings [--all] [--feature <slug>]` | anyone | the open findings by severity, each with file and issue |
|
|
370
|
+
| `summary [--feature <slug>]` | anyone | what has been done so far in plain words, and what the work waits for |
|
|
344
371
|
| `review show [--step <step>]` | anyone | review records, or the material a reviewer gets |
|
|
345
372
|
| `review report [--step <step>]` | anyone | the latest review round as a short report (agents show it after each review) |
|
|
346
373
|
| `pr-summary`, `report` | anyone | PR description; `report.md` with time and tokens |
|
|
@@ -8,6 +8,12 @@ description: Build an approved agjan design task by task, within the approved pa
|
|
|
8
8
|
Implement `tasks.md` in order. The approved design is the contract: build what it says,
|
|
9
9
|
where it says.
|
|
10
10
|
|
|
11
|
+
## Arriving in auto mode
|
|
12
|
+
|
|
13
|
+
In auto mode you reach this skill from the previous one within one run, through `npx agjan skill build`.
|
|
14
|
+
Then start step 1 at once, with a tool call: no summary of the work so far first (the user gets it
|
|
15
|
+
when the run ends, `npx agjan summary`), and no request to run `/agjan-build`: you are running it.
|
|
16
|
+
|
|
11
17
|
## 1. Preconditions
|
|
12
18
|
|
|
13
19
|
`npx agjan status` must show `stage: build` (spec and design approved). Otherwise stop
|
|
@@ -55,13 +61,19 @@ Do not change it silently; `agjan check` fails on it.
|
|
|
55
61
|
|
|
56
62
|
## 4. Done
|
|
57
63
|
|
|
58
|
-
When `npx agjan status` says all tasks are done and reviewed
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
When `npx agjan status` says all tasks are done and reviewed:
|
|
65
|
+
|
|
66
|
+
- **Manual mode:** put the output of `npx agjan summary` into your message unchanged, in a
|
|
67
|
+
code block (what has been done so far, in plain words, and what the work waits for), then
|
|
68
|
+
tell the user to run `/agjan-verify`.
|
|
69
|
+
- **Auto mode** (`npx agjan status` shows `auto on`): do not stop. Your next action is the
|
|
70
|
+
shell command `npx agjan skill verify` (it works on every host), then
|
|
71
|
+
follow that skill; put a one-line note for the user into the same reply, since a reply
|
|
72
|
+
without a tool call ends your run. Do not end your reply with "run `/agjan-verify`": in
|
|
73
|
+
auto mode that is your next action. The summary comes in the final message of
|
|
74
|
+
`/agjan-verify`.
|
|
75
|
+
|
|
76
|
+
Its final acceptance, `npx agjan approve verify`, stays with the user in every mode.
|
|
65
77
|
|
|
66
78
|
## Never
|
|
67
79
|
|
|
@@ -8,6 +8,12 @@ description: Full-mode agjan design. After the spec is approved, the role skills
|
|
|
8
8
|
Answer the approved spec technically: areas, decisions, tasks. Light changes are
|
|
9
9
|
designed by `/agjan-spec`; this skill is for full mode.
|
|
10
10
|
|
|
11
|
+
## Arriving in auto mode
|
|
12
|
+
|
|
13
|
+
In auto mode you reach this skill from the previous one within one run, through `npx agjan skill design`.
|
|
14
|
+
Then start step 1 at once, with a tool call: no summary of the work so far first (the user gets it
|
|
15
|
+
when the run ends, `npx agjan summary`), and no request to run `/agjan-design`: you are running it.
|
|
16
|
+
|
|
11
17
|
## 1. Preconditions
|
|
12
18
|
|
|
13
19
|
Run `npx agjan status`. The spec must be `approved`. If it is not, stop and tell the
|
|
@@ -99,7 +105,7 @@ passing one.
|
|
|
99
105
|
automatically. Commit the feature folder with the message it gives, show the user the
|
|
100
106
|
last review report and one line that the gate passed in auto mode, and
|
|
101
107
|
continue without stopping: your next action is the shell command
|
|
102
|
-
`
|
|
108
|
+
`npx agjan skill build` (it works on every host), then follow that skill.
|
|
103
109
|
Put the one line for the user into the same reply as that command: a reply without a
|
|
104
110
|
tool call ends your run, and the user has to start it again. Do not end your reply with
|
|
105
111
|
"run `/agjan-build`": in auto mode that is your next action, not the user's.
|
|
@@ -135,8 +135,8 @@ with it yourself right away (step 3 below), otherwise the user runs `/agjan-desi
|
|
|
135
135
|
automatically (it says `approved … automatically`). Commit the feature folder with the
|
|
136
136
|
message it gives, show the user the `npx agjan review report` of the last review and
|
|
137
137
|
one line that the gate passed in auto mode, and continue without stopping: your next
|
|
138
|
-
action is the shell command `
|
|
139
|
-
|
|
138
|
+
action is the shell command `npx agjan skill design` (it works on every host;
|
|
139
|
+
`npx agjan skill build` after the combined gate `spec design`), then follow that skill. Put the one line
|
|
140
140
|
for the user into the same reply as that command: a reply without a tool call ends
|
|
141
141
|
your run, and the user has to start it again.
|
|
142
142
|
Do not end your reply with "run `/agjan-design`" (or `/agjan-build`): in auto mode that
|
|
@@ -8,6 +8,12 @@ description: Verify a built agjan feature. Full build, tests and lint, the basel
|
|
|
8
8
|
Prove that the feature is complete and consistent, and hand it to the human, who
|
|
9
9
|
accepts it (Gate 3, `npx agjan approve verify`).
|
|
10
10
|
|
|
11
|
+
## Arriving in auto mode
|
|
12
|
+
|
|
13
|
+
In auto mode you reach this skill from the previous one within one run, through `npx agjan skill verify`.
|
|
14
|
+
Then start step 1 at once, with a tool call: no summary of the work so far first (the user gets it
|
|
15
|
+
when the run ends, `npx agjan summary`), and no request to run `/agjan-verify`: you are running it.
|
|
16
|
+
|
|
11
17
|
## 1. Preconditions
|
|
12
18
|
|
|
13
19
|
`npx agjan status` must say `next: all tasks done and reviewed`. Otherwise stop and
|
|
@@ -121,7 +127,9 @@ Any change after the final review makes it stale; review again after the last ch
|
|
|
121
127
|
- Finish with `npx agjan status --done`. Your final message starts with its output,
|
|
122
128
|
**verbatim, in a code block**: it says that the feature is verified, what was met, and
|
|
123
129
|
the user's turn: try it, check the manual ACs by hand, and accept it in their terminal
|
|
124
|
-
with `npx agjan approve verify`.
|
|
130
|
+
with `npx agjan approve verify`. Then the output of `npx agjan summary`, verbatim, in a
|
|
131
|
+
second code block: the story of the whole work in plain words, ending with what it waits
|
|
132
|
+
for. After it, add only what the user must know that it does
|
|
125
133
|
not say (for example what you could not check yourself, a major you left open and why, or
|
|
126
134
|
an "Unverified" finding you could not settle). Then stop: never run
|
|
127
135
|
`agjan approve` yourself, also in auto mode: the acceptance is always the user's.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agjan",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "Agentic engineering harness for AI coding agents: role agents, human approval gates, independent review and CI-enforced checks. SAP BTP first.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic-engineering",
|