@a5c-ai/babysitter-opencode 5.0.1-staging.d73033a7 → 5.0.1-staging.daf8e165bc4a

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 (63) hide show
  1. package/README.md +19 -21
  2. package/bin/cli.cjs +1 -191
  3. package/bin/cli.js +90 -49
  4. package/bin/install-shared.cjs +1 -478
  5. package/bin/install-shared.js +615 -0
  6. package/bin/install.cjs +1 -143
  7. package/bin/install.js +18 -98
  8. package/bin/uninstall.cjs +1 -87
  9. package/bin/uninstall.js +12 -34
  10. package/commands/blueprints.md +64 -0
  11. package/commands/call.md +11 -7
  12. package/commands/check-forbidden-markers.md +68 -0
  13. package/commands/cleanup.md +37 -9
  14. package/commands/contrib.md +31 -31
  15. package/commands/doctor.md +7 -8
  16. package/commands/forever.md +6 -6
  17. package/commands/help.md +246 -244
  18. package/commands/observe.md +17 -12
  19. package/commands/plan.md +17 -7
  20. package/commands/plugins.md +22 -255
  21. package/commands/project-install.md +10 -10
  22. package/commands/resume.md +8 -8
  23. package/commands/retrospect.md +55 -55
  24. package/commands/user-install.md +10 -10
  25. package/commands/yolo.md +11 -7
  26. package/hooks/babysitter-proxied-session-created.js +20 -212
  27. package/hooks/babysitter-proxied-session-created.sh +11 -0
  28. package/hooks/babysitter-proxied-shell-env.js +23 -145
  29. package/hooks/babysitter-proxied-shell-env.sh +3 -0
  30. package/hooks/babysitter-proxied-stop-hook.sh +3 -0
  31. package/hooks/babysitter-proxied-tool-execute-after.js +22 -160
  32. package/hooks/babysitter-proxied-tool-execute-after.sh +3 -0
  33. package/hooks/babysitter-proxied-tool-execute-before.js +22 -162
  34. package/hooks/babysitter-proxied-tool-execute-before.sh +3 -0
  35. package/hooks/hooks.json +14 -22
  36. package/package.json +21 -19
  37. package/plugin.json +6 -4
  38. package/scripts/create-release-tag.mjs +18 -0
  39. package/scripts/publish-from-tag.mjs +41 -0
  40. package/scripts/team-install.js +23 -0
  41. package/skills/accomplish-status/SKILL.md +8 -2
  42. package/skills/babysit/SKILL.md +35 -10
  43. package/skills/blueprints/SKILL.md +66 -0
  44. package/skills/call/SKILL.md +5 -1
  45. package/skills/check-forbidden-markers/SKILL.md +69 -0
  46. package/skills/cleanup/SKILL.md +37 -9
  47. package/skills/doctor/SKILL.md +7 -8
  48. package/skills/help/SKILL.md +13 -11
  49. package/skills/observe/SKILL.md +7 -2
  50. package/skills/plan/SKILL.md +11 -1
  51. package/skills/plugins/SKILL.md +12 -245
  52. package/skills/yolo/SKILL.md +5 -1
  53. package/versions.json +2 -2
  54. package/hooks/babysitter-proxied-session-idle.js +0 -173
  55. package/hooks/hooks.json.legacy +0 -46
  56. package/hooks/proxied-hooks.json +0 -47
  57. package/hooks/session-created.js +0 -182
  58. package/hooks/session-idle.js +0 -124
  59. package/hooks/shell-env.js +0 -88
  60. package/hooks/tool-execute-after.js +0 -107
  61. package/hooks/tool-execute-before.js +0 -109
  62. package/scripts/sync-command-docs.cjs +0 -107
  63. package/scripts/sync-command-surfaces.js +0 -52
