@a5c-ai/babysitter-opencode 5.0.0 → 5.0.1-staging.016f0b0e8119
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 +17 -19
- package/bin/install-shared.js +1 -1
- package/commands/call.md +10 -6
- package/commands/cleanup.md +30 -8
- package/commands/contrib.md +31 -31
- package/commands/doctor.md +2 -3
- package/commands/forever.md +6 -6
- package/commands/help.md +2 -1
- package/commands/observe.md +6 -1
- package/commands/plan.md +7 -7
- package/commands/plugins.md +249 -249
- package/commands/project-install.md +10 -10
- package/commands/resume.md +8 -8
- package/commands/retrospect.md +55 -55
- package/commands/user-install.md +10 -10
- package/commands/yolo.md +5 -1
- package/hooks/babysitter-proxied-stop-hook.sh +3 -0
- package/hooks/hooks.json +0 -8
- package/package.json +3 -4
- package/plugin.json +1 -1
- package/scripts/publish-from-tag.mjs +32 -3
- package/skills/accomplish-status/SKILL.md +1 -1
- package/skills/babysit/SKILL.md +4 -3
- package/skills/call/SKILL.md +5 -1
- package/skills/cleanup/SKILL.md +30 -8
- package/skills/contrib/SKILL.md +25 -25
- package/skills/doctor/SKILL.md +2 -3
- package/skills/help/SKILL.md +2 -1
- package/skills/observe/SKILL.md +6 -1
- package/skills/plugins/SKILL.md +243 -243
- package/skills/project-install/SKILL.md +3 -3
- package/skills/resume/SKILL.md +1 -1
- package/skills/retrospect/SKILL.md +48 -48
- package/skills/user-install/SKILL.md +3 -3
- package/skills/yolo/SKILL.md +5 -1
- package/versions.json +2 -2
- package/hooks/babysitter-proxied-session-idle.js +0 -24
- package/hooks/babysitter-proxied-session-idle.sh +0 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ complex multi-step workflows -- powered by the Babysitter SDK.
|
|
|
9
9
|
## Plugin Structure
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
plugins/
|
|
12
|
+
artifacts/generated-plugins/opencode/
|
|
13
13
|
bin/
|
|
14
14
|
cli.cjs CLI entry point (babysitter-opencode command)
|
|
15
15
|
install.cjs Installation script
|
|
@@ -36,31 +36,29 @@ plugins/babysitter-opencode/
|
|
|
36
36
|
|
|
37
37
|
### Prerequisites
|
|
38
38
|
|
|
39
|
-
Install the Babysitter
|
|
39
|
+
Install the Babysitter CLI once:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npm install -g @a5c-ai/babysitter
|
|
42
|
+
npm install -g @a5c-ai/babysitter
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
### Method 1:
|
|
45
|
+
### Method 1: Babysitter harness install (recommended)
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
npm install -g @a5c-ai/babysitter-opencode
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
The `postinstall` script automatically copies the plugin into your current
|
|
52
|
-
workspace's `.opencode/plugins/babysitter/` directory.
|
|
53
|
-
|
|
54
|
-
To install into a specific workspace:
|
|
47
|
+
Use the SDK helper for scriptable global or workspace installs. This is the canonical path used by the installer tests and resolves to `npx --yes @a5c-ai/babysitter-opencode install ...` under the hood:
|
|
55
48
|
|
|
56
49
|
```bash
|
|
57
|
-
|
|
50
|
+
# Global install
|
|
51
|
+
babysitter harness:install-plugin opencode
|
|
52
|
+
|
|
53
|
+
# Workspace install
|
|
54
|
+
babysitter harness:install-plugin opencode --workspace /path/to/project
|
|
58
55
|
```
|
|
59
56
|
|
|
60
|
-
### Method 2:
|
|
57
|
+
### Method 2: Published package installer
|
|
61
58
|
|
|
62
59
|
```bash
|
|
63
|
-
babysitter
|
|
60
|
+
npx --yes @a5c-ai/babysitter-opencode install --global
|
|
61
|
+
npx --yes @a5c-ai/babysitter-opencode install --workspace /path/to/project
|
|
64
62
|
```
|
|
65
63
|
|
|
66
64
|
### Method 3: Manual copy
|
|
@@ -94,13 +92,13 @@ OpenCode config directory (`<userDataPath>/opencode/plugins/babysitter/`).
|
|
|
94
92
|
|
|
95
93
|
```bash
|
|
96
94
|
# Auto-detects Accomplish during standard install
|
|
97
|
-
|
|
95
|
+
npx --yes @a5c-ai/babysitter-opencode install --global
|
|
98
96
|
|
|
99
97
|
# Or target Accomplish explicitly
|
|
100
|
-
babysitter-opencode install --accomplish
|
|
98
|
+
npx --yes @a5c-ai/babysitter-opencode install --accomplish
|
|
101
99
|
|
|
102
100
|
# Install to both standalone OpenCode and Accomplish
|
|
103
|
-
babysitter-opencode install --global --accomplish
|
|
101
|
+
npx --yes @a5c-ai/babysitter-opencode install --global --accomplish
|
|
104
102
|
```
|
|
105
103
|
|
|
106
104
|
Accomplish stores OpenCode config at platform-specific locations:
|
|
@@ -206,7 +204,7 @@ babysitter process-library:active --json
|
|
|
206
204
|
## Running Tests
|
|
207
205
|
|
|
208
206
|
```bash
|
|
209
|
-
cd plugins/
|
|
207
|
+
cd artifacts/generated-plugins/opencode
|
|
210
208
|
npm test
|
|
211
209
|
```
|
|
212
210
|
|
package/bin/install-shared.js
CHANGED
|
@@ -104,7 +104,7 @@ function ensureMarketplaceEntry(marketplacePath, pluginRoot) {
|
|
|
104
104
|
name: PLUGIN_NAME,
|
|
105
105
|
source: relSource,
|
|
106
106
|
description: "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval",
|
|
107
|
-
version: "5.0.
|
|
107
|
+
version: "5.0.1-staging.016f0b0e8119",
|
|
108
108
|
author: { name: "a5c.ai" },
|
|
109
109
|
};
|
|
110
110
|
if (idx >= 0) marketplace.plugins[idx] = entry;
|
package/commands/call.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow.
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
1
|
+
---
|
|
2
|
+
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow.
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). Then continue executing the returned instructions in this same turn. Do not stop after the Skill tool returns; carry the requested run through to completion proof.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
User arguments for this command:
|
|
10
|
+
|
|
11
|
+
$ARGUMENTS
|
package/commands/cleanup.md
CHANGED
|
@@ -10,11 +10,33 @@ Create and run a cleanup process using the process at `skills\babysit\process\cr
|
|
|
10
10
|
|
|
11
11
|
Implementation notes (for the process):
|
|
12
12
|
- Parse arguments for `--dry-run` flag (if present, set dryRun: true in inputs) and `--keep-days N` (default: 7)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
13
|
+
|
|
14
|
+
CRITICAL: The cleanup MUST follow this exact phase order. Do NOT delete any run before Phase 2 completes.
|
|
15
|
+
|
|
16
|
+
Phase 1 — Scan:
|
|
17
|
+
- Scan .a5c/runs/ for all runs
|
|
18
|
+
- Classify each as terminal (completed/failed) or active (in-progress/created)
|
|
19
|
+
- Identify terminal runs older than the keep-days threshold as removal candidates
|
|
20
|
+
- Never mark active/in-progress runs for removal
|
|
21
|
+
- Count and report: total runs, terminal, active, removal candidates, disk usage
|
|
22
|
+
|
|
23
|
+
Phase 2 — Aggregate insights (BEFORE any deletion):
|
|
24
|
+
- For EVERY removal candidate, read its run.json and journal/ events
|
|
25
|
+
- Extract: processId, prompt, status, event count, created date, task summaries
|
|
26
|
+
- Group by process type and extract patterns (retry counts, convergence behavior, failure modes)
|
|
27
|
+
- Append a new dated section to docs/run-history-insights.md with:
|
|
28
|
+
- Summary statistics (runs removed, disk freed, runs retained)
|
|
29
|
+
- Run categories with counts and descriptions
|
|
30
|
+
- Key patterns observed (multi-batch convergence, retry behavior, etc.)
|
|
31
|
+
- What worked well / what didn't from the run data
|
|
32
|
+
- This file MUST be written and verified before proceeding to Phase 3
|
|
33
|
+
|
|
34
|
+
Phase 3 — Confirm removal:
|
|
35
|
+
- In interactive mode, show the user what will be removed via a breakpoint
|
|
36
|
+
- In non-interactive mode (yolo), proceed with defaults
|
|
37
|
+
- In dry-run mode, stop here and show what would be removed
|
|
38
|
+
|
|
39
|
+
Phase 4 — Remove:
|
|
40
|
+
- Delete the terminal runs older than keep-days threshold
|
|
41
|
+
- Identify and remove orphaned process files not referenced by remaining runs
|
|
42
|
+
- Show remaining run count and disk usage after cleanup
|
package/commands/contrib.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Submit feedback or contribute to babysitter project
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
8
|
-
|
|
9
|
-
## Process Routing
|
|
10
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Submit feedback or contribute to babysitter project
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
8
|
+
|
|
9
|
+
## Process Routing
|
|
10
|
+
|
|
11
11
|
Contribution processes live under the active process library's `cradle/` directory. Resolve the active library root with `babysitter process-library:active --json` and route based on arguments:
|
|
12
|
-
|
|
13
|
-
### Issue-based (opens a GitHub issue in a5c-ai/babysitter)
|
|
14
|
-
* **Bug report** → `cradle/bug-report.js#process` — Report a bug in the SDK, CLI, process library, etc.
|
|
15
|
-
* **Feature request** → `cradle/feature-request.js#process` — Request a new feature or enhancement
|
|
16
|
-
* **Documentation question** → `cradle/documentation-question.js#process` — Ask about undocumented behavior or missing docs
|
|
17
|
-
|
|
18
|
-
### PR-based (forks repo, creates branch, submits PR to a5c-ai/babysitter)
|
|
19
|
-
* **Bugfix** → `cradle/bugfix.js#process` — User already has the fix for a bug
|
|
20
|
-
* **Feature implementation** → `cradle/feature-implementation-contribute.js#process` — User already has a feature implementation
|
|
21
|
-
* **Harness integration** → `cradle/feature-harness-integration-contribute.js#process` — User has a harness (CI/CD, IDE, editor) integration
|
|
22
|
-
* **Library contribution** → `cradle/library-contribution.js#process` — New or improved process/skill/subagent for the library
|
|
23
|
-
* **Documentation answer** → `cradle/documentation-contribute-answer.js#process` — User has an answer for an unanswered docs question
|
|
24
|
-
|
|
25
|
-
### Router (when arguments are empty or general)
|
|
26
|
-
* **Contribute** → `cradle/contribute.js#process` — Explains contribution types and routes to the specific process
|
|
27
|
-
|
|
28
|
-
## Contribution Rules
|
|
29
|
-
|
|
30
|
-
* PR-based contributions: fork the babysitter repo (a5c-ai/babysitter) for the user, ask to star if not already starred, perform changes, submit PR
|
|
31
|
-
* Issue-based contributions: gather details, search for duplicates, review, then open an issue in a5c-ai/babysitter
|
|
32
|
-
* Add breakpoints (permissions) before ALL gh actions (fork, star, submit PR/issue) to allow user review and cancellation
|
|
12
|
+
|
|
13
|
+
### Issue-based (opens a GitHub issue in a5c-ai/babysitter)
|
|
14
|
+
* **Bug report** → `cradle/bug-report.js#process` — Report a bug in the SDK, CLI, process library, etc.
|
|
15
|
+
* **Feature request** → `cradle/feature-request.js#process` — Request a new feature or enhancement
|
|
16
|
+
* **Documentation question** → `cradle/documentation-question.js#process` — Ask about undocumented behavior or missing docs
|
|
17
|
+
|
|
18
|
+
### PR-based (forks repo, creates branch, submits PR to a5c-ai/babysitter)
|
|
19
|
+
* **Bugfix** → `cradle/bugfix.js#process` — User already has the fix for a bug
|
|
20
|
+
* **Feature implementation** → `cradle/feature-implementation-contribute.js#process` — User already has a feature implementation
|
|
21
|
+
* **Harness integration** → `cradle/feature-harness-integration-contribute.js#process` — User has a harness (CI/CD, IDE, editor) integration
|
|
22
|
+
* **Library contribution** → `cradle/library-contribution.js#process` — New or improved process/skill/subagent for the library
|
|
23
|
+
* **Documentation answer** → `cradle/documentation-contribute-answer.js#process` — User has an answer for an unanswered docs question
|
|
24
|
+
|
|
25
|
+
### Router (when arguments are empty or general)
|
|
26
|
+
* **Contribute** → `cradle/contribute.js#process` — Explains contribution types and routes to the specific process
|
|
27
|
+
|
|
28
|
+
## Contribution Rules
|
|
29
|
+
|
|
30
|
+
* PR-based contributions: fork the babysitter repo (a5c-ai/babysitter) for the user, ask to star if not already starred, perform changes, submit PR
|
|
31
|
+
* Issue-based contributions: gather details, search for duplicates, review, then open an issue in a5c-ai/babysitter
|
|
32
|
+
* Add breakpoints (permissions) before ALL gh actions (fork, star, submit PR/issue) to allow user review and cancellation
|
|
33
33
|
* If arguments are empty: use the `contribute.js` router process to show options and route accordingly
|
package/commands/doctor.md
CHANGED
|
@@ -156,7 +156,6 @@ If it exists:
|
|
|
156
156
|
**Goal:** Inspect babysitter session files for health and detect runaway loops.
|
|
157
157
|
|
|
158
158
|
- Search for session state files using Glob:
|
|
159
|
-
- `plugins/babysitter/skills/babysit/state/*.md`
|
|
160
159
|
- `.a5c/state/*.md`
|
|
161
160
|
- `.a5c/state/*.json`
|
|
162
161
|
- For each session state file found:
|
|
@@ -260,7 +259,7 @@ Mark as PASS if total size < 500MB and no files > 10MB. Mark as WARN if total si
|
|
|
260
259
|
|
|
261
260
|
### 10a. Hook Registration
|
|
262
261
|
|
|
263
|
-
- Locate the plugin root. Check for `CLAUDE_PLUGIN_ROOT` env var, or search for `
|
|
262
|
+
- Locate the plugin root. Check for `CLAUDE_PLUGIN_ROOT` env var first, or search for a babysitter `hooks.json` by walking up from the current directory.
|
|
264
263
|
- If found, read `hooks.json` and verify:
|
|
265
264
|
- A `Stop` hook entry exists with a command referencing `babysitter-stop-hook.sh`.
|
|
266
265
|
- A `SessionStart` hook entry exists with a command referencing `babysitter-session-start-hook.sh`.
|
|
@@ -315,7 +314,7 @@ If the stop hook shows NO evidence of execution (no log entries, no journal even
|
|
|
315
314
|
|
|
316
315
|
Perform these diagnostic steps in order and report the first failure found:
|
|
317
316
|
|
|
318
|
-
1. **Plugin not installed**: Check if `
|
|
317
|
+
1. **Plugin not installed**: Check if `CLAUDE_PLUGIN_ROOT` is set or if a babysitter plugin directory exists relative to the project root. If neither exists, report: "Plugin not installed — the babysitter plugin directory is missing."
|
|
319
318
|
|
|
320
319
|
2. **Plugin not enabled**: Check for Claude settings files:
|
|
321
320
|
- `~/.claude/settings.json` — look for `babysitter` in `enabledPlugins`.
|
package/commands/forever.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Use this command to start babysitting a never-ending babysitter run.
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Use this command to start babysitting a never-ending babysitter run.
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
7
|
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). but create a process that uses an infinte loop and a ctx.sleep to create a never-ending babysitter loop. an example of such process is a daily process that reads new support ticket every day and tries to resolve them, then sleeps for 4 hours and repeats the process.
|
package/commands/help.md
CHANGED
|
@@ -233,7 +233,8 @@ SECONDARY COMMANDS
|
|
|
233
233
|
How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches
|
|
234
234
|
the .a5c/runs/ directory (or a parent directory containing multiple projects) and
|
|
235
235
|
serves a live dashboard. The process is blocking -- it runs until you stop it, and
|
|
236
|
-
it prints the local URL to share with the user.
|
|
236
|
+
it prints the local URL to share with the user. Do not use `babysitter observe`
|
|
237
|
+
as a fallback; the core Babysitter CLI does not expose that subcommand.
|
|
237
238
|
|
|
238
239
|
Example: /babysitter:observe
|
|
239
240
|
(opens browser showing all runs with live-updating task
|
package/commands/observe.md
CHANGED
|
@@ -7,6 +7,11 @@ allowed-tools: Read, Grep, Write, Task, Bash
|
|
|
7
7
|
Run the babysitter observer dashboard:
|
|
8
8
|
|
|
9
9
|
1. Determine the watch directory — this is usually the project's container directory (the parent of the project dir), or the current working directory if not specified.
|
|
10
|
-
2. Launch the dashboard: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir
|
|
10
|
+
2. Launch the standalone dashboard package: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`.
|
|
11
11
|
3. This is a blocking process — it will keep running until stopped.
|
|
12
12
|
4. Report the URL printed by the dashboard to the user, then open it in the browser.
|
|
13
|
+
|
|
14
|
+
Do not fall back to `babysitter observe`; the core Babysitter CLI does not expose
|
|
15
|
+
that subcommand. Some harness runtimes may provide a separate
|
|
16
|
+
`agent-platform observe` surface, but this skill uses the verified standalone
|
|
17
|
+
dashboard package.
|
package/commands/plan.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Plan a babysitter run. use this command to plan a complex workflow, without actually running it.
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). focus on creating the best process possible, but without creating and running the actual run.
|
|
1
|
+
---
|
|
2
|
+
description: Plan a babysitter run. use this command to plan a complex workflow, without actually running it.
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). focus on creating the best process possible, but without creating and running the actual run.
|