@phnx-labs/agents-cli 1.17.5 → 1.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +52 -0
- package/dist/commands/workflows.js +28 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.17.6
|
|
4
|
+
|
|
5
|
+
**Workflows**
|
|
6
|
+
|
|
7
|
+
- New `workflows` skill — author-and-run guide for workflow bundles (`WORKFLOW.md` frontmatter, `subagents/` directory for multi-agent pipelines, scoped `skills/` and `plugins/`, sharing via `agents repo push` or GitHub install). Calls out the `--mode plan` deadlock that bites workflows which need to post comments or edit files.
|
|
8
|
+
- `agents workflows --help` rewritten with a structure diagram, project > user > system resolution order, and an explicit note that workflows mutating state need `--mode edit` or `--mode full` to avoid a headless deadlock at `ExitPlanMode`.
|
|
9
|
+
- README gains a `Workflows` section between Teams and Browser covering the bundle layout, frontmatter, subagents/skills/plugins, and the `--mode` requirement.
|
|
10
|
+
|
|
3
11
|
## 1.17.4
|
|
4
12
|
|
|
5
13
|
**Browser**
|
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ Also available as `ag` -- all commands work with both `agents` and `ag`.
|
|
|
47
47
|
- [Sessions across agents](#sessions-across-agents)
|
|
48
48
|
- [Run open models through Claude Code](#run-open-models-through-claude-code)
|
|
49
49
|
- [Teams](#teams)
|
|
50
|
+
- [Workflows](#workflows)
|
|
50
51
|
- [Browser](#browser)
|
|
51
52
|
- [Secrets](#secrets)
|
|
52
53
|
- [Routines](#routines)
|
|
@@ -244,6 +245,57 @@ Team state is observable via `agents teams list --json` / `agents teams status -
|
|
|
244
245
|
|
|
245
246
|
---
|
|
246
247
|
|
|
248
|
+
## Workflows
|
|
249
|
+
|
|
250
|
+
Bundle an orchestrator prompt with optional subagents, skills, and plugins into a named, reusable pipeline. One bundle, one invocation.
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
# Use a workflow — workflow name goes in the agent slot
|
|
254
|
+
agents run code-review "review PR #42 on acme/api"
|
|
255
|
+
|
|
256
|
+
# List + inspect
|
|
257
|
+
agents workflows list
|
|
258
|
+
agents workflows view code-review
|
|
259
|
+
|
|
260
|
+
# Install from GitHub or local
|
|
261
|
+
agents workflows add gh:yourteam/code-review
|
|
262
|
+
agents workflows add ./my-workflow
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
A workflow is a directory:
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
~/.agents/workflows/code-review/
|
|
269
|
+
WORKFLOW.md # YAML frontmatter + orchestrator system prompt
|
|
270
|
+
subagents/ # optional: *.md files exposed to the orchestrator
|
|
271
|
+
security.md
|
|
272
|
+
style.md
|
|
273
|
+
skills/ # optional: knowledge packs scoped to this workflow
|
|
274
|
+
plugins/ # optional: plugin bundles
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
`WORKFLOW.md`'s Markdown body is the orchestrator's system prompt. Files under `subagents/` get copied to `~/.claude/agents/` at run time so the built-in Agent tool can dispatch to them by name — including in parallel. `skills/` and `plugins/` sync into the version home just for the run.
|
|
278
|
+
|
|
279
|
+
```yaml
|
|
280
|
+
# WORKFLOW.md frontmatter
|
|
281
|
+
---
|
|
282
|
+
name: Code Review
|
|
283
|
+
description: Evidence-grounded PR review with file:line citations.
|
|
284
|
+
model: claude-opus-4-7
|
|
285
|
+
tools:
|
|
286
|
+
- Read
|
|
287
|
+
- Grep
|
|
288
|
+
- Bash
|
|
289
|
+
- WebFetch
|
|
290
|
+
---
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Workflows that need to write — post PR comments, edit files, send Slack — should run with `--mode edit` or `--mode full`. `agents run` defaults to `--mode plan` (read-only), which deadlocks at `ExitPlanMode` in headless runs.
|
|
294
|
+
|
|
295
|
+
Resolution is project > user > system: a `<repo>/.agents/workflows/<name>/` overrides a same-named workflow in `~/.agents/workflows/`. Commit project workflows with your repo so teammates get the same pipeline.
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
247
299
|
## Browser
|
|
248
300
|
|
|
249
301
|
Give agents access to a real browser — no relay extension, no cloud service, no Playwright getting blocked.
|
|
@@ -17,21 +17,42 @@ export function registerWorkflowsCommands(program) {
|
|
|
17
17
|
.command('workflows')
|
|
18
18
|
.description('Manage multi-agent pipeline workflows (WORKFLOW.md bundles)')
|
|
19
19
|
.addHelpText('after', `
|
|
20
|
-
Workflows are directory bundles
|
|
21
|
-
|
|
20
|
+
Workflows are directory bundles that define reusable named agent pipelines.
|
|
21
|
+
Run a workflow with:
|
|
22
|
+
agents run <workflow-name> [prompt]
|
|
23
|
+
|
|
24
|
+
Structure:
|
|
25
|
+
~/.agents/workflows/<name>/
|
|
26
|
+
WORKFLOW.md required: YAML frontmatter + orchestrator system prompt
|
|
27
|
+
subagents/*.md optional: subagents the orchestrator can dispatch to
|
|
28
|
+
skills/ optional: knowledge packs scoped to this workflow
|
|
29
|
+
plugins/ optional: plugin bundles scoped to this workflow
|
|
30
|
+
|
|
31
|
+
Resolution: project (.agents/workflows/) > user (~/.agents/workflows/) > system.
|
|
32
|
+
|
|
33
|
+
Note: agents run defaults to --mode plan (read-only). For workflows that
|
|
34
|
+
write files, post comments, or otherwise mutate state, pass --mode edit or
|
|
35
|
+
--mode full or the run will deadlock at ExitPlanMode.
|
|
22
36
|
|
|
23
37
|
Examples:
|
|
24
38
|
# See what workflows are available
|
|
25
39
|
agents workflows list
|
|
26
40
|
|
|
27
|
-
# Install from GitHub
|
|
41
|
+
# Install from GitHub or a local directory
|
|
28
42
|
agents workflows add gh:user/workflows
|
|
43
|
+
agents workflows add ./code-review
|
|
29
44
|
|
|
30
|
-
#
|
|
31
|
-
agents workflows
|
|
45
|
+
# Inspect a workflow's frontmatter and subagents
|
|
46
|
+
agents workflows view code-review
|
|
32
47
|
|
|
33
|
-
#
|
|
34
|
-
agents
|
|
48
|
+
# Run it (workflow name goes in the agent slot)
|
|
49
|
+
agents run code-review "review PR #42"
|
|
50
|
+
|
|
51
|
+
# Run a workflow that posts comments / edits files
|
|
52
|
+
agents run code-review --mode full "review PR #42 and post the review"
|
|
53
|
+
|
|
54
|
+
# Remove from version homes (and central storage on second run)
|
|
55
|
+
agents workflows remove code-review
|
|
35
56
|
`);
|
|
36
57
|
workflowsCmd
|
|
37
58
|
.command('list [agent]')
|
package/package.json
CHANGED