@@ -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
@@ -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 `plugins/babysitter/hooks/hooks.json` by walking up from the current directory.
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 `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."
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`.
@@ -362,13 +361,13 @@ Mark as FAIL if:
362
361
  - Parse the output and inspect the `resolvedFrom` field. Classify as follows:
363
362
  - `resolvedFrom: "pid-marker"` → mark as PASS ("Session ID derives from the live Claude Code ancestor process -- authoritative").
364
363
  - `resolvedFrom: "env-file"` → mark as PASS with a note ("CLAUDE_ENV_FILE was used; typically healthy").
365
- - `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").
366
- - Remediation: run `babysitter session:cleanup` and start a fresh Claude Code session, or `unset BABYSITTER_SESSION_ID` before invoking babysitter.
364
+ - `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").
365
+ - Remediation: run `babysitter session:cleanup` and start a fresh Claude Code session, or `unset AGENT_SESSION_ID` before invoking babysitter.
367
366
  - `resolvedFrom: "none"` → mark as ERROR ("No session ID resolvable. Either no session-start hook fired, or the ancestor walk failed").
368
367
 
369
368
  **Env-var shadow check:**
370
369
  - Independently inspect `envVarPresent` and `envVarMatches` in the output.
371
- - 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").
370
+ - 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").
372
371
 
373
372
  ---
374
373
 
@@ -390,7 +389,7 @@ Mark as FAIL if:
390
389
 
391
390
  - Enumerate files in `~/.a5c/` matching the pattern `current-session-*-pid-*`.
392
391
  - Count markers per harness (derived from the filename).
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 `BABYSITTER_SESSION_ID` appropriately -- the PID marker handles this automatically").
392
+ - 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").
394
393
  - Otherwise mark as PASS.
395
394
 
396
395
  ---
@@ -501,7 +500,7 @@ babysitter session:cleanup --dry-run # preview
501
500
  babysitter session:cleanup # apply
502
501
 
503
502
  # 2. Unset a stale env var
504
- unset BABYSITTER_SESSION_ID
503
+ unset AGENT_SESSION_ID
505
504
 
506
505
  # 3. Re-bind a run explicitly if needed
507
506
  babysitter session:resume --session-id <fresh-id> --state-dir ~/.a5c --run-id <runId> --runs-dir .a5c/runs
