@a5c-ai/babysitter-github 5.0.1-staging.d73033a7 → 5.0.1-staging.d8bdfcceaf4a

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.
Files changed (53) hide show
  1. package/README.md +33 -25
  2. package/bin/cli.js +14 -26
  3. package/bin/install-shared.js +398 -215
  4. package/bin/install.js +49 -89
  5. package/bin/uninstall.js +30 -60
  6. package/commands/call.md +5 -1
  7. package/commands/cleanup.md +30 -8
  8. package/commands/doctor.md +7 -8
  9. package/commands/help.md +246 -244
  10. package/commands/observe.md +17 -12
  11. package/commands/yolo.md +11 -7
  12. package/hooks/babysitter-proxied-post-tool-use.ps1 +12 -0
  13. package/hooks/babysitter-proxied-post-tool-use.sh +3 -0
  14. package/hooks/babysitter-proxied-pre-compact.ps1 +12 -0
  15. package/hooks/babysitter-proxied-pre-compact.sh +3 -0
  16. package/hooks/babysitter-proxied-pre-tool-use.ps1 +12 -0
  17. package/hooks/babysitter-proxied-pre-tool-use.sh +3 -0
  18. package/hooks/babysitter-proxied-session-end.ps1 +10 -114
  19. package/hooks/babysitter-proxied-session-end.sh +2 -111
  20. package/hooks/babysitter-proxied-session-start.ps1 +10 -187
  21. package/hooks/babysitter-proxied-session-start.sh +6 -168
  22. package/hooks/babysitter-proxied-user-prompt-submitted.ps1 +10 -90
  23. package/hooks/babysitter-proxied-user-prompt-submitted.sh +2 -86
  24. package/hooks.json +33 -9
  25. package/package.json +20 -21
  26. package/plugin.json +7 -6
  27. package/scripts/create-release-tag.mjs +18 -0
  28. package/scripts/publish-from-tag.mjs +41 -0
  29. package/scripts/team-install.js +14 -84
  30. package/skills/babysit/SKILL.md +2 -4
  31. package/skills/call/SKILL.md +5 -1
  32. package/skills/cleanup/SKILL.md +43 -0
  33. package/skills/contrib/SKILL.md +34 -0
  34. package/skills/doctor/SKILL.md +7 -8
  35. package/skills/forever/SKILL.md +8 -0
  36. package/skills/help/SKILL.md +4 -2
  37. package/skills/observe/SKILL.md +7 -2
  38. package/skills/plugins/SKILL.md +257 -0
  39. package/skills/project-install/SKILL.md +18 -0
  40. package/skills/resume/SKILL.md +1 -1
  41. package/skills/retrospect/SKILL.md +48 -48
  42. package/skills/user-install/SKILL.md +3 -3
  43. package/skills/yolo/SKILL.md +12 -0
  44. package/versions.json +2 -1
  45. package/.github/plugin.json +0 -25
  46. package/hooks/proxied-hooks.json +0 -29
  47. package/hooks/session-end.ps1 +0 -69
  48. package/hooks/session-end.sh +0 -54
  49. package/hooks/session-start.ps1 +0 -111
  50. package/hooks/session-start.sh +0 -101
  51. package/hooks/user-prompt-submitted.ps1 +0 -52
  52. package/hooks/user-prompt-submitted.sh +0 -31
  53. package/scripts/sync-command-surfaces.js +0 -62
@@ -157,7 +157,6 @@ If it exists:
157
157
  **Goal:** Inspect babysitter session files for health and detect runaway loops.
158
158
 
159
159
  - Search for session state files using Glob:
160
- - `plugins/babysitter/skills/babysit/state/*.md`
161
160
  - `.a5c/state/*.md`
162
161
  - `.a5c/state/*.json`
163
162
  - For each session state file found:
@@ -261,7 +260,7 @@ Mark as PASS if total size < 500MB and no files > 10MB. Mark as WARN if total si
261
260
 
262
261
  ### 10a. Hook Registration
263
262
 
264
- - Locate the plugin root. Check for `CLAUDE_PLUGIN_ROOT` env var, or search for `plugins/babysitter/hooks/hooks.json` by walking up from the current directory.
263
+ - 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.
265
264
  - If found, read `hooks.json` and verify:
266
265
  - A `Stop` hook entry exists with a command referencing `babysitter-stop-hook.sh`.
267
266
  - A `SessionStart` hook entry exists with a command referencing `babysitter-session-start-hook.sh`.
