@cluesmith/codev 3.0.0-rc.7 → 3.0.0-rc.9
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/bin/af.js +2 -2
- package/bin/afx.js +8 -0
- package/bin/consult.js +2 -1
- package/bin/team.js +2 -1
- package/dashboard/dist/assets/{index-nr0cXxtf.css → index-Bs8I7N2s.css} +1 -1
- package/dashboard/dist/assets/{index-CTrlY11L.js → index-DleIqu7L.js} +32 -32
- package/dashboard/dist/assets/index-DleIqu7L.js.map +1 -0
- package/dashboard/dist/index.html +2 -2
- package/dist/agent-farm/cli.js +12 -12
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/architect.d.ts +4 -4
- package/dist/agent-farm/commands/architect.d.ts.map +1 -1
- package/dist/agent-farm/commands/architect.js +23 -12
- package/dist/agent-farm/commands/architect.js.map +1 -1
- package/dist/agent-farm/commands/attach.js +8 -8
- package/dist/agent-farm/commands/attach.js.map +1 -1
- package/dist/agent-farm/commands/cron.js +1 -1
- package/dist/agent-farm/commands/cron.js.map +1 -1
- package/dist/agent-farm/commands/db.d.ts +3 -3
- package/dist/agent-farm/commands/db.js +4 -4
- package/dist/agent-farm/commands/db.js.map +1 -1
- package/dist/agent-farm/commands/open.js +2 -2
- package/dist/agent-farm/commands/open.js.map +1 -1
- package/dist/agent-farm/commands/rename.js +1 -1
- package/dist/agent-farm/commands/rename.js.map +1 -1
- package/dist/agent-farm/commands/send.js +3 -3
- package/dist/agent-farm/commands/send.js.map +1 -1
- package/dist/agent-farm/commands/shell.js +3 -3
- package/dist/agent-farm/commands/shell.js.map +1 -1
- package/dist/agent-farm/commands/spawn-roles.d.ts +1 -1
- package/dist/agent-farm/commands/spawn-roles.js +1 -1
- package/dist/agent-farm/commands/spawn-worktree.d.ts +1 -1
- package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.js +80 -13
- package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
- package/dist/agent-farm/commands/spawn.d.ts +6 -6
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +42 -23
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/status.d.ts.map +1 -1
- package/dist/agent-farm/commands/status.js +43 -2
- package/dist/agent-farm/commands/status.js.map +1 -1
- package/dist/agent-farm/commands/team-update.d.ts +1 -1
- package/dist/agent-farm/commands/team-update.js +1 -1
- package/dist/agent-farm/commands/team.d.ts +1 -1
- package/dist/agent-farm/commands/team.js +1 -1
- package/dist/agent-farm/commands/tower-cloud.d.ts +2 -2
- package/dist/agent-farm/commands/tower-cloud.js +3 -3
- package/dist/agent-farm/commands/tower-cloud.js.map +1 -1
- package/dist/agent-farm/commands/tower.js +2 -2
- package/dist/agent-farm/commands/tower.js.map +1 -1
- package/dist/agent-farm/lib/cloud-config.js +2 -2
- package/dist/agent-farm/lib/cloud-config.js.map +1 -1
- package/dist/agent-farm/lib/tunnel-client.js +1 -1
- package/dist/agent-farm/lib/tunnel-client.js.map +1 -1
- package/dist/agent-farm/servers/message-write.d.ts +24 -0
- package/dist/agent-farm/servers/message-write.d.ts.map +1 -0
- package/dist/agent-farm/servers/message-write.js +63 -0
- package/dist/agent-farm/servers/message-write.js.map +1 -0
- package/dist/agent-farm/servers/overview.d.ts +2 -0
- package/dist/agent-farm/servers/overview.d.ts.map +1 -1
- package/dist/agent-farm/servers/overview.js +2 -0
- package/dist/agent-farm/servers/overview.js.map +1 -1
- package/dist/agent-farm/servers/send-buffer.d.ts +4 -3
- package/dist/agent-farm/servers/send-buffer.d.ts.map +1 -1
- package/dist/agent-farm/servers/send-buffer.js +7 -4
- package/dist/agent-farm/servers/send-buffer.js.map +1 -1
- package/dist/agent-farm/servers/tower-cron-parser.js +1 -1
- package/dist/agent-farm/servers/tower-cron-parser.js.map +1 -1
- package/dist/agent-farm/servers/tower-cron.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-cron.js +4 -5
- package/dist/agent-farm/servers/tower-cron.js.map +1 -1
- package/dist/agent-farm/servers/tower-instances.js +3 -3
- package/dist/agent-farm/servers/tower-instances.js.map +1 -1
- package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-routes.js +9 -16
- package/dist/agent-farm/servers/tower-routes.js.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.d.ts +2 -2
- package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.js +47 -18
- package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
- package/dist/agent-farm/servers/tower-tunnel.js +2 -2
- package/dist/agent-farm/servers/tower-tunnel.js.map +1 -1
- package/dist/agent-farm/servers/tower-utils.d.ts +9 -6
- package/dist/agent-farm/servers/tower-utils.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-utils.js +12 -6
- package/dist/agent-farm/servers/tower-utils.js.map +1 -1
- package/dist/agent-farm/types.d.ts +9 -0
- package/dist/agent-farm/types.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.d.ts +11 -0
- package/dist/agent-farm/utils/config.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.js +21 -0
- package/dist/agent-farm/utils/config.js.map +1 -1
- package/dist/agent-farm/utils/harness.d.ts +85 -0
- package/dist/agent-farm/utils/harness.d.ts.map +1 -0
- package/dist/agent-farm/utils/harness.js +212 -0
- package/dist/agent-farm/utils/harness.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +17 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.js +2 -2
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/consult/index.d.ts +6 -2
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +114 -131
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +54 -8
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.js +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/porch/artifacts.d.ts +59 -0
- package/dist/commands/porch/artifacts.d.ts.map +1 -0
- package/dist/commands/porch/artifacts.js +358 -0
- package/dist/commands/porch/artifacts.js.map +1 -0
- package/dist/commands/porch/checks.d.ts +8 -1
- package/dist/commands/porch/checks.d.ts.map +1 -1
- package/dist/commands/porch/checks.js +98 -1
- package/dist/commands/porch/checks.js.map +1 -1
- package/dist/commands/porch/index.d.ts +8 -7
- package/dist/commands/porch/index.d.ts.map +1 -1
- package/dist/commands/porch/index.js +49 -45
- package/dist/commands/porch/index.js.map +1 -1
- package/dist/commands/porch/next.d.ts.map +1 -1
- package/dist/commands/porch/next.js +18 -46
- package/dist/commands/porch/next.js.map +1 -1
- package/dist/commands/porch/notify.d.ts +2 -2
- package/dist/commands/porch/notify.js +5 -5
- package/dist/commands/porch/notify.js.map +1 -1
- package/dist/commands/porch/prompts.d.ts +2 -1
- package/dist/commands/porch/prompts.d.ts.map +1 -1
- package/dist/commands/porch/prompts.js +19 -7
- package/dist/commands/porch/prompts.js.map +1 -1
- package/dist/commands/porch/state.d.ts +5 -2
- package/dist/commands/porch/state.d.ts.map +1 -1
- package/dist/commands/porch/state.js +38 -6
- package/dist/commands/porch/state.js.map +1 -1
- package/dist/lib/config.d.ts +14 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +7 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/forge-contracts.d.ts +6 -0
- package/dist/lib/forge-contracts.d.ts.map +1 -1
- package/dist/lib/forge-contracts.js.map +1 -1
- package/dist/lib/forge.js +1 -1
- package/dist/lib/forge.js.map +1 -1
- package/dist/lib/team-github.d.ts +2 -0
- package/dist/lib/team-github.d.ts.map +1 -1
- package/dist/lib/team-github.js +4 -4
- package/dist/lib/team-github.js.map +1 -1
- package/dist/terminal/pty-manager.d.ts.map +1 -1
- package/dist/terminal/pty-manager.js +2 -0
- package/dist/terminal/pty-manager.js.map +1 -1
- package/package.json +2 -1
- package/scripts/forge/github/issue-list.sh +2 -2
- package/scripts/forge/github/pr-list.sh +2 -2
- package/skeleton/.claude/skills/afx/SKILL.md +146 -0
- package/skeleton/.claude/skills/codev/SKILL.md +3 -3
- package/skeleton/DEPENDENCIES.md +1 -1
- package/skeleton/builders.md +4 -4
- package/skeleton/protocols/air/builder-prompt.md +6 -6
- package/skeleton/protocols/air/prompts/pr.md +2 -2
- package/skeleton/protocols/air/protocol.md +1 -1
- package/skeleton/protocols/aspir/builder-prompt.md +6 -6
- package/skeleton/protocols/aspir/protocol.json +1 -1
- package/skeleton/protocols/aspir/protocol.md +1 -1
- package/skeleton/protocols/bugfix/builder-prompt.md +6 -6
- package/skeleton/protocols/bugfix/prompts/pr.md +1 -1
- package/skeleton/protocols/maintain/protocol.md +1 -1
- package/skeleton/protocols/spike/builder-prompt.md +1 -1
- package/skeleton/protocols/spike/protocol.md +3 -3
- package/skeleton/protocols/spir/builder-prompt.md +5 -5
- package/skeleton/protocols/spir/protocol.json +1 -1
- package/skeleton/protocols/spir/protocol.md +2 -2
- package/skeleton/resources/commands/agent-farm.md +82 -82
- package/skeleton/resources/commands/codev.md +1 -1
- package/skeleton/resources/commands/consult.md +1 -1
- package/skeleton/resources/commands/overview.md +14 -14
- package/skeleton/resources/risk-triage.md +1 -1
- package/skeleton/resources/workflow-reference.md +14 -14
- package/skeleton/roles/architect.md +39 -39
- package/skeleton/roles/builder.md +13 -13
- package/skeleton/templates/AGENTS.md +2 -2
- package/skeleton/templates/CLAUDE.md +2 -2
- package/skeleton/templates/cheatsheet.md +10 -10
- package/templates/3d-viewer.html +16 -18
- package/templates/tower.html +1 -1
- package/dashboard/dist/assets/index-CTrlY11L.js.map +0 -1
- package/skeleton/.claude/skills/af/SKILL.md +0 -146
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: af
|
|
3
|
-
description: Agent Farm CLI — the tool for spawning builders, managing Tower, workspaces, and cron tasks. ALWAYS consult this skill BEFORE running any `af` command to get the exact syntax. This prevents wasting time guessing flags that don't exist. Use this whenever you need to spawn a builder, check status, send messages, clean up worktrees, manage Tower, or run cron tasks. If you're about to type `af` followed by anything, check here first.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Agent Farm CLI
|
|
7
|
-
|
|
8
|
-
## af spawn
|
|
9
|
-
|
|
10
|
-
Spawns a new builder in an isolated git worktree.
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
af spawn [number] [options]
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
**The ONLY flags that exist:**
|
|
17
|
-
|
|
18
|
-
| Flag | Description |
|
|
19
|
-
|------|-------------|
|
|
20
|
-
| `--protocol <name>` | Protocol: spir, aspir, air, bugfix, tick, maintain, experiment. **Required for numbered spawns.** |
|
|
21
|
-
| `--task <text>` | Ad-hoc task (no issue number needed) |
|
|
22
|
-
| `--shell` | Bare Claude session |
|
|
23
|
-
| `--worktree` | Bare worktree session |
|
|
24
|
-
| `--amends <number>` | Original spec number (TICK only) |
|
|
25
|
-
| `--files <files>` | Context files, comma-separated. **Requires `--task`.** |
|
|
26
|
-
| `--no-comment` | Skip commenting on the GitHub issue |
|
|
27
|
-
| `--force` | Skip dirty-worktree and collision checks |
|
|
28
|
-
| `--soft` | Soft mode (AI follows protocol, you verify) |
|
|
29
|
-
| `--strict` | Strict mode (porch orchestrates) — this is the default |
|
|
30
|
-
| `--resume` | Resume builder in existing worktree |
|
|
31
|
-
| `--no-role` | Skip loading role prompt |
|
|
32
|
-
|
|
33
|
-
**There is NO `-t`, `--title`, `--name`, or `--branch` flag.** The branch name is auto-generated from the issue title.
|
|
34
|
-
|
|
35
|
-
**Examples:**
|
|
36
|
-
```bash
|
|
37
|
-
af spawn 42 --protocol spir # SPIR builder for issue #42
|
|
38
|
-
af spawn 42 --protocol aspir # ASPIR (autonomous, no human gates)
|
|
39
|
-
af spawn 42 --protocol air # AIR (small features)
|
|
40
|
-
af spawn 42 --protocol bugfix # Bugfix
|
|
41
|
-
af spawn 42 --protocol tick --amends 30 # TICK amendment to spec 30
|
|
42
|
-
af spawn 42 --protocol spir --soft # Soft mode
|
|
43
|
-
af spawn 42 --resume # Resume existing builder
|
|
44
|
-
af spawn --task "fix the flaky test" # Ad-hoc task (no issue)
|
|
45
|
-
af spawn 42 --protocol spir --force # Skip dirty-worktree check
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
**Pre-spawn checklist:**
|
|
49
|
-
1. `git status` — worktree must be clean (or use `--force`)
|
|
50
|
-
2. Commit specs/plans first — builders branch from HEAD and can't see uncommitted files
|
|
51
|
-
3. `--protocol` is required for numbered spawns
|
|
52
|
-
|
|
53
|
-
## af send
|
|
54
|
-
|
|
55
|
-
Sends a message to a running builder.
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
af send [builder] [message]
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
| Flag | Description |
|
|
62
|
-
|------|-------------|
|
|
63
|
-
| `--all` | Send to all builders |
|
|
64
|
-
| `--file <path>` | Include file content |
|
|
65
|
-
| `--interrupt` | Send Ctrl+C first |
|
|
66
|
-
| `--raw` | Skip structured formatting |
|
|
67
|
-
| `--no-enter` | Don't press Enter after message |
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
af send 0042 "PR approved, please merge"
|
|
71
|
-
af send 0585 "check the test output" --file /tmp/test-results.txt
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## af cleanup
|
|
75
|
-
|
|
76
|
-
Removes a builder's worktree and branch after work is done.
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
af cleanup [options]
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
| Flag | Description |
|
|
83
|
-
|------|-------------|
|
|
84
|
-
| `-p, --project <id>` | Builder project ID (no leading zeros: `585` not `0585`) |
|
|
85
|
-
| `-i, --issue <number>` | Cleanup bugfix builder by issue number |
|
|
86
|
-
| `-t, --task <id>` | Cleanup task builder (e.g., `task-bEPd`) |
|
|
87
|
-
| `-f, --force` | Force cleanup even if branch not merged |
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
af cleanup -p 585 # Clean up project 585
|
|
91
|
-
af cleanup -p 585 -f # Force (unmerged branch)
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
**Note:** `af cleanup` uses plain numbers (`585`), not zero-padded (`0585`). But `af send` uses zero-padded IDs (`0585`).
|
|
95
|
-
|
|
96
|
-
## af status
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
af status # Show all builders and workspace status
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
No flags needed. Shows Tower status, workspace, and all active builders.
|
|
103
|
-
|
|
104
|
-
## af tower
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
af tower start # Start Tower on port 4100
|
|
108
|
-
af tower stop # Stop Tower
|
|
109
|
-
af tower log # Tail Tower logs
|
|
110
|
-
af tower status # Check daemon and cloud connection status
|
|
111
|
-
af tower connect # Connect to Codev Cloud
|
|
112
|
-
af tower disconnect # Disconnect from Codev Cloud
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
There is NO `af tower restart` — use `af tower stop && af tower start`.
|
|
116
|
-
|
|
117
|
-
## af workspace
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
af workspace start # Start workspace for current project
|
|
121
|
-
af workspace stop # Stop workspace processes
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
`af dash` is a deprecated alias — use `af workspace` instead.
|
|
125
|
-
|
|
126
|
-
## af cron
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
af cron list # List all cron tasks
|
|
130
|
-
af cron status <name> # Check task status
|
|
131
|
-
af cron run <name> # Run immediately
|
|
132
|
-
af cron enable <name> # Enable
|
|
133
|
-
af cron disable <name> # Disable
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
There is NO `af cron add` — create YAML files in `.af-cron/` directly.
|
|
137
|
-
|
|
138
|
-
## Other commands
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
af open <file> # Open file in annotation viewer (NOT system open)
|
|
142
|
-
af shell # Spawn utility shell
|
|
143
|
-
af attach # Attach to running builder terminal
|
|
144
|
-
af rename <name> # Rename current shell session
|
|
145
|
-
af architect # Start architect session in current terminal
|
|
146
|
-
```
|