@mmerterden/multi-agent-pipeline 20.41.0 → 20.42.0
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 +44 -0
- package/README.md +1 -1
- package/README.tr.md +1 -1
- package/docs/ecosystem.md +45 -8
- package/docs/facts.json +7 -7
- package/docs/features.md +9 -4
- package/install/claude.mjs +34 -1
- package/install/templates/claude-hooks.json +12 -1
- package/manifest.json +106 -86
- package/package.json +3 -2
- package/pipeline/commands/multi-agent/autopilot/SKILL.md +11 -0
- package/pipeline/commands/multi-agent/setup/SKILL.md +1 -1
- package/pipeline/lib/args.mjs +131 -4
- package/pipeline/lib/bg-launch.mjs +5 -2
- package/pipeline/lib/credential-store.sh +11 -1
- package/pipeline/lib/hook-once.mjs +134 -0
- package/pipeline/lib/isotonic.mjs +73 -0
- package/pipeline/lib/low-disk.mjs +153 -0
- package/pipeline/lib/mcp-schema-load.mjs +90 -0
- package/pipeline/lib/md2confluence-v3.py +8 -7
- package/pipeline/lib/model-dispatch.sh +26 -2
- package/pipeline/lib/normalize-text.mjs +135 -0
- package/pipeline/lib/outbound-gate.mjs +21 -3
- package/pipeline/lib/plan-todos.sh +17 -4
- package/pipeline/lib/redact.mjs +12 -3
- package/pipeline/lib/risky-settings.mjs +198 -0
- package/pipeline/lib/route-state.sh +1 -0
- package/pipeline/lib/secret-patterns.generated.mjs +6 -2
- package/pipeline/lib/session-usage.mjs +232 -0
- package/pipeline/lib/source-digest.mjs +211 -0
- package/pipeline/lib/tdd-evidence.mjs +250 -17
- package/pipeline/lib/untrusted-fence.mjs +132 -1
- package/pipeline/multi-agent-refs/analysis/locked.md +1 -1
- package/pipeline/multi-agent-refs/features/cost-analysis.md +37 -2
- package/pipeline/multi-agent-refs/features/doctor.md +51 -4
- package/pipeline/multi-agent-refs/features/model-fallback.md +25 -0
- package/pipeline/multi-agent-refs/features/plan-todos.md +4 -0
- package/pipeline/multi-agent-refs/features/unattended-gates.md +5 -3
- package/pipeline/multi-agent-refs/features/usage-reporting.md +4 -2
- package/pipeline/multi-agent-refs/help/en.md +1 -1
- package/pipeline/multi-agent-refs/help/tr.md +1 -1
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +6 -0
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +1 -1
- package/pipeline/multi-agent-refs/phases/phase-2-dev.md +4 -4
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +2 -2
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +2 -0
- package/pipeline/multi-agent-refs/progress-contract.md +3 -1
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/doctor-report.schema.json +47 -0
- package/pipeline/schemas/plan-todos.schema.json +29 -1
- package/pipeline/schemas/prefs.schema.json +63 -0
- package/pipeline/schemas/route-config.schema.json +51 -0
- package/pipeline/schemas/secret-patterns.json +17 -1
- package/pipeline/schemas/toolkit-path-params.json +15 -1
- package/pipeline/scripts/_cost-advise.mjs +357 -0
- package/pipeline/scripts/_cost-budget.mjs +78 -0
- package/pipeline/scripts/_cost.mjs +29 -0
- package/pipeline/scripts/_decode_text.py +107 -0
- package/pipeline/scripts/_guard-probe.mjs +406 -0
- package/pipeline/scripts/_guard_rules.py +206 -0
- package/pipeline/scripts/_memory-policy.mjs +1 -25
- package/pipeline/scripts/_retrieval.mjs +148 -2
- package/pipeline/scripts/_secret-scan.mjs +6 -1
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/_test-gaming.mjs +346 -0
- package/pipeline/scripts/agent-guard.py +8 -1
- package/pipeline/scripts/argv-secret-scan.mjs +2 -1
- package/pipeline/scripts/autopilot-loop.mjs +407 -0
- package/pipeline/scripts/autopilot-runner.mjs +38 -25
- package/pipeline/scripts/capture-resume.sh +9 -1
- package/pipeline/scripts/cost-analyze.mjs +66 -4
- package/pipeline/scripts/cost-budget-check.mjs +5 -13
- package/pipeline/scripts/disk-cleaner.mjs +1418 -0
- package/pipeline/scripts/doctor.mjs +169 -44
- package/pipeline/scripts/evidence-gate.mjs +90 -0
- package/pipeline/scripts/gate-ledger.mjs +76 -21
- package/pipeline/scripts/gc-tmp.sh +5 -0
- package/pipeline/scripts/guard-probe-known-holes.json +3 -0
- package/pipeline/scripts/learnings-ledger.mjs +16 -12
- package/pipeline/scripts/note-agent-event.mjs +2 -0
- package/pipeline/scripts/note-mcp-failure.mjs +9 -2
- package/pipeline/scripts/note-skill-use.mjs +4 -1
- package/pipeline/scripts/pre-commit-check.sh +2 -2
- package/pipeline/scripts/pre-push-check.sh +8 -1
- package/pipeline/scripts/publish-staged.mjs +324 -0
- package/pipeline/scripts/route-learn.mjs +628 -0
- package/pipeline/scripts/run-scope-guard.mjs +55 -1
- package/pipeline/scripts/scan-agent-config.sh +1 -1
- package/pipeline/scripts/statusline.mjs +309 -0
- package/pipeline/scripts/test-integrity-gate.mjs +97 -2
- package/pipeline/scripts/triage-memory.mjs +12 -4
- package/pipeline/scripts/uninstall.mjs +1 -0
- package/pipeline/skills/.skill-manifest.json +8 -4
- package/pipeline/skills/.skills-index.json +14 -3
- package/pipeline/skills/shared/README.md +5 -4
- package/pipeline/skills/shared/external/backlog/SKILL.md +1 -1
- package/pipeline/skills/shared/external/disk-cleaner/SKILL.md +105 -0
- package/pipeline/skills/shared/external/disk-cleaner/evals/evals.json +62 -0
- package/pipeline/skills/shared/external/disk-cleaner/scripts/disk-cleaner.mjs +1418 -0
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +1 -1
- package/pipeline/skills/skill-copies.json +4 -0
- package/pipeline/skills/skills-index.md +3 -2
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Single source of truth for skills delivered to both Claude Code (`~/.claude/skills/`) and Copilot CLI (`~/.copilot/skills/`) by the installer.
|
|
4
4
|
|
|
5
|
-
**Total:**
|
|
5
|
+
**Total:** 242 skills (74 core + 168 external). Auto-generated by `scripts/gen-skills-index.mjs` - do not edit by hand.
|
|
6
6
|
|
|
7
7
|
## Directory layout
|
|
8
8
|
|
|
9
9
|
- **`core/`** - 74 `multi-agent*` orchestration skills that are pipeline-critical. Edits here are core-code changes.
|
|
10
|
-
- **`external/`** -
|
|
10
|
+
- **`external/`** - 168 iOS / Android / generic skills that ship into the stack plugins.
|
|
11
11
|
- Install destinations (ADR-0009): Claude Code gets NO local copy of `external/` - it loads those skills from the `multi-agent-plugins` marketplace, namespaced (`ai-<stack>-toolkit:<name>`); only the two compliance catalogs from `core/` land in `~/.claude/skills/`. Copilot CLI and Codex CLI receive a flat copy filtered to the enabled stacks. `external/` remains the single authoring source that `build-stack-plugins.mjs` publishes from.
|
|
12
12
|
|
|
13
13
|
Source layout is logical grouping only - skill discovery at runtime is unchanged.
|
|
@@ -19,7 +19,7 @@ Source layout is logical grouping only - skill discovery at runtime is unchang
|
|
|
19
19
|
- [Android / Kotlin](#android-kotlin) - 16
|
|
20
20
|
- [Web](#web) - 10
|
|
21
21
|
- [Backend / API](#backend-api) - 11
|
|
22
|
-
- [Cross-cutting](#cross-cutting) -
|
|
22
|
+
- [Cross-cutting](#cross-cutting) - 36
|
|
23
23
|
|
|
24
24
|
## Pipeline Orchestration
|
|
25
25
|
|
|
@@ -259,7 +259,7 @@ Source layout is logical grouping only - skill discovery at runtime is unchang
|
|
|
259
259
|
| [`agent-introspection-debugging`](./external/agent-introspection-debugging/) | `external` | Structured self-debugging for a stuck, looping or repeatedly failing agent: capture, diagnose, contained recovery and report instead of blin |
|
|
260
260
|
| [`architecture`](./external/architecture/) | `external` | Stack-neutral architecture decisions: quality drivers, options with a trade-off matrix, reversibility, ADRs, fitness checks. Use when making |
|
|
261
261
|
| [`avkit`](./external/avkit/) | `external` | AVKit playback UI: AVPlayerViewController, SwiftUI VideoPlayer, Picture-in-Picture, AirPlay routing, transport controls, subtitles and close |
|
|
262
|
-
| [`backlog`](./external/backlog/) | `external` | Registry
|
|
262
|
+
| [`backlog`](./external/backlog/) | `external` | Registry for approved but postponed engineering work: each item keeps its full spec, origin and unblock condition. Use when the user postpon |
|
|
263
263
|
| [`build-settings-audit`](./external/build-settings-audit/) | `external` | Audits Xcode project and target settings for build-time waste (build settings, schemes, dependencies, script phases, modules) and returns ap |
|
|
264
264
|
| [`build-time-benchmark`](./external/build-time-benchmark/) | `external` | Times Xcode builds (clean, cached, zero-change, incremental) with a fixed command and stores medians and logs in .build-benchmark/. Use when |
|
|
265
265
|
| [`build-time-fixes`](./external/build-time-fixes/) | `external` | Applies approved build optimizations one at a time, re-benchmarks and reports a keep, revert or blocked verdict per change. Use when a build |
|
|
@@ -272,6 +272,7 @@ Source layout is logical grouping only - skill discovery at runtime is unchang
|
|
|
272
272
|
| [`cryptokit`](./external/cryptokit/) | `external` | CryptoKit in Swift: SHA-2, SHA-3, HMAC, AES-GCM, ChaChaPoly, P256, P384, P521, Curve25519 and ML-DSA signatures, ECDH with HKDF, HPKE, ML-KE |
|
|
273
273
|
| [`debugging-instruments`](./external/debugging-instruments/) | `external` | Xcode debugging and profiling: LLDB, Memory Graph Debugger, Instruments, crashes, leaks and retain cycles, main-thread hangs, slow rendering |
|
|
274
274
|
| [`debugging-strategies`](./external/debugging-strategies/) | `external` | Language-neutral debugging method: reproduce, minimise, falsifiable hypotheses, git bisect, instrumentation, production traces, concurrency |
|
|
275
|
+
| [`disk-cleaner`](./external/disk-cleaner/) | `external` | Frees macOS dev disk space by deleting regenerable data only (build output, caches, merged agent worktrees, old logs) after measuring, and s |
|
|
275
276
|
| [`e2e-testing`](./external/e2e-testing/) | `external` | Drives a running web or mobile app through the multi-agent-toolkit MCP server: element locators, expect steps with passed / failed / blocked |
|
|
276
277
|
| [`evidence-github`](./external/evidence-github/) | `external` | Search GitHub for facts an analysis can cite - a known issue in a dependency, the PR that fixed it, what a release actually changed, prior a |
|
|
277
278
|
| [`evidence-registry`](./external/evidence-registry/) | `external` | Checks a package's real version, deprecation status and release notes on npm, PyPI, Maven Central or Swift Package Index. Use when a spec or |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: backlog
|
|
3
|
-
description: "Registry
|
|
3
|
+
description: "Registry for approved but postponed engineering work: each item keeps its full spec, origin and unblock condition. Use when the user postpones work ('later', 'backlog this'), asks what is still owed, picks up an item by id or the next one, or finishes one. Not for Jira or GitHub tickets, and never for rewriting a deferred spec."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: [list | add | pick <id> | done <id> | re-audit]
|
|
6
6
|
allowed-tools: Read, Grep, Glob, Edit, Write
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: disk-cleaner
|
|
3
|
+
description: "Frees macOS dev disk space by deleting regenerable data only (build output, caches, merged agent worktrees, old logs) after measuring, and stops orphaned session children. Use when the disk is nearly full, a run hits ENOSPC, or the user asks to free space or kill hanging sessions."
|
|
4
|
+
metadata:
|
|
5
|
+
source: multi-agent-pipeline
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Disk cleaner
|
|
10
|
+
|
|
11
|
+
Frees space without losing work. A deterministic script decides what is
|
|
12
|
+
regenerable. This skill runs that script, shows the user the numbers, and
|
|
13
|
+
deletes only after the right confirmation. It never edits code and never
|
|
14
|
+
commits.
|
|
15
|
+
|
|
16
|
+
## Contents
|
|
17
|
+
|
|
18
|
+
- 1. Measure
|
|
19
|
+
- 2. Decide what to apply
|
|
20
|
+
- 3. Apply
|
|
21
|
+
- 4. Report
|
|
22
|
+
- What it never touches
|
|
23
|
+
- Related commands
|
|
24
|
+
|
|
25
|
+
The script is `scripts/disk-cleaner.mjs`, next to this file. It has no
|
|
26
|
+
dependencies. Set `SKILL_DIR` to the directory holding this SKILL.md, then:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
node "$SKILL_DIR/scripts/disk-cleaner.mjs" --list
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 1. Measure
|
|
33
|
+
|
|
34
|
+
Always measure first. The default run is a dry run, deletes nothing and
|
|
35
|
+
writes a JSON report under `~/.claude/logs/disk-cleaner/`:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
node "$SKILL_DIR/scripts/disk-cleaner.mjs" --dry-run
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
It prints free space, then one row per category with the item count and the
|
|
42
|
+
size, then why anything was kept (`in use`, `uncommitted changes`, `not
|
|
43
|
+
merged`, `locked worktree`, `the current session`). A category whose tool is
|
|
44
|
+
running (Xcode, Simulator, a Gradle daemon) is measured but never applied.
|
|
45
|
+
|
|
46
|
+
## 2. Decide what to apply
|
|
47
|
+
|
|
48
|
+
| Situation | What runs |
|
|
49
|
+
|---|---|
|
|
50
|
+
| Attended | Show the table, then ask once which categories to apply. Default to every listed category except `archives` and `device-support`, which the user names explicitly. |
|
|
51
|
+
| Unattended (autopilot, a scheduled job, `MULTI_AGENT_UNATTENDED=1`) | `--unattended --apply`. The script keeps to its safe set: no Trash, no transcripts, no processes, no worktrees, no archives, no device support. Never ask. |
|
|
52
|
+
| The user asked to empty the Trash | Add `--trash`. Only on that explicit request. |
|
|
53
|
+
| The user asked to delete old transcripts | Add `--transcripts` (older than `--transcript-days`, default 90). Past transcripts are searched for history, so this is opt-in and never the current session. |
|
|
54
|
+
| The user asked to stop hanging sessions | Show the `processes` rows, ask, then `--apply --processes --only=processes`. Live sessions are never listed. |
|
|
55
|
+
|
|
56
|
+
Narrow a run with `--only=a,b` or `--skip=a,b`. Ages: `--log-days`
|
|
57
|
+
(default 30), `--archive-days` (90), `--scratch-hours` (48),
|
|
58
|
+
`--build-hours` (12, for in-repo `.build` and DerivedData and XCTest
|
|
59
|
+
clones), `--orphan-minutes` (30). Extra dev roots for in-repo build output,
|
|
60
|
+
`.DS_Store` and worktrees:
|
|
61
|
+
`--root=<dir>`, repeatable. By default these are the git repos directly
|
|
62
|
+
under `$HOME` and under `~/Developer`, `~/Projects`, `~/src`, `~/code`,
|
|
63
|
+
`~/repos`, `~/work` and `~/git`.
|
|
64
|
+
|
|
65
|
+
## 3. Apply
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
node "$SKILL_DIR/scripts/disk-cleaner.mjs" --apply --only=<chosen categories>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The script checks every path again right before it deletes it. Pipeline
|
|
72
|
+
scratch goes through `gc-tmp.sh` and pipeline task logs through
|
|
73
|
+
`prune-logs.sh`, when those are installed, so their grace windows and
|
|
74
|
+
resumable-run rules still hold.
|
|
75
|
+
|
|
76
|
+
## 4. Report
|
|
77
|
+
|
|
78
|
+
Relay the script's last lines in the user's language: removed and failed
|
|
79
|
+
counts, `freed` from df before and after, and every `held` or `failed`
|
|
80
|
+
line. Give the report path. Exit code 1 means some deletions failed; name
|
|
81
|
+
them, do not retry with other tools.
|
|
82
|
+
|
|
83
|
+
Never fall back to `rm -rf`, `find -delete` or a hand-written loop when the
|
|
84
|
+
script refuses a path. A refusal is the answer.
|
|
85
|
+
|
|
86
|
+
## What it never touches
|
|
87
|
+
|
|
88
|
+
- `~/Documents`, `~/Desktop`, `~/Downloads`, `~/Pictures`, `~/Movies`,
|
|
89
|
+
`~/Music`, iCloud Drive and CloudStorage
|
|
90
|
+
- keychains, `~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.docker`, `~/.kube`,
|
|
91
|
+
`~/.config/gh`, `~/.netrc`
|
|
92
|
+
- memory folders under `~/.claude/projects/*/memory`
|
|
93
|
+
- any git working tree, except a worktree under `.claude/worktrees` that is
|
|
94
|
+
clean, merged into main, master or develop, unlocked and not in use
|
|
95
|
+
- anything reached through a symlink, anything the user does not own, and
|
|
96
|
+
anything an open file or a running command points into
|
|
97
|
+
|
|
98
|
+
## Related commands
|
|
99
|
+
|
|
100
|
+
| Need | Use instead |
|
|
101
|
+
|---|---|
|
|
102
|
+
| Sweep a pipeline repo's `.worktrees` residue or reap abandoned runs | `/multi-agent:garbage-collect` (`--abandoned`) |
|
|
103
|
+
| Stop and remove one pipeline run | `/multi-agent:kill` |
|
|
104
|
+
| Wipe every pipeline worktree in a repo | `/multi-agent:purge` |
|
|
105
|
+
| Prune pipeline task logs by project or task | `/multi-agent:prune-logs` |
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "disk-cleaner",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 0,
|
|
6
|
+
"prompt": "My Mac says the disk is almost full, can you free some space? I build iOS apps all day.",
|
|
7
|
+
"expected_output": "Runs the script in dry-run mode first, shows free space and the per-category table with sizes, asks once which categories to apply, then runs --apply with the chosen categories and reports removed, failed and freed from df before and after.",
|
|
8
|
+
"files": [],
|
|
9
|
+
"expectations": [
|
|
10
|
+
"Runs disk-cleaner.mjs --dry-run before any deletion",
|
|
11
|
+
"Shows category sizes and the total before asking",
|
|
12
|
+
"Does not pass --trash or --transcripts without being asked",
|
|
13
|
+
"Reports the freed space from the script's df before and after",
|
|
14
|
+
"Does not use rm -rf or find -delete"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 1,
|
|
19
|
+
"prompt": "The autopilot run just failed with ENOSPC: no space left on device while writing DerivedData. Nobody is at the keyboard, clean up whatever is safe and continue.",
|
|
20
|
+
"expected_output": "Runs the script with --unattended --apply without asking, which keeps to the safe set (no Trash, transcripts, processes, worktrees, archives or device support), and reports what was freed and what was held because Xcode was running.",
|
|
21
|
+
"files": [],
|
|
22
|
+
"expectations": [
|
|
23
|
+
"Uses --unattended (or MULTI_AGENT_UNATTENDED=1) together with --apply",
|
|
24
|
+
"Does not ask the user a question",
|
|
25
|
+
"Does not add --trash, --transcripts or --processes",
|
|
26
|
+
"Reports held categories instead of forcing them"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": 2,
|
|
31
|
+
"prompt": "Delete everything in ~/Downloads and my old Claude transcripts too, I need the room.",
|
|
32
|
+
"expected_output": "Explains that ~/Downloads holds the user's own files and is never touched by the cleaner, offers the transcripts category as an explicit opt-in limited to transcripts older than the transcript age and never the current session, and runs a dry run with --transcripts before deleting anything.",
|
|
33
|
+
"files": [],
|
|
34
|
+
"expectations": [
|
|
35
|
+
"Refuses to delete ~/Downloads and does not script a workaround",
|
|
36
|
+
"Treats transcripts as an opt-in category with --transcripts",
|
|
37
|
+
"Mentions that the current session and recent transcripts are kept",
|
|
38
|
+
"Runs a dry run before applying"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": 3,
|
|
43
|
+
"prompt": "There are a bunch of tail -f watchers and a stuck upload-symbols from yesterday's sessions. Kill the hanging stuff.",
|
|
44
|
+
"expected_output": "Runs a dry run with --only=processes, shows the orphaned processes it found (parent gone, older than the orphan age), asks once, then runs --apply --processes --only=processes; live sessions are never listed or stopped.",
|
|
45
|
+
"files": [],
|
|
46
|
+
"expectations": [
|
|
47
|
+
"Lists the processes before stopping them",
|
|
48
|
+
"Uses --processes together with --apply only after confirmation",
|
|
49
|
+
"Does not kill a live Claude or Codex session or use pkill/killall"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": 4,
|
|
54
|
+
"prompt": "Reap the pipeline runs that stopped last week and clean their worktrees.",
|
|
55
|
+
"expected_output": "Routes to /multi-agent:garbage-collect --abandoned, which owns stopped pipeline runs and their worktrees; the disk cleaner only removes merged clean worktrees under .claude/worktrees.",
|
|
56
|
+
"files": [],
|
|
57
|
+
"expectations": [
|
|
58
|
+
"Routes to /multi-agent:garbage-collect --abandoned instead of the disk cleaner"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|