@@ -316,7 +315,7 @@ If the stop hook shows NO evidence of execution (no log entries, no journal even
316
315
 
317
316
  Perform these diagnostic steps in order and report the first failure found:
318
317
 
319
- 1. **Plugin not installed**: Check if `plugins/babysitter/` exists relative to the project root and if `CLAUDE_PLUGIN_ROOT` is set. If the plugin directory doesn't exist, report: "Plugin not installed — the babysitter plugin directory is missing."
318
+ 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."
320
319
 
321
320
  2. **Plugin not enabled**: Check for Claude settings files:
322
321
  - `~/.claude/settings.json` — look for `babysitter` in `enabledPlugins`.
@@ -363,13 +362,13 @@ Mark as FAIL if:
363
362
  - Parse the output and inspect the `resolvedFrom` field. Classify as follows:
364
363
  - `resolvedFrom: "pid-marker"` → mark as PASS ("Session ID derives from the live Claude Code ancestor process -- authoritative").
365
364
  - `resolvedFrom: "env-file"` → mark as PASS with a note ("CLAUDE_ENV_FILE was used; typically healthy").
366
- - `resolvedFrom: "env-var"` → mark as WARN ("`BABYSITTER_SESSION_ID` is set without a corroborating PID marker. Likely stale from a prior Claude Code session -- see GitHub issue #130").
367
- - Remediation: run `babysitter session:cleanup` and start a fresh Claude Code session, or `unset BABYSITTER_SESSION_ID` before invoking babysitter.
365
+ - `resolvedFrom: "env-var"` → mark as WARN ("`AGENT_SESSION_ID` is set without a corroborating PID marker. Likely stale from a prior Claude Code session -- see GitHub issue #130").
366
+ - Remediation: run `babysitter session:cleanup` and start a fresh Claude Code session, or `unset AGENT_SESSION_ID` before invoking babysitter.
368
367
  - `resolvedFrom: "none"` → mark as ERROR ("No session ID resolvable. Either no session-start hook fired, or the ancestor walk failed").
369
368
 
370
369
  **Env-var shadow check:**
371
370
  - Independently inspect `envVarPresent` and `envVarMatches` in the output.
372
- - If `envVarPresent && !envVarMatches`, mark as WARN ("`BABYSITTER_SESSION_ID` in env does not match the resolved session ID; a stale value is shadowing the authoritative one. Unset the env var").
371
+ - If `envVarPresent && !envVarMatches`, mark as WARN ("`AGENT_SESSION_ID` in env does not match the resolved session ID; a stale value is shadowing the authoritative one. Unset the env var").
373
372
 
374
373
  ---
375
374
 
@@ -391,7 +390,7 @@ Mark as FAIL if:
391
390
 
392
391
  - Enumerate files in `~/.a5c/` matching the pattern `current-session-*-pid-*`.
393
392
  - Count markers per harness (derived from the filename).
394
- - If more than one live marker exists for the same harness, mark as INFO ("Multiple live Claude Code / harness sessions detected; ensure each shell scopes `BABYSITTER_SESSION_ID` appropriately -- the PID marker handles this automatically").
393
+ - If more than one live marker exists for the same harness, mark as INFO ("Multiple live Claude Code / harness sessions detected; ensure each shell scopes `AGENT_SESSION_ID` appropriately -- the PID marker handles this automatically").
395
394
  - Otherwise mark as PASS.
396
395
 
397
396
  ---
@@ -502,7 +501,7 @@ babysitter session:cleanup --dry-run # preview
502
501
  babysitter session:cleanup # apply
503
502
 
504
503
  # 2. Unset a stale env var
505
- unset BABYSITTER_SESSION_ID
504
+ unset AGENT_SESSION_ID
506
505
 
507
506
  # 3. Re-bind a run explicitly if needed
508
507
  babysitter session:resume --session-id <fresh-id> --state-dir ~/.a5c --run-id <runId> --runs-dir .a5c/runs
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: forever
3
+ description: Use this command to start babysitting a never-ending babysitter run.
4
+ ---
5
+
6
+ # forever
7
+
8
+ 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.
@@ -231,9 +231,11 @@ SECONDARY COMMANDS
231
231
  effect status in your browser. Useful when running /yolo or /forever to watch
232
232
  progress without interrupting the run.
233
233
 
234
- How it works: Runs npx @yoavmayer/babysitter-observer-dashboard@latest which watches
234
+ How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches
235
235
  the .a5c/runs/ directory (or a parent directory containing multiple projects) and
236
- serves a live dashboard. The process is blocking -- it runs until you stop it.
236
+ serves a live dashboard. The process is blocking -- it runs until you stop it, and
237
+ it prints the local URL to share with the user. Do not use `babysitter observe`
238
+ as a fallback; the core Babysitter CLI does not expose that subcommand.
237
239
 
238
240
  Example: /babysitter:observe
239
241
  (opens browser showing all runs with live-updating task
@@ -8,6 +8,11 @@ description: Launch the babysitter observer dashboard. Installs and runs the rea
8
8
  Run the babysitter observer dashboard:
9
9
 
10
10
  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.
11
- 2. Launch the dashboard: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`
11
+ 2. Launch the standalone dashboard package: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`.
12
12
  3. This is a blocking process — it will keep running until stopped.
13
- 4. Open the browser at the URL printed by the dashboard.
13
+ 4. Report the URL printed by the dashboard to the user, then open it in the browser.
14
+
15
+ Do not fall back to `babysitter observe`; the core Babysitter CLI does not expose
16
+ that subcommand. Some harness runtimes may provide a separate
17
+ `agent-platform observe` surface, but this skill uses the verified standalone
18
+ dashboard package.
@@ -0,0 +1,257 @@
1
+ ---
2
+ name: plugins
3
+ description: manage babysitter plugins. use this command to see the list of installed babysitter plugins, their status, and manage them (install, update, uninstall, list from marketplace, add marketplace, configure plugin, create new plugin, etc).
4
+ ---
5
+
6
+ # plugins
7
+
8
+ This command installs and manages plugins for babysitter. A plugin is a version-managed package of contextual instructions (for install, uninstall, configure, and update/migrate between versions), not a conventional software plugin.
9
+
10
+ if the command is run without arguments, it lists all installed plugins with their name, version, marketplace, installation date, and last update date. as well as marketplaces added to the system. and instructions on how to install new plugins from marketplaces.
11
+ if there are no marketplaces added, add the default marketplace:
12
+ ```bash
13
+ babysitter plugin:add-marketplace --marketplace-url https://github.com/a5c-ai/babysitter --marketplace-path plugins/a5c/marketplace/marketplace.json --global --json
14
+ ```
15
+
16
+ Plugins can be installed at two scopes:
17
+ - **global** (`--global`): stored under `~/.a5c/`, available for all projects
18
+ - **project** (`--project`): stored under `<projectDir>/.a5c/`, project-specific
19
+
20
+ ## Marketplace Management
21
+
22
+ Marketplaces are git repositories containing a `marketplace.json` manifest and plugin package directories. The SDK clones them locally with `--depth 1`.
23
+
24
+ **Storage locations:**
25
+ - Global: `~/.a5c/marketplaces/<name>/`
26
+ - Project: `<projectDir>/.a5c/marketplaces/<name>/`
27
+
28
+ The marketplace name is derived from the git URL's last path segment (stripping `.git` suffix and trailing slashes).
29
+
30
+ ### Adding a marketplace
31
+
32
+ ```bash
33
+ babysitter plugin:add-marketplace --marketplace-url <url> [--marketplace-path <relative-path>] [--marketplace-branch <ref>] [--force] --global|--project [--json]
34
+ ```
35
+
36
+ Clones the marketplace repository to the local marketplaces directory. Use `--marketplace-path` to specify the relative path to `marketplace.json` within the repo (for monorepos or repos where the manifest is not at the root). Use `--marketplace-branch` to clone a specific branch, tag, or ref (defaults to the repo's default branch). Use `--force` to replace an existing marketplace clone (deletes and re-clones).
37
+
38
+ ### Updating a marketplace
39
+
40
+ ```bash
41
+ babysitter plugin:update-marketplace --marketplace-name <name> [--marketplace-branch <ref>] --global|--project [--json]
42
+ ```
43
+
44
+ Runs `git pull` on the local marketplace clone to fetch latest changes. Use `--marketplace-branch` to switch to a different branch before pulling (works even with shallow clones).
45
+
46
+ ### Listing plugins in a marketplace
47
+
48
+ ```bash
49
+ babysitter plugin:list-plugins --marketplace-name <name> --global|--project [--json]
50
+ ```
51
+
52
+ Reads the `marketplace.json` manifest and returns all available plugins sorted alphabetically by name. Each entry includes: name, description, latestVersion, versions array, packagePath, tags, and author.
53
+
54
+ ## Plugin Installation
55
+
56
+ **Note:** For `plugin:install`, `plugin:update`, `plugin:configure`, and `plugin:list-plugins`, the `--marketplace-name` flag is auto-detected when only one marketplace is cloned for the given scope. You can omit it if there's only one marketplace.
57
+
58
+ ### Flow
59
+
60
+ 1. Update the marketplace: `babysitter plugin:update-marketplace --marketplace-name <name> --global|--project`
61
+ 2. Check current state: `babysitter plugin:list-installed --global|--project` to see installed plugins and versions
62
+ 3. Install the plugin:
63
+
64
+ ```bash
65
+ babysitter plugin:install --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
66
+ ```
67
+
68
+ This command resolves the plugin package path from the marketplace manifest, reads `install.md` from the plugin package directory, and returns the installation instructions. If an `install-process.js` file exists, the instructions may reference it as an automated install process.
69
+
70
+ 4. The agent performs the installation steps as defined in `install.md`
71
+ 5. The agent updates the registry:
72
+
73
+ ```bash
74
+ babysitter plugin:update-registry --plugin-name <name> --plugin-version <ver> --marketplace-name <mp> --global|--project [--json]
75
+ ```
76
+
77
+ ## Plugin Update (with migrations)
78
+
79
+ ```bash
80
+ babysitter plugin:update --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
81
+ ```
82
+
83
+ This command:
84
+ 1. Reads the currently installed version from the registry
85
+ 2. Resolves the latest version from the marketplace manifest
86
+ 3. Looks in the plugin package's `migrations/` directory for migration files
87
+ 4. Uses BFS over the migration graph to find the shortest path from the installed version to the target version
88
+ 5. Returns the ordered migration instructions (content of each migration file in sequence)
89
+
90
+ **Migration filename format:** `<fromVersion>_to_<toVersion>.<ext>` where:
91
+ - Versions may contain alphanumerics, dots, dashes (e.g. `1.0.0`, `2.0.0-beta`)
92
+ - Extensions: `.md` for markdown instructions, `.js` for executable process files
93
+ - Examples: `1.0.0_to_1.1.0.md`, `2.0.0-beta_to_2.0.0.js`
94
+
95
+ After performing the migration steps, update the registry:
96
+
97
+ ```bash
98
+ babysitter plugin:update-registry --plugin-name <name> --plugin-version <new-ver> --marketplace-name <mp> --global|--project [--json]
99
+ ```
100
+
101
+ ## Plugin Uninstallation
102
+
103
+ ```bash
104
+ babysitter plugin:uninstall --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
105
+ ```
106
+
107
+ Reads `uninstall.md` from the plugin package directory and returns the uninstall instructions. After performing the uninstall steps, remove from registry:
108
+
109
+ ```bash
110
+ babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
111
+ ```
112
+
113
+ ## Plugin Configuration
114
+
115
+ ```bash
116
+ babysitter plugin:configure --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
117
+ ```
118
+
119
+ Reads `configure.md` from the plugin package directory and returns configuration instructions.
120
+
121
+ ## Registry Management
122
+
123
+ The plugin registry (`plugin-registry.json`) tracks installed plugins with schema version `2026.01.plugin-registry-v1`. Writes use atomic file operations (temp + rename) for crash safety.
124
+
125
+ **Storage locations:**
126
+ - Global: `~/.a5c/plugin-registry.json`
127
+ - Project: `<projectDir>/.a5c/plugin-registry.json`
128
+
129
+ ### List installed plugins
130
+
131
+ ```bash
132
+ babysitter plugin:list-installed --global|--project [--json]
133
+ ```
134
+
135
+ Returns all installed plugins sorted alphabetically. In `--json` mode, returns an array of registry entries. In human mode, displays a formatted table with name, version, marketplace, and timestamps.
136
+
137
+ ### Remove from registry
138
+
139
+ ```bash
140
+ babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
141
+ ```
142
+
143
+ Removes a plugin entry from the registry. Returns error if the plugin is not present.
144
+
145
+ ## Plugin Creation
146
+
147
+ To create a new plugin package from scratch, use the `meta/plugin-creation` babysitter process. This process guides you through requirements analysis, structure design, instruction authoring, optional process file generation, validation, and marketplace integration.
148
+
149
+ ### Using the plugin creation process
150
+
151
+ Orchestrate a babysitter run with the plugin creation process:
152
+
153
+ ```bash
154
+ # Create inputs file
155
+ cat > /tmp/plugin-inputs.json << 'EOF'
156
+ {
157
+ "pluginName": "my-plugin",
158
+ "description": "What the plugin does — be specific about install/configure/uninstall behavior",
159
+ "scope": "project",
160
+ "outputDir": "./plugins",
161
+ "components": {
162
+ "installProcess": false,
163
+ "configureProcess": false,
164
+ "uninstallProcess": false,
165
+ "migrations": false,
166
+ "processFiles": false
167
+ },
168
+ "marketplace": {
169
+ "name": "my-marketplace",
170
+ "author": "my-org",
171
+ "tags": ["category1", "category2"]
172
+ }
173
+ }
174
+ EOF
175
+
176
+ # Create and run
177
+ babysitter run:create \
178
+ --process-id meta/plugin-creation \
179
+ --entry library/specializations/meta/plugin-creation.js#process \
180
+ --inputs /tmp/plugin-inputs.json \
181
+ --prompt "Create a new babysitter plugin package" \
182
+ --json
183
+ ```
184
+
185
+ ### What the process generates
186
+
187
+ The process creates a complete plugin package directory:
188
+
189
+ | File | Description |
190
+ |------|-------------|
191
+ | `install.md` | Agent-readable installation instructions with numbered steps |
192
+ | `uninstall.md` | Reversal instructions for clean removal |
193
+ | `configure.md` | Configuration options table and adjustment instructions |
194
+ | `install-process.js` | *(optional)* Automated babysitter process for complex install steps |
195
+ | `configure-process.js` | *(optional)* Automated configuration process |
196
+ | `process/main.js` | *(optional)* Main process the plugin contributes |
197
+ | `marketplace-entry.json` | Ready-to-use marketplace.json entry for publishing |
198
+
199
+ ### Process phases
200
+
201
+ 1. **Requirements Analysis** — Analyzes plugin purpose, prerequisites, config options, file structure
202
+ 2. **Structure Design** — Plans directory layout and file inventory (with review breakpoint)
203
+ 3. **Instruction Authoring** — Writes install.md, uninstall.md, configure.md
204
+ 4. **Process Files** — Creates optional babysitter process files (install-process.js, configure-process.js, process/main.js)
205
+ 5. **Validation** — Verifies package completeness, instruction quality, path correctness
206
+ 6. **Marketplace Integration** — Generates marketplace.json entry for publishing
207
+
208
+ ### Quick creation (without orchestration)
209
+
210
+ For simple plugins that only need instruction files, you can create the package manually following the structure below and the [Plugin Author Guide](docs/plugins/plugin-author-guide.md).
211
+
212
+ ## Plugin Package Structure
213
+
214
+ ```
215
+ my-plugin/
216
+ package.json # Optional (name field used as plugin ID, falls back to directory name)
217
+ install.md # Markdown instructions for installation
218
+ uninstall.md # Markdown instructions for removal
219
+ configure.md # Markdown instructions for configuration
220
+ install-process.js # Optional automated install process
221
+ uninstall-process.js # Optional automated uninstall process
222
+ configure-process.js # Optional automated configure process
223
+ migrations/ # Version migration files
224
+ 1.0.0_to_1.1.0.md
225
+ 1.1.0_to_2.0.0.js
226
+ process/ # Process definition files (collected recursively)
227
+ main.js
228
+ ```
229
+
230
+ ## All CLI Commands Summary
231
+
232
+ All commands accept `--json` for machine-readable output and `--global|--project`.
233
+
234
+ | Command | Required Flags | Description |
235
+ |---------|---------------|-------------|
236
+ | `plugin:add-marketplace` | `--marketplace-url`, `--global\|--project` [`--marketplace-path`, `--marketplace-branch`, `--force`] | Clone a marketplace repository |
237
+ | `plugin:update-marketplace` | `--marketplace-name`, `--global\|--project` [`--marketplace-branch`] | Pull latest marketplace changes (optionally switch branch) |
238
+ | `plugin:list-plugins` | `--marketplace-name`, `--global\|--project` | List available plugins in a marketplace |
239
+ | `plugin:install` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get install instructions for a plugin |
240
+ | `plugin:uninstall` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get uninstall instructions for a plugin |
241
+ | `plugin:update` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Resolve migration chain and get update instructions |
242
+ | `plugin:configure` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get configuration instructions for a plugin |
243
+ | `plugin:list-installed` | `--global\|--project` | List all installed plugins |
244
+ | `plugin:update-registry` | `--plugin-name`, `--plugin-version`, `--marketplace-name`, `--global\|--project` | Register or update a plugin entry |
245
+ | `plugin:remove-from-registry` | `--plugin-name`, `--global\|--project` | Remove a plugin entry from the registry |
246
+
247
+ ## After Plugin Work: Contribute Back
248
+
249
+ After working with plugins, prompt the user to share improvements or report issues:
250
+
251
+ - **Improved a plugin's install/configure/uninstall instructions**: `/babysitter:contrib library contribution: improved [plugin-name] [install|configure|uninstall] instructions`
252
+ - **Created a new plugin**: `/babysitter:contrib library contribution: new plugin [plugin-name] -- [description]`
253
+ - **Found a bug in a plugin or the plugin system**: `/babysitter:contrib bug report: [description, e.g. "plugin:update-registry fails when marketplace hasn't been cloned"]`
254
+ - **Plugin install/configure instructions were confusing or wrong**: `/babysitter:contrib bug report: [plugin-name] install instructions [description of what was wrong]`
255
+ - **Have an idea for a new plugin**: `/babysitter:contrib feature request: plugin idea -- [description]`
256
+
257
+ Even reporting that a plugin's instructions were unclear helps improve it for the next user.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: project-install
3
+ description: Set up a project for babysitting. Guides you through onboarding a new or existing project — researches the codebase, interviews you about goals and workflows, builds the project profile, installs the best tools, and optionally configures CI/CD integration.
4
+ ---
5
+
6
+ # project-install
7
+
8
+ Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
9
+
10
+ Before using the process library, resolve the active library root through the SDK CLI. If no binding exists yet, initialize the shared global SDK binding with:
11
+
12
+ ```bash
13
+ babysitter process-library:active --json
14
+ ```
15
+
16
+ Then use the `cradle/project-install` process from the active process library.
17
+
18
+ When the run completes, end with a friendly message that includes a polite and humorous ask to star the repo on GitHub: https://github.com/a5c-ai/babysitter
@@ -5,5 +5,5 @@ description: Resume orchestrating of a babysitter run. use this command to resum
5
5
 
6
6
  # resume
7
7
 
8
- Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). to resume a run.
8
+ Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). to resume a run.
9
9
  if no run was given, discover the runs and suggest which incomplete run to resume based on the run's status, inputs, process , etc.
@@ -5,52 +5,52 @@ description: Analysis for a run and its results, process, suggestions for proces
5
5
 
6
6
  # retrospect
7
7
 
8
- Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
9
-
10
- create and run a retrospect process:
11
-
12
- ### Run Selection
13
-
14
- - `--all` or "all runs": list all completed/failed runs and analyze collectively
15
- - Multiple run IDs: analyze each specified run
16
- - Single run ID or no ID: existing behavior (latest run)
17
- - In interactive mode with no run specified: ask user whether to analyze latest, select specific runs, or all runs
18
-
19
- ### Cross-Run Analysis (multi-run mode)
20
-
21
- When analyzing multiple runs, the retrospect process should additionally cover:
22
- - Common failure patterns across runs
23
- - Velocity trends (tasks/time across runs)
24
- - Process evolution (how processes changed)
25
- - Repeated breakpoint patterns
26
- - Aggregate quality metrics
27
-
28
- implementations notes (for the process):
29
- - The process should analyze the run, the process that was followed, and provide suggestions for improvements, optimizations, and fixes.
30
- - The process should such have many breakpoints where the user can steer the process, provide feedback, and make decisions about how to proceed with the retrospect.
31
- - The process should be designed to be flexible and adaptable to different types of runs, projects, and goals, and should be able to provide insights and suggestions that are relevant and actionable for the user. (modification to the process, skills, etc.)
32
- - The process should be designed to be iterative, allowing the user to go through multiple rounds of analysis and improvement, and should be able to track the changes and improvements made over time.
33
- - The process should cover:
34
- - Analysis of the run and its results, including what went well, what didn't go well, and what could be improved.
35
- - Analysis of the process that was followed, including what steps were taken, what tools were used, and how effective they were.
36
- - Suggestions for improvements, optimizations, and fixes for both the run and the process.
37
- - Implementing the improvements, optimizations, and fixes, and tracking the changes made over time.
38
- ### Cleanup Suggestion
39
-
40
- After retrospect analysis, suggest running `/babysitter:cleanup` to clean up old run data and reclaim disk space.
41
-
42
- - Ending by explicitly prompting the user to contribute back -- even just reporting an issue is valuable, they don't need to implement the fix themselves. After analysis, display a clear call-to-action:
43
-
44
- "You've identified [specific insight/improvement]. This could help other babysitter users too. Run `/babysitter:contrib` to share it upstream -- you can either report it as an issue or submit a PR with the fix."
45
-
46
- Route to the specific contrib workflow based on what the user wants to do:
47
-
48
- **Just reporting (no code changes needed):**
49
- - Found a bug or weakness in a process -> `/babysitter:contrib bug report: [description of what went wrong]`
50
- - Found missing or confusing documentation -> `/babysitter:contrib documentation question: [what was unclear]`
51
- - Have an idea for improvement but don't want to implement it -> `/babysitter:contrib feature request: [description]`
52
-
53
- **Contributing code changes:**
54
- - Process/skill/agent improvements -> `/babysitter:contrib library contribution: [description]`
55
- - Bug fixes in SDK or CLI -> `/babysitter:contrib bugfix: [description]`
8
+ Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
9
+
10
+ create and run a retrospect process:
11
+
12
+ ### Run Selection
13
+
14
+ - `--all` or "all runs": list all completed/failed runs and analyze collectively
15
+ - Multiple run IDs: analyze each specified run
16
+ - Single run ID or no ID: existing behavior (latest run)
17
+ - In interactive mode with no run specified: ask user whether to analyze latest, select specific runs, or all runs
18
+
19
+ ### Cross-Run Analysis (multi-run mode)
20
+
21
+ When analyzing multiple runs, the retrospect process should additionally cover:
22
+ - Common failure patterns across runs
23
+ - Velocity trends (tasks/time across runs)
24
+ - Process evolution (how processes changed)
25
+ - Repeated breakpoint patterns
26
+ - Aggregate quality metrics
27
+
28
+ implementations notes (for the process):
29
+ - The process should analyze the run, the process that was followed, and provide suggestions for improvements, optimizations, and fixes.
30
+ - The process should such have many breakpoints where the user can steer the process, provide feedback, and make decisions about how to proceed with the retrospect.
31
+ - The process should be designed to be flexible and adaptable to different types of runs, projects, and goals, and should be able to provide insights and suggestions that are relevant and actionable for the user. (modification to the process, skills, etc.)
32
+ - The process should be designed to be iterative, allowing the user to go through multiple rounds of analysis and improvement, and should be able to track the changes and improvements made over time.
33
+ - The process should cover:
34
+ - Analysis of the run and its results, including what went well, what didn't go well, and what could be improved.
35
+ - Analysis of the process that was followed, including what steps were taken, what tools were used, and how effective they were.
36
+ - Suggestions for improvements, optimizations, and fixes for both the run and the process.
37
+ - Implementing the improvements, optimizations, and fixes, and tracking the changes made over time.
38
+ ### Cleanup Suggestion
39
+
40
+ After retrospect analysis, suggest running `/babysitter:cleanup` to clean up old run data and reclaim disk space.
41
+
42
+ - Ending by explicitly prompting the user to contribute back -- even just reporting an issue is valuable, they don't need to implement the fix themselves. After analysis, display a clear call-to-action:
43
+
44
+ "You've identified [specific insight/improvement]. This could help other babysitter users too. Run `/babysitter:contrib` to share it upstream -- you can either report it as an issue or submit a PR with the fix."
45
+
46
+ Route to the specific contrib workflow based on what the user wants to do:
47
+
48
+ **Just reporting (no code changes needed):**
49
+ - Found a bug or weakness in a process -> `/babysitter:contrib bug report: [description of what went wrong]`
50
+ - Found missing or confusing documentation -> `/babysitter:contrib documentation question: [what was unclear]`
51
+ - Have an idea for improvement but don't want to implement it -> `/babysitter:contrib feature request: [description]`
52
+
53
+ **Contributing code changes:**
54
+ - Process/skill/agent improvements -> `/babysitter:contrib library contribution: [description]`
55
+ - Bug fixes in SDK or CLI -> `/babysitter:contrib bugfix: [description]`
56
56
  - Plugin instruction improvements -> `/babysitter:contrib library contribution: improved [plugin-name] [install|configure|uninstall] instructions`
@@ -5,8 +5,8 @@ description: Set up babysitter for yourself. Guides you through onboarding — i
5
5
 
6
6
  # user-install
7
7
 
8
- Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
9
-
8
+ Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
9
+
10
10
  Before using the process library, resolve the active library root through the SDK CLI. If no binding exists yet, initialize the shared global SDK binding with:
11
11
 
12
12
  ```bash
@@ -14,5 +14,5 @@ babysitter process-library:active --json
14
14
  ```
15
15
 
16
16
  Then use the `cradle/user-install` process from the active process library.
17
-
17
+
18
18
  When the run completes, end with a friendly message that includes a polite and humorous ask to star the repo on GitHub: https://github.com/a5c-ai/babysitter
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: yolo
3
+ description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow in a non-interactive mode, without any user interaction or breakpoints in the run.
4
+ ---
5
+
6
+ # yolo
7
+
8
+ Run the Babysitter orchestration instructions directly through the CLI, without any user interaction or breakpoints. In Claude Code, use Bash to run `babysitter instructions:babysit-skill --harness claude-code --no-interactive`; in Codex, run `babysitter instructions:babysit-skill --harness codex --no-interactive`; in other harnesses, use the same command with that harness id. Then follow the returned instructions in this same turn until completion proof is produced. Do not stop after reading the instructions, do not invoke the Skill tool first, and use the non-interactive/no-breakpoints path when the instructions offer a mode choice.
9
+
10
+ User arguments for this command:
11
+
12
+ $ARGUMENTS
package/versions.json CHANGED
@@ -1,3 +1,4 @@
1
1
  {
2
- "sdkVersion": "5.0.1-staging.d73033a7"
2
+ "sdkVersion": "5.0.1-staging.d8bdfcceaf4a",
3
+ "extensionVersion": "5.0.1-staging.d8bdfcceaf4a"
3
4
  }
@@ -1,25 +0,0 @@
1
- {
2
- "name": "babysitter",
3
- "version": "0.1.0",
4
- "description": "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval -- powered by the Babysitter SDK",
5
- "author": { "name": "a5c.ai", "email": "support@a5c.ai" },
6
- "license": "MIT",
7
- "skills": "skills/",
8
- "hooks": "hooks.json",
9
- "commands": "commands/",
10
- "agents": "AGENTS.md",
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/a5c-ai/babysitter"
14
- },
15
- "keywords": [
16
- "orchestration",
17
- "workflow",
18
- "automation",
19
- "event-sourced",
20
- "hooks",
21
- "github-copilot",
22
- "agent",
23
- "LLM"
24
- ]
25
- }
@@ -1,29 +0,0 @@
1
- {
2
- "_comment": "NOT ACTIVE — Alternative hook registration using per-hook unified scripts with hooks-proxy support. To activate, update the harness plugin configuration to reference these scripts.",
3
- "hooks": {
4
- "sessionStart": [
5
- {
6
- "type": "command",
7
- "bash": "bash \"./hooks/babysitter-proxied-session-start.sh\"",
8
- "powershell": "powershell -NoProfile -ExecutionPolicy Bypass -File \"./hooks/babysitter-proxied-session-start.ps1\"",
9
- "timeoutSec": 30
10
- }
11
- ],
12
- "sessionEnd": [
13
- {
14
- "type": "command",
15
- "bash": "bash \"./hooks/babysitter-proxied-session-end.sh\"",
16
- "powershell": "powershell -NoProfile -ExecutionPolicy Bypass -File \"./hooks/babysitter-proxied-session-end.ps1\"",
17
- "timeoutSec": 30
18
- }
19
- ],
20
- "userPromptSubmitted": [
21
- {
22
- "type": "command",
23
- "bash": "bash \"./hooks/babysitter-proxied-user-prompt-submitted.sh\"",
24
- "powershell": "powershell -NoProfile -ExecutionPolicy Bypass -File \"./hooks/babysitter-proxied-user-prompt-submitted.ps1\"",
25
- "timeoutSec": 15
26
- }
27
- ]
28
- }
29
- }
@@ -1,69 +0,0 @@
1
- # Babysitter Session End Hook for GitHub Copilot CLI (PowerShell)
2
- # Cleanup and logging on session exit.
3
- #
4
- # NOTE: Unlike Claude Code's Stop hook, sessionEnd output is IGNORED by
5
- # Copilot CLI. This hook cannot block session exit or drive an orchestration
6
- # loop. It is purely for cleanup and logging.
7
-
8
- $ErrorActionPreference = "Continue"
9
-
10
- $PluginRoot = if ($env:COPILOT_PLUGIN_DIR) { $env:COPILOT_PLUGIN_DIR } else { Split-Path -Parent $PSScriptRoot }
11
-
12
- # Resolve babysitter CLI
13
- $hasBabysitter = [bool](Get-Command babysitter -ErrorAction SilentlyContinue)
14
- $useFallback = $false
15
-
16
- if (-not $hasBabysitter) {
17
- $localBin = Join-Path $env:USERPROFILE ".local\bin\babysitter.cmd"
18
- if (Test-Path $localBin) {
19
- $env:PATH = "$(Split-Path $localBin);$env:PATH"
20
- $hasBabysitter = $true
21
- } else {
22
- $versionsFile = Join-Path $PluginRoot "versions.json"
23
- try {
24
- $SdkVersion = (Get-Content $versionsFile -Raw | ConvertFrom-Json).sdkVersion
25
- if (-not $SdkVersion) { $SdkVersion = "latest" }
26
- } catch {
27
- $SdkVersion = "latest"
28
- }
29
- $useFallback = $true
30
- }
31
- }
32
-
33
- $GlobalRoot = if ($env:BABYSITTER_GLOBAL_STATE_DIR) { $env:BABYSITTER_GLOBAL_STATE_DIR } else { Join-Path $HOME ".a5c" }
34
- $LogDir = if ($env:BABYSITTER_LOG_DIR) { $env:BABYSITTER_LOG_DIR } else { Join-Path $GlobalRoot "logs" }
35
- $LogFile = Join-Path $LogDir "babysitter-session-end-hook.log"
36
- New-Item -ItemType Directory -Path $LogDir -Force -ErrorAction SilentlyContinue | Out-Null
37
-
38
- function Write-Blog {
39
- param([string]$Message)
40
- $ts = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
41
- Add-Content -Path $LogFile -Value "[INFO] $ts $Message" -ErrorAction SilentlyContinue
42
- }
43
-
44
- Write-Blog "Hook script invoked"
45
- Write-Blog "PLUGIN_ROOT=$PluginRoot"
46
-
47
- # Capture stdin
48
- $InputFile = [System.IO.Path]::GetTempFileName()
49
- $input | Out-File -FilePath $InputFile -Encoding utf8
50
-
51
- Write-Blog "Hook input received"
52
-
53
- $stderrLog = Join-Path $LogDir "babysitter-session-end-hook-stderr.log"
54
-
55
- try {
56
- if ($useFallback) {
57
- Get-Content $InputFile | & npx -y "@a5c-ai/babysitter-sdk@$SdkVersion" hook:run --hook-type session-end --harness github-copilot --plugin-root $PluginRoot --json 2>$stderrLog | Out-Null
58
- } elseif ($hasBabysitter) {
59
- Get-Content $InputFile | & babysitter hook:run --hook-type session-end --harness github-copilot --plugin-root $PluginRoot --json 2>$stderrLog | Out-Null
60
- }
61
- } catch {
62
- Write-Blog "Hook error: $_"
63
- }
64
-
65
- Write-Blog "Session end hook complete"
66
-
67
- Remove-Item $InputFile -Force -ErrorAction SilentlyContinue
68
-
69
- exit 0