@@ -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
@@ -1,244 +1,246 @@
1
- ---
2
- description: help and documentation for babysitter command usage, processes, skills, agents, and methodologies. use this command to understand how to use babysitter effectively.
3
- argument-hint: Specific command, process, skill, agent, or methodology you want help with (e.g. "help command doctor" or "help process retrospect").
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
- ## if no arguments provided:
8
-
9
- show this message:
10
-
11
- ```
12
- Welcome to the Babysitter Help Center! Here you can find documentation and guidance on how to use Babysitter effectively.
13
-
14
- Documentation: Explore our comprehensive documentation to understand Babysitter's features, processes, skills, agents, and methodologies. Read the Docs: https://github.com/a5c-ai/babysitter
15
-
16
- Or ask specific questions about commands, processes, skills, agents, methodologies, domains, specialities to get targeted help.
17
-
18
- Just type /babysitter:help followed by your question or the topic you want to learn more about.
19
-
20
-
21
- PRIMARY COMMANDS
22
- ================
23
-
24
- /babysitter:call [input]
25
- Start a babysitter-orchestrated run. Babysitter analyzes your request, interviews you
26
- to gather requirements, selects or creates the best process definition (from 50+
27
- domain-specific processes covering science, business, engineering, and more), then
28
- executes it step by step with breakpoints where you can steer direction.
29
-
30
- How it works: The babysitter skill reads your input, explores the process library to
31
- find matching processes, interviews you to refine scope, creates an SDK run with
32
- run:create, and orchestrates iterations with run:iterate -- dispatching tasks,
33
- handling breakpoints, and posting results until the run completes or you pause it.
34
-
35
- Example: /babysitter:call migrate our Express.js REST API to Fastify, keeping all
36
- existing routes and middleware behavior identical, with integration tests proving
37
- parity
38
-
39
-
40
- /babysitter:resume [run id or name]
41
- Resume a paused or interrupted babysitter run. If you don't specify a run, babysitter
42
- discovers all runs under .a5c/runs/, shows their status (created, waiting, completed,
43
- failed), and suggests which incomplete run to pick up based on its process, pending
44
- effects, and last activity.
45
-
46
- How it works: Reads run metadata and journal, rebuilds state cache if stale, identifies
47
- pending effects (breakpoints awaiting approval, tasks needing results), and continues
48
- orchestration from exactly where it left off -- no work is repeated thanks to the
49
- replay engine.
50
-
51
- Example: /babysitter:resume
52
- (discovers runs and offers: "Run abc123 is waiting on a breakpoint in the 'review
53
- test results' phase of your API migration -- resume this one?")
54
-
55
-
56
- /babysitter:yolo [input]
57
- Start a babysitter run in fully autonomous mode. Identical to /call but all breakpoints
58
- are auto-approved and no user interaction is requested. The babysitter makes every
59
- decision on its own until the run completes or hits a critical failure it can't recover
60
- from. Best for well-understood tasks where you trust the process.
61
-
62
- How it works: Same orchestration as /call, but the process context is configured to
63
- skip breakpoint effects -- instead of pausing for human approval, each breakpoint
64
- resolves immediately with an auto-approve result.
65
-
66
- Example: /babysitter:yolo add comprehensive unit tests for all functions in
67
- src/utils/ using vitest with >90% branch coverage
68
-
69
-
70
- /babysitter:plan [input]
71
- Generate a detailed execution plan without running anything. Babysitter goes through
72
- the full interview and process selection flow, designs the process definition with
73
- all tasks, breakpoints, and dependencies, but stops before creating the actual SDK run.
74
- You get a complete plan you can review, modify, or execute later with /call.
75
-
76
- How it works: Runs the babysitter skill's planning phase only -- analyzes input,
77
- matches to domain processes, interviews for requirements, then outputs the process
78
- definition file and a human-readable execution plan showing each phase, task, and
79
- decision point.
80
-
81
- Example: /babysitter:plan redesign our database schema to support multi-tenancy,
82
- migrate existing data, and update all queries -- I want to review the plan before
83
- we touch anything
84
-
85
-
86
- /babysitter:forever [input]
87
- Start a babysitter run that loops indefinitely with sleep intervals. Designed for
88
- ongoing operational tasks: monitoring, periodic maintenance, continuous improvement,
89
- or recurring workflows. The process uses an infinite loop with ctx.sleepUntil() to
90
- pause between iterations.
91
-
92
- How it works: Creates a process definition with a while(true) loop. Each cycle performs
93
- the task (e.g., check metrics, process tickets, run audits), then calls ctx.sleepUntil()
94
- to pause for a configured interval. The run stays in "waiting" state during sleep and
95
- resumes automatically when the sleep expires on the next orchestration iteration.
96
-
97
- Example: /babysitter:forever every 4 hours, check our GitHub issues labeled "bug",
98
- attempt to reproduce and fix any that look straightforward, and submit PRs for the fixes
99
-
100
-
101
- SECONDARY COMMANDS
102
- ==================
103
-
104
- /babysitter:doctor [issue]
105
- Run a comprehensive 10-point health check on a babysitter run. Inspects journal
106
- integrity (checksum verification, sequence gaps, timestamp ordering), state cache
107
- consistency, stuck/errored effects, stale locks, session state, log files, disk usage,
108
- process validation, and hook execution health. Produces a structured diagnostic report
109
- with PASS/WARN/FAIL status per check and specific fix commands.
110
-
111
- If no run ID is provided, automatically targets the most recent run. Can also diagnose
112
- environment-wide issues like missing CLI, unregistered hooks, or plugin problems.
113
-
114
- Example: /babysitter:doctor
115
- (checks the latest run: "CRITICAL -- Check 5 Lock Status: FAIL -- stale lock detected,
116
- process 12847 is no longer running. Fix: rm .a5c/runs/abc123/run.lock")
117
-
118
-
119
- /babysitter:assimilate [target]
120
- Convert an external methodology, AI coding harness, or specification into native
121
- babysitter process definitions. Takes a GitHub repo URL, harness name, or spec file
122
- and produces a complete process package with skills/ and agents/ directories.
123
-
124
- Two workflows available:
125
- - Methodology assimilation: clones the repo, learns its procedures and commands,
126
- converts manual flows into babysitter processes with refactored skills and agents
127
- - Harness integration: wires babysitter's SDK into a specific AI coding tool
128
- (codex, opencode, gemini-cli, antigravity, etc.) so it can orchestrate runs
129
-
130
- Example: /babysitter:assimilate https://github.com/some-org/their-deployment-playbook
131
- (clones the repo, analyzes their deployment procedures, and generates babysitter
132
- processes that replicate the same workflow with proper task definitions and breakpoints)
133
-
134
-
135
- /babysitter:user-install
136
- First-time onboarding for new babysitter users. Installs dependencies, runs an
137
- interactive interview about your development specialties, preferred tools, coding
138
- style, and how much autonomy you want babysitter to have. Builds a user profile
139
- stored at ~/.a5c/user-profile.json that personalizes future runs.
140
-
141
- Uses the cradle/user-install process which covers: dependency verification, user
142
- interview (expertise areas, preferred languages, IDE, terminal setup), profile
143
- generation, tool configuration, and optional global plugin installation.
144
-
145
- Example: /babysitter:user-install
146
- (walks you through: "What's your primary programming language? What frameworks do
147
- you use most? Do you prefer babysitter to auto-approve routine tasks or always ask?")
148
-
149
-
150
- /babysitter:project-install
151
- Onboard a new or existing project for babysitter orchestration. Researches the
152
- codebase (reads package.json, scans directory structure, identifies frameworks and
153
- patterns), interviews you about project goals and workflows, generates a project
154
- profile at .a5c/project-profile.json, and optionally sets up CI/CD integration.
155
-
156
- Uses the cradle/project-install process which covers: codebase analysis, project
157
- interview, profile creation, recommended plugin installation, hook configuration,
158
- and optional CI pipeline setup.
159
-
160
- Example: /babysitter:project-install
161
- (scans your repo: "I see this is a Next.js 16 app with Tailwind, using vitest for
162
- tests and PostgreSQL. What are your main development goals for this project?")
163
-
164
-
165
- /babysitter:retrospect [run id or name]
166
- Analyze a completed run to extract lessons and improve future runs. Reviews what
167
- happened (journal events, task results, timing, errors), evaluates the process that
168
- was followed, and suggests concrete improvements to process definitions, skills,
169
- and agents. Interactive -- multiple breakpoints let you steer the analysis and
170
- decide which improvements to implement.
171
-
172
- Covers: run result analysis, process effectiveness review, improvement suggestions,
173
- implementation of changes, and routing to /contrib if improvements belong in the
174
- shared process library.
175
-
176
- Example: /babysitter:retrospect
177
- (analyzes the last run: "The API migration run completed but the 'verify parity'
178
- phase took 8 iterations because test assertions were too brittle. Suggestion: add
179
- a fuzzy comparison step before strict assertion. Implement this fix?")
180
-
181
-
182
- /babysitter:plugins [action]
183
- Manage babysitter plugins: list installed plugins, browse marketplaces, install,
184
- update, configure, uninstall, or create new plugins. Plugins are version-managed
185
- instruction packages (not executable code) that guide the agent through install,
186
- configure, and uninstall steps via markdown files.
187
-
188
- Without arguments: shows installed plugins (name, version, marketplace, dates) and
189
- available marketplaces. With arguments: routes to the specific action.
190
-
191
- Key actions:
192
- - install <name> --global|--project: fetch install.md from marketplace and execute
193
- - configure <name> --global|--project: fetch configure.md and walk through options
194
- - update <name> --global|--project: resolve migration chain via BFS and apply steps
195
- - uninstall <name> --global|--project: fetch uninstall.md and execute removal
196
- - create: scaffold a new plugin package with the meta/plugin-creation process
197
-
198
- Example: /babysitter:plugins install sound-hooks --project
199
- (fetches sound-hooks from marketplace, reads install.md, walks you through player
200
- detection, sound selection, hook configuration, and registers in plugin-registry.json)
201
-
202
-
203
- /babysitter:contrib [feedback]
204
- Submit feedback or contribute to the babysitter project. Routes to the appropriate
205
- workflow based on what you want to do:
206
-
207
- Issue-based (opens GitHub issue in a5c-ai/babysitter):
208
- - Bug report: describe a bug in the SDK, CLI, or process library
209
- - Feature request: propose a new feature or enhancement
210
- - Documentation question: flag undocumented behavior or missing docs
211
-
212
- PR-based (forks repo, creates branch, submits PR):
213
- - Bugfix: you already have a fix ready
214
- - Feature implementation: you've built a new feature
215
- - Library contribution: new or improved process/skill/agent for the library
216
- - Harness integration: CI/CD or IDE integration
217
-
218
- Without arguments: shows all contribution types and helps you pick the right one.
219
- Breakpoints are placed before all GitHub actions (fork, star, PR, issue) so you
220
- can review before anything is submitted.
221
-
222
- Example: /babysitter:contrib bug report: plugin:update-registry fails when the
223
- marketplace hasn't been cloned yet, even though the registry update doesn't need
224
- marketplace access
225
-
226
-
227
- /babysitter:observe
228
- Launch the babysitter observer dashboard -- a real-time web UI that monitors active
229
- and past runs. Displays task progress, journal events, orchestration state, and
230
- effect status in your browser. Useful when running /yolo or /forever to watch
231
- progress without interrupting the run.
232
-
233
- How it works: Runs npx @yoavmayer/babysitter-observer-dashboard@latest which watches
234
- the .a5c/runs/ directory (or a parent directory containing multiple projects) and
235
- serves a live dashboard. The process is blocking -- it runs until you stop it.
236
-
237
- Example: /babysitter:observe
238
- (opens browser showing all runs with live-updating task
239
- status, journal event stream, and effect resolution timeline)
240
- ```
241
-
242
- ## if arguments provided:
243
-
244
- if the argument is "command [command name]", "process [process name]", "skill [skill name]", "agent [agent name]", or "methodology [methodology name]", then show the detailed documentation for that specific command, process, skill, agent, or methodology after reading the relevant files.
1
+ ---
2
+ description: help and documentation for babysitter command usage, processes, skills, agents, and methodologies. use this command to understand how to use babysitter effectively.
3
+ argument-hint: Specific command, process, skill, agent, or methodology you want help with (e.g. "help command doctor" or "help process retrospect").
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
+ ## if no arguments provided:
8
+
9
+ show this message:
10
+
11
+ ```
12
+ Welcome to the Babysitter Help Center! Here you can find documentation and guidance on how to use Babysitter effectively.
13
+
14
+ Documentation: Explore our comprehensive documentation to understand Babysitter's features, processes, skills, agents, and methodologies. Read the Docs: https://github.com/a5c-ai/babysitter
15
+
16
+ Or ask specific questions about commands, processes, skills, agents, methodologies, domains, specialities to get targeted help.
17
+
18
+ Just type /babysitter:help followed by your question or the topic you want to learn more about.
19
+
20
+
21
+ PRIMARY COMMANDS
22
+ ================
23
+
24
+ /babysitter:call [input]
25
+ Start a babysitter-orchestrated run. Babysitter analyzes your request, interviews you
26
+ to gather requirements, selects or creates the best process definition (from 50+
27
+ domain-specific processes covering science, business, engineering, and more), then
28
+ executes it step by step with breakpoints where you can steer direction.
29
+
30
+ How it works: The babysitter skill reads your input, explores the process library to
31
+ find matching processes, interviews you to refine scope, creates an SDK run with
32
+ run:create, and orchestrates iterations with run:iterate -- dispatching tasks,
33
+ handling breakpoints, and posting results until the run completes or you pause it.
34
+
35
+ Example: /babysitter:call migrate our Express.js REST API to Fastify, keeping all
36
+ existing routes and middleware behavior identical, with integration tests proving
37
+ parity
38
+
39
+
40
+ /babysitter:resume [run id or name]
41
+ Resume a paused or interrupted babysitter run. If you don't specify a run, babysitter
42
+ discovers all runs under .a5c/runs/, shows their status (created, waiting, completed,
43
+ failed), and suggests which incomplete run to pick up based on its process, pending
44
+ effects, and last activity.
45
+
46
+ How it works: Reads run metadata and journal, rebuilds state cache if stale, identifies
47
+ pending effects (breakpoints awaiting approval, tasks needing results), and continues
48
+ orchestration from exactly where it left off -- no work is repeated thanks to the
49
+ replay engine.
50
+
51
+ Example: /babysitter:resume
52
+ (discovers runs and offers: "Run abc123 is waiting on a breakpoint in the 'review
53
+ test results' phase of your API migration -- resume this one?")
54
+
55
+
56
+ /babysitter:yolo [input]
57
+ Start a babysitter run in fully autonomous mode. Identical to /call but all breakpoints
58
+ are auto-approved and no user interaction is requested. The babysitter makes every
59
+ decision on its own until the run completes or hits a critical failure it can't recover
60
+ from. Best for well-understood tasks where you trust the process.
61
+
62
+ How it works: Same orchestration as /call, but the process context is configured to
63
+ skip breakpoint effects -- instead of pausing for human approval, each breakpoint
64
+ resolves immediately with an auto-approve result.
65
+
66
+ Example: /babysitter:yolo add comprehensive unit tests for all functions in
67
+ src/utils/ using vitest with >90% branch coverage
68
+
69
+
70
+ /babysitter:plan [input]
71
+ Generate a detailed execution plan without running anything. Babysitter goes through
72
+ the full interview and process selection flow, designs the process definition with
73
+ all tasks, breakpoints, and dependencies, but stops before creating the actual SDK run.
74
+ You get a complete plan you can review, modify, or execute later with /call.
75
+
76
+ How it works: Runs the babysitter skill's planning phase only -- analyzes input,
77
+ matches to domain processes, interviews for requirements, then outputs the process
78
+ definition file and a human-readable execution plan showing each phase, task, and
79
+ decision point.
80
+
81
+ Example: /babysitter:plan redesign our database schema to support multi-tenancy,
82
+ migrate existing data, and update all queries -- I want to review the plan before
83
+ we touch anything
84
+
85
+
86
+ /babysitter:forever [input]
87
+ Start a babysitter run that loops indefinitely with sleep intervals. Designed for
88
+ ongoing operational tasks: monitoring, periodic maintenance, continuous improvement,
89
+ or recurring workflows. The process uses an infinite loop with ctx.sleepUntil() to
90
+ pause between iterations.
91
+
92
+ How it works: Creates a process definition with a while(true) loop. Each cycle performs
93
+ the task (e.g., check metrics, process tickets, run audits), then calls ctx.sleepUntil()
94
+ to pause for a configured interval. The run stays in "waiting" state during sleep and
95
+ resumes automatically when the sleep expires on the next orchestration iteration.
96
+
97
+ Example: /babysitter:forever every 4 hours, check our GitHub issues labeled "bug",
98
+ attempt to reproduce and fix any that look straightforward, and submit PRs for the fixes
99
+
100
+
101
+ SECONDARY COMMANDS
102
+ ==================
103
+
104
+ /babysitter:doctor [issue]
105
+ Run a comprehensive 10-point health check on a babysitter run. Inspects journal
106
+ integrity (checksum verification, sequence gaps, timestamp ordering), state cache
107
+ consistency, stuck/errored effects, stale locks, session state, log files, disk usage,
108
+ process validation, and hook execution health. Produces a structured diagnostic report
109
+ with PASS/WARN/FAIL status per check and specific fix commands.
110
+
111
+ If no run ID is provided, automatically targets the most recent run. Can also diagnose
112
+ environment-wide issues like missing CLI, unregistered hooks, or plugin problems.
113
+
114
+ Example: /babysitter:doctor
115
+ (checks the latest run: "CRITICAL -- Check 5 Lock Status: FAIL -- stale lock detected,
116
+ process 12847 is no longer running. Fix: rm .a5c/runs/abc123/run.lock")
117
+
118
+
119
+ /babysitter:assimilate [target]
120
+ Convert an external methodology, AI coding harness, or specification into native
121
+ babysitter process definitions. Takes a GitHub repo URL, harness name, or spec file
122
+ and produces a complete process package with skills/ and agents/ directories.
123
+
124
+ Two workflows available:
125
+ - Methodology assimilation: clones the repo, learns its procedures and commands,
126
+ converts manual flows into babysitter processes with refactored skills and agents
127
+ - Harness integration: wires babysitter's SDK into a specific AI coding tool
128
+ (codex, opencode, gemini-cli, antigravity, etc.) so it can orchestrate runs
129
+
130
+ Example: /babysitter:assimilate https://github.com/some-org/their-deployment-playbook
131
+ (clones the repo, analyzes their deployment procedures, and generates babysitter
132
+ processes that replicate the same workflow with proper task definitions and breakpoints)
133
+
134
+
135
+ /babysitter:user-install
136
+ First-time onboarding for new babysitter users. Installs dependencies, runs an
137
+ interactive interview about your development specialties, preferred tools, coding
138
+ style, and how much autonomy you want babysitter to have. Builds a user profile
139
+ stored at ~/.a5c/user-profile.json that personalizes future runs.
140
+
141
+ Uses the cradle/user-install process which covers: dependency verification, user
142
+ interview (expertise areas, preferred languages, IDE, terminal setup), profile
143
+ generation, tool configuration, and optional global plugin installation.
144
+
145
+ Example: /babysitter:user-install
146
+ (walks you through: "What's your primary programming language? What frameworks do
147
+ you use most? Do you prefer babysitter to auto-approve routine tasks or always ask?")
148
+
149
+
150
+ /babysitter:project-install
151
+ Onboard a new or existing project for babysitter orchestration. Researches the
152
+ codebase (reads package.json, scans directory structure, identifies frameworks and
153
+ patterns), interviews you about project goals and workflows, generates a project
154
+ profile at .a5c/project-profile.json, and optionally sets up CI/CD integration.
155
+
156
+ Uses the cradle/project-install process which covers: codebase analysis, project
157
+ interview, profile creation, recommended plugin installation, hook configuration,
158
+ and optional CI pipeline setup.
159
+
160
+ Example: /babysitter:project-install
161
+ (scans your repo: "I see this is a Next.js 16 app with Tailwind, using vitest for
162
+ tests and PostgreSQL. What are your main development goals for this project?")
163
+
164
+
165
+ /babysitter:retrospect [run id or name]
166
+ Analyze a completed run to extract lessons and improve future runs. Reviews what
167
+ happened (journal events, task results, timing, errors), evaluates the process that
168
+ was followed, and suggests concrete improvements to process definitions, skills,
169
+ and agents. Interactive -- multiple breakpoints let you steer the analysis and
170
+ decide which improvements to implement.
171
+
172
+ Covers: run result analysis, process effectiveness review, improvement suggestions,
173
+ implementation of changes, and routing to /contrib if improvements belong in the
174
+ shared process library.
175
+
176
+ Example: /babysitter:retrospect
177
+ (analyzes the last run: "The API migration run completed but the 'verify parity'
178
+ phase took 8 iterations because test assertions were too brittle. Suggestion: add
179
+ a fuzzy comparison step before strict assertion. Implement this fix?")
180
+
181
+
182
+ /babysitter:blueprints [action]
183
+ Manage Babysitter blueprints: list installed blueprints, browse marketplaces,
184
+ install, update, configure, uninstall, or create new blueprints. Blueprints are
185
+ version-managed instruction packages or process bundles that guide the agent
186
+ through install, configure, and uninstall steps.
187
+
188
+ Without arguments: shows installed blueprints (name, version, marketplace, dates) and
189
+ available marketplaces. With arguments: routes to the specific action.
190
+
191
+ Key actions:
192
+ - install <name> --global|--project: fetch install.md from marketplace and execute
193
+ - configure <name> --global|--project: fetch configure.md and walk through options
194
+ - update <name> --global|--project: resolve migration chain via BFS and apply steps
195
+ - uninstall <name> --global|--project: fetch uninstall.md and execute removal
196
+ - create: scaffold a new blueprint package
197
+
198
+ Example: /babysitter:blueprints install sound-hooks --project
199
+ (fetches sound-hooks from marketplace, reads install.md, walks you through player
200
+ detection, sound selection, hook configuration, and registers the blueprint)
201
+
202
+
203
+ /babysitter:contrib [feedback]
204
+ Submit feedback or contribute to the babysitter project. Routes to the appropriate
205
+ workflow based on what you want to do:
206
+
207
+ Issue-based (opens GitHub issue in a5c-ai/babysitter):
208
+ - Bug report: describe a bug in the SDK, CLI, or process library
209
+ - Feature request: propose a new feature or enhancement
210
+ - Documentation question: flag undocumented behavior or missing docs
211
+
212
+ PR-based (forks repo, creates branch, submits PR):
213
+ - Bugfix: you already have a fix ready
214
+ - Feature implementation: you've built a new feature
215
+ - Library contribution: new or improved process/skill/agent for the library
216
+ - Harness integration: CI/CD or IDE integration
217
+
218
+ Without arguments: shows all contribution types and helps you pick the right one.
219
+ Breakpoints are placed before all GitHub actions (fork, star, PR, issue) so you
220
+ can review before anything is submitted.
221
+
222
+ Example: /babysitter:contrib bug report: plugin:update-registry fails when the
223
+ marketplace hasn't been cloned yet, even though the registry update doesn't need
224
+ marketplace access
225
+
226
+
227
+ /babysitter:observe
228
+ Launch the babysitter observer dashboard -- a real-time web UI that monitors active
229
+ and past runs. Displays task progress, journal events, orchestration state, and
230
+ effect status in your browser. Useful when running /yolo or /forever to watch
231
+ progress without interrupting the run.
232
+
233
+ How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches
234
+ the .a5c/runs/ directory (or a parent directory containing multiple projects) and
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. Do not use `babysitter observe`
237
+ as a fallback; the core Babysitter CLI does not expose that subcommand.
238
+
239
+ Example: /babysitter:observe
240
+ (opens browser showing all runs with live-updating task
241
+ status, journal event stream, and effect resolution timeline)
242
+ ```
243
+
244
+ ## if arguments provided:
245
+
246
+ if the argument is "command [command name]", "process [process name]", "skill [skill name]", "agent [agent name]", or "methodology [methodology name]", then show the detailed documentation for that specific command, process, skill, agent, or methodology after reading the relevant files.