@a5c-ai/babysitter-gemini-cli 5.0.1-staging.917895b63 → 5.0.1-staging.a2865ee1a2da

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 CHANGED
@@ -4,10 +4,10 @@ Orchestrate complex, multi-step workflows with event-sourced state management, h
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- Install the Babysitter SDK CLI:
7
+ Install the Babysitter CLI once. The `babysitter` command is backed by the SDK and exposes the canonical harness/plugin installer used in tests:
8
8
 
9
9
  ```bash
10
- npm install -g @a5c-ai/babysitter-sdk
10
+ npm install -g @a5c-ai/babysitter
11
11
  ```
12
12
 
13
13
  ## Installation — Gemini CLI
@@ -19,6 +19,13 @@ babysitter-gemini-cli install --global
19
19
 
20
20
  Restart Gemini CLI to pick up the installed plugin.
21
21
 
22
+ For scriptable installs, prefer the SDK helper shape:
23
+
24
+ ```bash
25
+ babysitter harness:install-plugin <harness>
26
+ babysitter harness:install-plugin <harness> --workspace /path/to/repo
27
+ ```
28
+
22
29
  ## What's Included
23
30
 
24
31
  - **Skills**: babysit
@@ -29,7 +29,7 @@ function writeFileIfChanged(filePath, contents) {
29
29
  try {
30
30
  const existing = fs.readFileSync(filePath, 'utf8');
31
31
  if (existing === contents) return false;
32
- } catch {}
32
+ } catch (e) { process.stderr.write('[extension-mux] file read failed for ' + filePath + ', overwriting: ' + (e instanceof Error ? e.message : String(e)) + '\n'); }
33
33
  fs.mkdirSync(path.dirname(filePath), { recursive: true });
34
34
  fs.writeFileSync(filePath, contents);
35
35
  return true;
@@ -82,7 +82,7 @@ function writeJson(filePath, value) {
82
82
  function ensureExecutable(filePath) {
83
83
  try {
84
84
  fs.chmodSync(filePath, 0o755);
85
- } catch {}
85
+ } catch (e) { process.stderr.write('[extension-mux] chmod failed for ' + filePath + ': ' + (e instanceof Error ? e.message : String(e)) + '\n'); }
86
86
  }
87
87
 
88
88
  function normalizeMarketplaceSourcePath(source, marketplacePath) {
@@ -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.1-staging.917895b63",
107
+ version: "5.0.1-staging.a2865ee1a2da",
108
108
  author: { name: "a5c.ai" },
109
109
  };
110
110
  if (idx >= 0) marketplace.plugins[idx] = entry;
@@ -147,7 +147,7 @@ function resolveCliCommand(packageRoot) {
147
147
  const versionsPath = path.join(packageRoot, 'versions.json');
148
148
  const versions = readJson(versionsPath) || {};
149
149
  const ver = versions.sdkVersion || 'latest';
150
- return `npx -y @a5c-ai/babysitter-sdk@${ver}`;
150
+ return `npm exec --yes --package @a5c-ai/babysitter-sdk@${ver} -- babysitter`;
151
151
  }
152
152
 
153
153
  function runCli(packageRoot, cliArgs, options = {}) {
@@ -1,3 +1,3 @@
1
1
  description = "Orchestrate a babysitter run. use this command to start babysitting a complex workflow."
2
2
 
3
- prompt = "Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md)."
3
+ prompt = "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.\n\nUser arguments for this command:\n\n$ARGUMENTS"
@@ -0,0 +1,3 @@
1
+ description = "Pre-deploy gate that scans built JS chunks for forbidden substring markers (saga-era / obsolete code paths) listed in a project-local forbidden-markers.txt"
2
+
3
+ prompt = "Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). Compose the gate from the shared helper at `library/processes/shared/forbidden-markers-scanner.js` (issue #477).\n\n## What this gate does\n\nReads a list of literal substring markers from `scripts/forbidden-markers.txt` (blank lines and `#`-prefixed comments stripped) and greps every `.js` chunk under `.vercel/output/static/_next/static/chunks/` (Next.js / Vercel default; configurable) for any occurrence. Reports structured hits per `(marker, chunk)` pair with occurrence counts. Designed to chain between `vercel build --prod` and `vercel deploy --prod`.\n\nUse this gate when a refactor or restart-from-baseline replaced load-bearing code paths and you need a structural guarantee the obsolete symbols never re-ship. Burned-in evidence: cookbook VI-9 / VI-12 near-miss revivals during the 2026-05 iOS-Safari saga; the prototype lives at `cookbook/scripts/check-no-forbidden.mjs` and shipped two upstream contributions before being generalized as this gate.\n\n## When to use\n\n- **Pre-deploy.** Insert after build, before deploy. Block the deploy when `ok: false`.\n- **Post-restart.** After a baseline rollback + step-by-step re-add, snapshot the saga-era markers in `forbidden-markers.txt` and let CI hold the line.\n- **Post-refactor.** When old helper / handler / module names must not coexist with the new ones in the same bundle.\n\n## Expected config locations\n\n- `scripts/forbidden-markers.txt` — one marker per line, `#` for comments. The list is the contract; the gate is mechanical. Commit this file to source control.\n- `.vercel/output/static/_next/static/chunks/` — default scan target. Override for non-Vercel frameworks via the `--chunks-dir` flag or the `chunksDir` task input.\n\nA missing markers file is a no-op (`ok: true`, `reason: 'missing-markers-file'`) — misconfiguration is never a deploy block. A missing chunks directory is likewise a no-op (`reason: 'missing-chunks-dir'`) so the gate is safe to chain into `check:all` before the build runs.\n\n## Exit semantics\n\n| Reason | `ok` | Deploy decision |\n|-------------------------|--------|--------------------------------|\n| `missing-markers-file` | true | Pass (no gate active) |\n| `missing-chunks-dir` | true | Pass (run before build) |\n| `empty-markers` | true | Pass (list is empty) |\n| `no-chunks` | true | Pass (nothing to scan) |\n| `clean` | true | Pass — proceed to deploy |\n| `hits` | false | **BLOCK** — surface hits, ask for triage |\n\nFor each hit, the gate emits `{ marker, chunk, count }` so the operator sees the exact marker string, the absolute chunk path, and the number of occurrences in that chunk. Multiple hits across chunks for the same marker are reported separately.\n\n## Programmatic surface\n\n```js\nimport { scanForbiddenMarkers, checkForbiddenMarkersTask } from '@a5c-ai/babysitter-library/processes/shared';\n\n// Direct call:\nconst result = await scanForbiddenMarkers({\n markersFile: 'scripts/forbidden-markers.txt',\n chunksDir: '.vercel/output/static/_next/static/chunks',\n});\nif (!result.ok) {\n // result.hits: Array<{ marker, chunk, count }>\n // result.reason === 'hits'\n process.exit(1);\n}\n\n// Or dispatched as a babysitter task:\nconst gate = await ctx.task(checkForbiddenMarkersTask, {\n projectDir: '.',\n // markersFile / chunksDir are inferred from projectDir if omitted\n});\n```\n\n## Reference\n\n- Issue: https://github.com/a5c-ai/babysitter/issues/477\n- Helper module: `library/processes/shared/forbidden-markers-scanner.js`\n- Origin (cookbook prototype): `cookbook/scripts/check-no-forbidden.mjs` (81 lines)"
@@ -1,3 +1,3 @@
1
1
  description = "Clean up .a5c/runs and .a5c/processes directories. Aggregates insights from completed/failed runs into docs/run-history-insights.md, then removes old run data and orphaned process files."
2
2
 
3
- prompt = "Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).\n\nCreate and run a cleanup process using the process at `skills\\babysit\\process\\cradle\\cleanup-runs.js/processes/cleanup-runs.js`.\n\nImplementation notes (for the process):\n- Parse arguments for `--dry-run` flag (if present, set dryRun: true in inputs) and `--keep-days N` (default: 7)\n\nCRITICAL: The cleanup MUST follow this exact phase order. Do NOT delete any run before Phase 2 completes.\n\nPhase 1 — Scan:\n- Scan .a5c/runs/ for all runs\n- Classify each as terminal (completed/failed) or active (in-progress/created)\n- Identify terminal runs older than the keep-days threshold as removal candidates\n- Never mark active/in-progress runs for removal\n- Count and report: total runs, terminal, active, removal candidates, disk usage\n\nPhase 2 — Aggregate insights (BEFORE any deletion):\n- For EVERY removal candidate, read its run.json and journal/ events\n- Extract: processId, prompt, status, event count, created date, task summaries\n- Group by process type and extract patterns (retry counts, convergence behavior, failure modes)\n- Append a new dated section to docs/run-history-insights.md with:\n - Summary statistics (runs removed, disk freed, runs retained)\n - Run categories with counts and descriptions\n - Key patterns observed (multi-batch convergence, retry behavior, etc.)\n - What worked well / what didn't from the run data\n- This file MUST be written and verified before proceeding to Phase 3\n\nPhase 3 — Confirm removal:\n- In interactive mode, show the user what will be removed via a breakpoint\n- In non-interactive mode (yolo), proceed with defaults\n- In dry-run mode, stop here and show what would be removed\n\nPhase 4 — Remove:\n- Delete the terminal runs older than keep-days threshold\n- Identify and remove orphaned process files not referenced by remaining runs\n- Show remaining run count and disk usage after cleanup"
3
+ prompt = "Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).\n\nResolve the active process library with:\n\n```bash\nbabysitter process-library:active --json\n```\n\nRead `binding.dir` from that JSON and create/run the cleanup process from `cradle/cleanup-runs.js#process` relative to that active library root. Do not use plugin-cache-relative cradle paths.\n\nImplementation notes (for the process):\n- Parse arguments for `--dry-run` flag (if present, set dryRun: true in inputs) and `--keep-days N` (default: 7)\n\nCRITICAL: The cleanup MUST follow this exact phase order. Do NOT delete any run before Phase 2 completes.\n\nPhase 1 — Scan:\n- Scan .a5c/runs/ for all runs\n- Classify each as terminal (completed/failed) or active (in-progress/created)\n- Identify terminal runs older than the keep-days threshold as removal candidates\n- Never mark active/in-progress runs for removal\n- Count and report: total runs, terminal, active, removal candidates, disk usage\n\nPhase 2 — Aggregate insights (BEFORE any deletion):\n- For EVERY removal candidate, read its run.json and journal/ events\n- Extract: processId, prompt, status, event count, created date, task summaries\n- Group by process type and extract patterns (retry counts, convergence behavior, failure modes)\n- Append a new dated section to docs/run-history-insights.md with:\n - Summary statistics (runs removed, disk freed, runs retained)\n - Run categories with counts and descriptions\n - Key patterns observed (multi-batch convergence, retry behavior, etc.)\n - What worked well / what didn't from the run data\n- This file MUST be written and verified before proceeding to Phase 3\n\nPhase 3 — Confirm removal:\n- In interactive mode, show the user what will be removed via a breakpoint\n- In non-interactive mode (yolo), proceed with defaults\n- In dry-run mode, stop here and show what would be removed\n\nPhase 4 — Remove:\n- Delete the terminal runs older than keep-days threshold\n- Identify and remove orphaned process files not referenced by remaining runs\n- Show remaining run count and disk usage after cleanup"
@@ -1,3 +1,3 @@
1
1
  description = "help and documentation for babysitter command usage, processes, skills, agents, and methodologies. use this command to understand how to use babysitter effectively."
2
2
 
3
- prompt = "## if no arguments provided:\n\nshow this message:\n\n```\nWelcome to the Babysitter Help Center! Here you can find documentation and guidance on how to use Babysitter effectively.\n\nDocumentation: Explore our comprehensive documentation to understand Babysitter's features, processes, skills, agents, and methodologies. Read the Docs: https://github.com/a5c-ai/babysitter\n\nOr ask specific questions about commands, processes, skills, agents, methodologies, domains, specialities to get targeted help.\n\nJust type /babysitter:help followed by your question or the topic you want to learn more about.\n\n\nPRIMARY COMMANDS\n================\n\n/babysitter:call [input]\n Start a babysitter-orchestrated run. Babysitter analyzes your request, interviews you\n to gather requirements, selects or creates the best process definition (from 50+\n domain-specific processes covering science, business, engineering, and more), then\n executes it step by step with breakpoints where you can steer direction.\n\n How it works: The babysitter skill reads your input, explores the process library to\n find matching processes, interviews you to refine scope, creates an SDK run with\n run:create, and orchestrates iterations with run:iterate -- dispatching tasks,\n handling breakpoints, and posting results until the run completes or you pause it.\n\n Example: /babysitter:call migrate our Express.js REST API to Fastify, keeping all\n existing routes and middleware behavior identical, with integration tests proving\n parity\n\n\n/babysitter:resume [run id or name]\n Resume a paused or interrupted babysitter run. If you don't specify a run, babysitter\n discovers all runs under .a5c/runs/, shows their status (created, waiting, completed,\n failed), and suggests which incomplete run to pick up based on its process, pending\n effects, and last activity.\n\n How it works: Reads run metadata and journal, rebuilds state cache if stale, identifies\n pending effects (breakpoints awaiting approval, tasks needing results), and continues\n orchestration from exactly where it left off -- no work is repeated thanks to the\n replay engine.\n\n Example: /babysitter:resume\n (discovers runs and offers: \"Run abc123 is waiting on a breakpoint in the 'review\n test results' phase of your API migration -- resume this one?\")\n\n\n/babysitter:yolo [input]\n Start a babysitter run in fully autonomous mode. Identical to /call but all breakpoints\n are auto-approved and no user interaction is requested. The babysitter makes every\n decision on its own until the run completes or hits a critical failure it can't recover\n from. Best for well-understood tasks where you trust the process.\n\n How it works: Same orchestration as /call, but the process context is configured to\n skip breakpoint effects -- instead of pausing for human approval, each breakpoint\n resolves immediately with an auto-approve result.\n\n Example: /babysitter:yolo add comprehensive unit tests for all functions in\n src/utils/ using vitest with >90% branch coverage\n\n\n/babysitter:plan [input]\n Generate a detailed execution plan without running anything. Babysitter goes through\n the full interview and process selection flow, designs the process definition with\n all tasks, breakpoints, and dependencies, but stops before creating the actual SDK run.\n You get a complete plan you can review, modify, or execute later with /call.\n\n How it works: Runs the babysitter skill's planning phase only -- analyzes input,\n matches to domain processes, interviews for requirements, then outputs the process\n definition file and a human-readable execution plan showing each phase, task, and\n decision point.\n\n Example: /babysitter:plan redesign our database schema to support multi-tenancy,\n migrate existing data, and update all queries -- I want to review the plan before\n we touch anything\n\n\n/babysitter:forever [input]\n Start a babysitter run that loops indefinitely with sleep intervals. Designed for\n ongoing operational tasks: monitoring, periodic maintenance, continuous improvement,\n or recurring workflows. The process uses an infinite loop with ctx.sleepUntil() to\n pause between iterations.\n\n How it works: Creates a process definition with a while(true) loop. Each cycle performs\n the task (e.g., check metrics, process tickets, run audits), then calls ctx.sleepUntil()\n to pause for a configured interval. The run stays in \"waiting\" state during sleep and\n resumes automatically when the sleep expires on the next orchestration iteration.\n\n Example: /babysitter:forever every 4 hours, check our GitHub issues labeled \"bug\",\n attempt to reproduce and fix any that look straightforward, and submit PRs for the fixes\n\n\nSECONDARY COMMANDS\n==================\n\n/babysitter:doctor [issue]\n Run a comprehensive 10-point health check on a babysitter run. Inspects journal\n integrity (checksum verification, sequence gaps, timestamp ordering), state cache\n consistency, stuck/errored effects, stale locks, session state, log files, disk usage,\n process validation, and hook execution health. Produces a structured diagnostic report\n with PASS/WARN/FAIL status per check and specific fix commands.\n\n If no run ID is provided, automatically targets the most recent run. Can also diagnose\n environment-wide issues like missing CLI, unregistered hooks, or plugin problems.\n\n Example: /babysitter:doctor\n (checks the latest run: \"CRITICAL -- Check 5 Lock Status: FAIL -- stale lock detected,\n process 12847 is no longer running. Fix: rm .a5c/runs/abc123/run.lock\")\n\n\n/babysitter:assimilate [target]\n Convert an external methodology, AI coding harness, or specification into native\n babysitter process definitions. Takes a GitHub repo URL, harness name, or spec file\n and produces a complete process package with skills/ and agents/ directories.\n\n Two workflows available:\n - Methodology assimilation: clones the repo, learns its procedures and commands,\n converts manual flows into babysitter processes with refactored skills and agents\n - Harness integration: wires babysitter's SDK into a specific AI coding tool\n (codex, opencode, gemini-cli, antigravity, etc.) so it can orchestrate runs\n\n Example: /babysitter:assimilate https://github.com/some-org/their-deployment-playbook\n (clones the repo, analyzes their deployment procedures, and generates babysitter\n processes that replicate the same workflow with proper task definitions and breakpoints)\n\n\n/babysitter:user-install\n First-time onboarding for new babysitter users. Installs dependencies, runs an\n interactive interview about your development specialties, preferred tools, coding\n style, and how much autonomy you want babysitter to have. Builds a user profile\n stored at ~/.a5c/user-profile.json that personalizes future runs.\n\n Uses the cradle/user-install process which covers: dependency verification, user\n interview (expertise areas, preferred languages, IDE, terminal setup), profile\n generation, tool configuration, and optional global plugin installation.\n\n Example: /babysitter:user-install\n (walks you through: \"What's your primary programming language? What frameworks do\n you use most? Do you prefer babysitter to auto-approve routine tasks or always ask?\")\n\n\n/babysitter:project-install\n Onboard a new or existing project for babysitter orchestration. Researches the\n codebase (reads package.json, scans directory structure, identifies frameworks and\n patterns), interviews you about project goals and workflows, generates a project\n profile at .a5c/project-profile.json, and optionally sets up CI/CD integration.\n\n Uses the cradle/project-install process which covers: codebase analysis, project\n interview, profile creation, recommended plugin installation, hook configuration,\n and optional CI pipeline setup.\n\n Example: /babysitter:project-install\n (scans your repo: \"I see this is a Next.js 16 app with Tailwind, using vitest for\n tests and PostgreSQL. What are your main development goals for this project?\")\n\n\n/babysitter:retrospect [run id or name]\n Analyze a completed run to extract lessons and improve future runs. Reviews what\n happened (journal events, task results, timing, errors), evaluates the process that\n was followed, and suggests concrete improvements to process definitions, skills,\n and agents. Interactive -- multiple breakpoints let you steer the analysis and\n decide which improvements to implement.\n\n Covers: run result analysis, process effectiveness review, improvement suggestions,\n implementation of changes, and routing to /contrib if improvements belong in the\n shared process library.\n\n Example: /babysitter:retrospect\n (analyzes the last run: \"The API migration run completed but the 'verify parity'\n phase took 8 iterations because test assertions were too brittle. Suggestion: add\n a fuzzy comparison step before strict assertion. Implement this fix?\")\n\n\n/babysitter:plugins [action]\n Manage babysitter plugins: list installed plugins, browse marketplaces, install,\n update, configure, uninstall, or create new plugins. Plugins are version-managed\n instruction packages (not executable code) that guide the agent through install,\n configure, and uninstall steps via markdown files.\n\n Without arguments: shows installed plugins (name, version, marketplace, dates) and\n available marketplaces. With arguments: routes to the specific action.\n\n Key actions:\n - install <name> --global|--project: fetch install.md from marketplace and execute\n - configure <name> --global|--project: fetch configure.md and walk through options\n - update <name> --global|--project: resolve migration chain via BFS and apply steps\n - uninstall <name> --global|--project: fetch uninstall.md and execute removal\n - create: scaffold a new plugin package with the meta/plugin-creation process\n\n Example: /babysitter:plugins install sound-hooks --project\n (fetches sound-hooks from marketplace, reads install.md, walks you through player\n detection, sound selection, hook configuration, and registers in plugin-registry.json)\n\n\n/babysitter:contrib [feedback]\n Submit feedback or contribute to the babysitter project. Routes to the appropriate\n workflow based on what you want to do:\n\n Issue-based (opens GitHub issue in a5c-ai/babysitter):\n - Bug report: describe a bug in the SDK, CLI, or process library\n - Feature request: propose a new feature or enhancement\n - Documentation question: flag undocumented behavior or missing docs\n\n PR-based (forks repo, creates branch, submits PR):\n - Bugfix: you already have a fix ready\n - Feature implementation: you've built a new feature\n - Library contribution: new or improved process/skill/agent for the library\n - Harness integration: CI/CD or IDE integration\n\n Without arguments: shows all contribution types and helps you pick the right one.\n Breakpoints are placed before all GitHub actions (fork, star, PR, issue) so you\n can review before anything is submitted.\n\n Example: /babysitter:contrib bug report: plugin:update-registry fails when the\n marketplace hasn't been cloned yet, even though the registry update doesn't need\n marketplace access\n\n\n/babysitter:observe\n Launch the babysitter observer dashboard -- a real-time web UI that monitors active\n and past runs. Displays task progress, journal events, orchestration state, and\n effect status in your browser. Useful when running /yolo or /forever to watch\n progress without interrupting the run.\n\n How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches\n the .a5c/runs/ directory (or a parent directory containing multiple projects) and\n serves a live dashboard. The process is blocking -- it runs until you stop it, and\n it prints the local URL to share with the user.\n\n Example: /babysitter:observe\n (opens browser showing all runs with live-updating task\n status, journal event stream, and effect resolution timeline)\n```\n\n## if arguments provided:\n\nif 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."
3
+ prompt = "## if no arguments provided:\n\nshow this message:\n\n```\nWelcome to the Babysitter Help Center! Here you can find documentation and guidance on how to use Babysitter effectively.\n\nDocumentation: Explore our comprehensive documentation to understand Babysitter's features, processes, skills, agents, and methodologies. Read the Docs: https://github.com/a5c-ai/babysitter\n\nOr ask specific questions about commands, processes, skills, agents, methodologies, domains, specialities to get targeted help.\n\nJust type /babysitter:help followed by your question or the topic you want to learn more about.\n\n\nPRIMARY COMMANDS\n================\n\n/babysitter:call [input]\n Start a babysitter-orchestrated run. Babysitter analyzes your request, interviews you\n to gather requirements, selects or creates the best process definition (from 50+\n domain-specific processes covering science, business, engineering, and more), then\n executes it step by step with breakpoints where you can steer direction.\n\n How it works: The babysitter skill reads your input, explores the process library to\n find matching processes, interviews you to refine scope, creates an SDK run with\n run:create, and orchestrates iterations with run:iterate -- dispatching tasks,\n handling breakpoints, and posting results until the run completes or you pause it.\n\n Example: /babysitter:call migrate our Express.js REST API to Fastify, keeping all\n existing routes and middleware behavior identical, with integration tests proving\n parity\n\n\n/babysitter:resume [run id or name]\n Resume a paused or interrupted babysitter run. If you don't specify a run, babysitter\n discovers all runs under .a5c/runs/, shows their status (created, waiting, completed,\n failed), and suggests which incomplete run to pick up based on its process, pending\n effects, and last activity.\n\n How it works: Reads run metadata and journal, rebuilds state cache if stale, identifies\n pending effects (breakpoints awaiting approval, tasks needing results), and continues\n orchestration from exactly where it left off -- no work is repeated thanks to the\n replay engine.\n\n Example: /babysitter:resume\n (discovers runs and offers: \"Run abc123 is waiting on a breakpoint in the 'review\n test results' phase of your API migration -- resume this one?\")\n\n\n/babysitter:yolo [input]\n Start a babysitter run in fully autonomous mode. Identical to /call but all breakpoints\n are auto-approved and no user interaction is requested. The babysitter makes every\n decision on its own until the run completes or hits a critical failure it can't recover\n from. Best for well-understood tasks where you trust the process.\n\n How it works: Same orchestration as /call, but the process context is configured to\n skip breakpoint effects -- instead of pausing for human approval, each breakpoint\n resolves immediately with an auto-approve result.\n\n Example: /babysitter:yolo add comprehensive unit tests for all functions in\n src/utils/ using vitest with >90% branch coverage\n\n\n/babysitter:plan [input]\n Generate a detailed execution plan without running anything. Babysitter goes through\n the full interview and process selection flow, designs the process definition with\n all tasks, breakpoints, and dependencies, but stops before creating the actual SDK run.\n You get a complete plan you can review, modify, or execute later with /call.\n\n How it works: Runs the babysitter skill's planning phase only -- analyzes input,\n matches to domain processes, interviews for requirements, then outputs the process\n definition file and a human-readable execution plan showing each phase, task, and\n decision point.\n\n Example: /babysitter:plan redesign our database schema to support multi-tenancy,\n migrate existing data, and update all queries -- I want to review the plan before\n we touch anything\n\n\n/babysitter:forever [input]\n Start a babysitter run that loops indefinitely with sleep intervals. Designed for\n ongoing operational tasks: monitoring, periodic maintenance, continuous improvement,\n or recurring workflows. The process uses an infinite loop with ctx.sleepUntil() to\n pause between iterations.\n\n How it works: Creates a process definition with a while(true) loop. Each cycle performs\n the task (e.g., check metrics, process tickets, run audits), then calls ctx.sleepUntil()\n to pause for a configured interval. The run stays in \"waiting\" state during sleep and\n resumes automatically when the sleep expires on the next orchestration iteration.\n\n Example: /babysitter:forever every 4 hours, check our GitHub issues labeled \"bug\",\n attempt to reproduce and fix any that look straightforward, and submit PRs for the fixes\n\n\nSECONDARY COMMANDS\n==================\n\n/babysitter:doctor [issue]\n Run a comprehensive 10-point health check on a babysitter run. Inspects journal\n integrity (checksum verification, sequence gaps, timestamp ordering), state cache\n consistency, stuck/errored effects, stale locks, session state, log files, disk usage,\n process validation, and hook execution health. Produces a structured diagnostic report\n with PASS/WARN/FAIL status per check and specific fix commands.\n\n If no run ID is provided, automatically targets the most recent run. Can also diagnose\n environment-wide issues like missing CLI, unregistered hooks, or plugin problems.\n\n Example: /babysitter:doctor\n (checks the latest run: \"CRITICAL -- Check 5 Lock Status: FAIL -- stale lock detected,\n process 12847 is no longer running. Fix: rm .a5c/runs/abc123/run.lock\")\n\n\n/babysitter:assimilate [target]\n Convert an external methodology, AI coding harness, or specification into native\n babysitter process definitions. Takes a GitHub repo URL, harness name, or spec file\n and produces a complete process package with skills/ and agents/ directories.\n\n Two workflows available:\n - Methodology assimilation: clones the repo, learns its procedures and commands,\n converts manual flows into babysitter processes with refactored skills and agents\n - Harness integration: wires babysitter's SDK into a specific AI coding tool\n (codex, opencode, gemini-cli, antigravity, etc.) so it can orchestrate runs\n\n Example: /babysitter:assimilate https://github.com/some-org/their-deployment-playbook\n (clones the repo, analyzes their deployment procedures, and generates babysitter\n processes that replicate the same workflow with proper task definitions and breakpoints)\n\n\n/babysitter:user-install\n First-time onboarding for new babysitter users. Installs dependencies, runs an\n interactive interview about your development specialties, preferred tools, coding\n style, and how much autonomy you want babysitter to have. Builds a user profile\n stored at ~/.a5c/user-profile.json that personalizes future runs.\n\n Uses the cradle/user-install process which covers: dependency verification, user\n interview (expertise areas, preferred languages, IDE, terminal setup), profile\n generation, tool configuration, and optional global plugin installation.\n\n Example: /babysitter:user-install\n (walks you through: \"What's your primary programming language? What frameworks do\n you use most? Do you prefer babysitter to auto-approve routine tasks or always ask?\")\n\n\n/babysitter:project-install\n Onboard a new or existing project for babysitter orchestration. Researches the\n codebase (reads package.json, scans directory structure, identifies frameworks and\n patterns), interviews you about project goals and workflows, generates a project\n profile at .a5c/project-profile.json, and optionally sets up CI/CD integration.\n\n Uses the cradle/project-install process which covers: codebase analysis, project\n interview, profile creation, recommended plugin installation, hook configuration,\n and optional CI pipeline setup.\n\n Example: /babysitter:project-install\n (scans your repo: \"I see this is a Next.js 16 app with Tailwind, using vitest for\n tests and PostgreSQL. What are your main development goals for this project?\")\n\n\n/babysitter:retrospect [run id or name]\n Analyze a completed run to extract lessons and improve future runs. Reviews what\n happened (journal events, task results, timing, errors), evaluates the process that\n was followed, and suggests concrete improvements to process definitions, skills,\n and agents. Interactive -- multiple breakpoints let you steer the analysis and\n decide which improvements to implement.\n\n Covers: run result analysis, process effectiveness review, improvement suggestions,\n implementation of changes, and routing to /contrib if improvements belong in the\n shared process library.\n\n Example: /babysitter:retrospect\n (analyzes the last run: \"The API migration run completed but the 'verify parity'\n phase took 8 iterations because test assertions were too brittle. Suggestion: add\n a fuzzy comparison step before strict assertion. Implement this fix?\")\n\n\n/babysitter:plugins [action]\n Manage babysitter plugins: list installed plugins, browse marketplaces, install,\n update, configure, uninstall, or create new plugins. Plugins are version-managed\n instruction packages (not executable code) that guide the agent through install,\n configure, and uninstall steps via markdown files.\n\n Without arguments: shows installed plugins (name, version, marketplace, dates) and\n available marketplaces. With arguments: routes to the specific action.\n\n Key actions:\n - install <name> --global|--project: fetch install.md from marketplace and execute\n - configure <name> --global|--project: fetch configure.md and walk through options\n - update <name> --global|--project: resolve migration chain via BFS and apply steps\n - uninstall <name> --global|--project: fetch uninstall.md and execute removal\n - create: scaffold a new plugin package with the meta/plugin-creation process\n\n Example: /babysitter:plugins install sound-hooks --project\n (fetches sound-hooks from marketplace, reads install.md, walks you through player\n detection, sound selection, hook configuration, and registers in plugin-registry.json)\n\n\n/babysitter:contrib [feedback]\n Submit feedback or contribute to the babysitter project. Routes to the appropriate\n workflow based on what you want to do:\n\n Issue-based (opens GitHub issue in a5c-ai/babysitter):\n - Bug report: describe a bug in the SDK, CLI, or process library\n - Feature request: propose a new feature or enhancement\n - Documentation question: flag undocumented behavior or missing docs\n\n PR-based (forks repo, creates branch, submits PR):\n - Bugfix: you already have a fix ready\n - Feature implementation: you've built a new feature\n - Library contribution: new or improved process/skill/agent for the library\n - Harness integration: CI/CD or IDE integration\n\n Without arguments: shows all contribution types and helps you pick the right one.\n Breakpoints are placed before all GitHub actions (fork, star, PR, issue) so you\n can review before anything is submitted.\n\n Example: /babysitter:contrib bug report: plugin:update-registry fails when the\n marketplace hasn't been cloned yet, even though the registry update doesn't need\n marketplace access\n\n\n/babysitter:observe\n Launch the babysitter observer dashboard -- a real-time web UI that monitors active\n and past runs. Displays task progress, journal events, orchestration state, and\n effect status in your browser. Useful when running /yolo or /forever to watch\n progress without interrupting the run.\n\n How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches\n the .a5c/runs/ directory (or a parent directory containing multiple projects) and\n serves a live dashboard. The process is blocking -- it runs until you stop it, and\n it prints the local URL to share with the user. Do not use `babysitter observe`\n as a fallback; the core Babysitter CLI does not expose that subcommand.\n\n Example: /babysitter:observe\n (opens browser showing all runs with live-updating task\n status, journal event stream, and effect resolution timeline)\n```\n\n## if arguments provided:\n\nif 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,3 +1,3 @@
1
1
  description = "Launch the babysitter observer dashboard. Installs and runs the real-time observer UI that watches babysitter runs, displaying task progress, journal events, and orchestration state in your browser."
2
2
 
3
- prompt = "Run the babysitter observer dashboard:\n\n1. 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.\n2. Launch the dashboard: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`\n3. This is a blocking process — it will keep running until stopped.\n4. Report the URL printed by the dashboard to the user, then open it in the browser."
3
+ prompt = "Run the babysitter observer dashboard:\n\n1. 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.\n2. Launch the standalone dashboard package: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`.\n3. This is a blocking process — it will keep running until stopped.\n4. Report the URL printed by the dashboard to the user, then open it in the browser.\n\nDo not fall back to `babysitter observe`; the core Babysitter CLI does not expose\nthat subcommand. Some harness runtimes may provide a separate\n`agent-platform observe` surface, but this skill uses the verified standalone\ndashboard package."
@@ -1,3 +1,3 @@
1
1
  description = "Plan a babysitter run. use this command to plan a complex workflow, without actually running it."
2
2
 
3
- prompt = "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."
3
+ prompt = "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.\n\nBefore drafting the process, run Phase 0 -- REUSE-AUDIT: extract keyword nouns and verbs from the request, scan for matching existing migrations, API routes, environment variables, SDK dependencies, and imports, honor `.a5c/reuse-audit.json` when present, and put a `Reuse-audit findings (REVIEW BEFORE PROCEEDING)` block before Phase 1 of the plan.\n\n## Process Shape Selection\n\nChoose the process shape before authoring `process.js`:\n\n- Use a flat phase list when the spec is well-defined, the work is wiring or composition, the bug class is already known if this is a fix, and execution should proceed sequentially through clear phases.\n- Use a HYPOTHESES tree when the bug class is unknown, forensics are required, multiple causal models compete, and each hypothesis needs its own observations, falsifying observations, and follow-up phases.\n- Rule of thumb: if the first phase is \"investigate\", use HYPOTHESES-tree mode. If the first phase is \"implement X\", use flat-phase-list mode."
@@ -1,3 +1,3 @@
1
1
  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."
2
2
 
3
- prompt = "Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). but without any user interaction or breakpoints in the run."
3
+ prompt = "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.\n\nUser arguments for this command:\n\n$ARGUMENTS"
package/hooks/hooks.json CHANGED
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "name": "babysitter-session-start",
9
9
  "type": "command",
10
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-session-start.sh' --json\"",
10
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-session-start.sh\" --json",
11
11
  "timeout": 30000,
12
12
  "description": "babysitter SessionStart hook"
13
13
  }
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "name": "babysitter-user-prompt-submit",
22
22
  "type": "command",
23
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-user-prompt-submit.sh' --json\"",
23
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-user-prompt-submit.sh\" --json",
24
24
  "timeout": 30000,
25
25
  "description": "babysitter UserPromptSubmit hook"
26
26
  }
@@ -33,7 +33,7 @@
33
33
  {
34
34
  "name": "babysitter-pre-tool-use",
35
35
  "type": "command",
36
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-before-tool.sh' --json\"",
36
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-before-tool.sh\" --json",
37
37
  "timeout": 30000,
38
38
  "description": "babysitter PreToolUse hook"
39
39
  }
@@ -46,7 +46,7 @@
46
46
  {
47
47
  "name": "babysitter-post-tool-use",
48
48
  "type": "command",
49
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-after-tool.sh' --json\"",
49
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-after-tool.sh\" --json",
50
50
  "timeout": 30000,
51
51
  "description": "babysitter PostToolUse hook"
52
52
  }
@@ -59,7 +59,7 @@
59
59
  {
60
60
  "name": "babysitter-pre-compact",
61
61
  "type": "command",
62
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-pre-compact.sh' --json\"",
62
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-pre-compact.sh\" --json",
63
63
  "timeout": 30000,
64
64
  "description": "babysitter PreCompact hook"
65
65
  }
@@ -72,7 +72,7 @@
72
72
  {
73
73
  "name": "babysitter-after-agent",
74
74
  "type": "command",
75
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-after-agent.sh' --json\"",
75
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-after-agent.sh\" --json",
76
76
  "timeout": 30000,
77
77
  "description": "babysitter AfterAgent hook"
78
78
  }
@@ -85,7 +85,7 @@
85
85
  {
86
86
  "name": "babysitter-session-end",
87
87
  "type": "command",
88
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-session-end.sh' --json\"",
88
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-session-end.sh\" --json",
89
89
  "timeout": 30000,
90
90
  "description": "babysitter SessionEnd hook"
91
91
  }
@@ -98,7 +98,7 @@
98
98
  {
99
99
  "name": "babysitter-session-idle",
100
100
  "type": "command",
101
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-session-idle.sh' --json\"",
101
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-session-idle.sh\" --json",
102
102
  "timeout": 30000,
103
103
  "description": "babysitter SessionIdle hook"
104
104
  }
@@ -111,7 +111,7 @@
111
111
  {
112
112
  "name": "babysitter-shell-env",
113
113
  "type": "command",
114
- "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter gemini --handler 'bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-shell-env.sh' --json\"",
114
+ "command": "a5c-hooks-mux invoke --adapter gemini --handler \"bash ${GEMINI_EXTENSION_PATH}/hooks/babysitter-proxied-shell-env.sh\" --json",
115
115
  "timeout": 30000,
116
116
  "description": "babysitter ShellEnv hook"
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-gemini-cli",
3
- "version": "5.0.1-staging.917895b63",
3
+ "version": "5.0.1-staging.a2865ee1a2da",
4
4
  "description": "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval",
5
5
  "scripts": {
6
6
  "deploy": "npm publish --access public",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@a5c-ai/babysitter-sdk": "5.0.1-staging.917895b63"
37
+ "@a5c-ai/babysitter-sdk": "5.0.1-staging.a2865ee1a2da"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babysitter",
3
- "version": "5.0.1-staging.917895b63",
3
+ "version": "5.0.1-staging.a2865ee1a2da",
4
4
  "description": "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval",
5
5
  "author": "a5c.ai",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@
19
19
  "commands": [
20
20
  "commands/assimilate.toml",
21
21
  "commands/call.toml",
22
+ "commands/check-forbidden-markers.toml",
22
23
  "commands/cleanup.toml",
23
24
  "commands/contrib.toml",
24
25
  "commands/doctor.toml",
@@ -1,13 +1,24 @@
1
1
  ---
2
2
  name: babysit
3
- description: Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
3
+ description: Execute via @babysitter. Use this skill when asked to babysit a task, do anything that is structured process-driven (even a loop) or whenever it is called explicitly. (babysit, babysitter, with a process, orchestrate, orchestrate a run, workflow, loop until, etc.)
4
4
  allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
5
5
  version: 0.1.3
6
6
  ---
7
7
 
8
8
  # babysit
9
9
 
10
- Orchestrate `.a5c/runs/<runId>/` through iterative execution.
10
+ Follow the commands below exactly. but apply judgement and creativity to get the job done. no matter how small or simple the task may seem, you must use the babysitter SDK and run lifecycle to execute it. This is non-negotiable. If you are asked to do something that seems like it could be done with a simple tool call, you must still use the babysitter SDK to create a run, define tasks, execute them, and complete the run. This is how you will learn and demonstrate mastery of the babysitter system. Always follow the full process, even for trivial tasks.
11
+
12
+ Subagents that need a scratch checkout or working directory must create it under
13
+ `/tmp/<descriptive-name>/`, not under `.a5c/runs/<runId>/work`. Before returning
14
+ deliverables, validate that no run-dir worktree was left behind, for example:
15
+
16
+ ```bash
17
+ find .a5c/runs -maxdepth 3 -name work -type d -print
18
+ ```
19
+
20
+ That command should print nothing. If it prints a non-empty work directory, move
21
+ or remove only the scratch data you created before returning.
11
22
 
12
23
  ## Dependencies
13
24
 
@@ -17,12 +28,18 @@ Read the SDK version from `versions.json` to ensure version compatibility:
17
28
 
18
29
  ```bash
19
30
  SDK_VERSION=$(node -e "try{console.log(JSON.parse(require('fs').readFileSync('${CLAUDE_PLUGIN_ROOT}/versions.json','utf8')).sdkVersion||'latest')}catch{console.log('latest')}")
20
- npm i -g @a5c-ai/babysitter-sdk@$SDK_VERSION
31
+ npm i -g @a5c-ai/babysitter-sdk@$SDK_VERSION || npm i -g @a5c-ai/babysitter-sdk@latest
21
32
 
22
- CLI="npx -y @a5c-ai/babysitter-sdk@$SDK_VERSION"
33
+ if command -v babysitter >/dev/null 2>&1 && babysitter --version >/dev/null 2>&1; then
34
+ CLI="babysitter"
35
+ else
36
+ CLI="npm exec --yes --package @a5c-ai/babysitter-sdk@$SDK_VERSION -- babysitter"
37
+ fi
23
38
  ```
24
39
 
25
- If `babysitter` is already installed globally at the correct version, you may use `CLI="babysitter"` instead.
40
+ If the pinned version fails to install (e.g. not yet published), the fallback installs `latest`.
41
+
42
+ If a stale or broken global shim fails with `MODULE_NOT_FOUND`, repair it with `npm rm -g @a5c-ai/babysitter @a5c-ai/babysitter-sdk && npm i -g @a5c-ai/babysitter-sdk@$SDK_VERSION`, then re-run `babysitter --version`.
26
43
 
27
44
  ### jq
28
45
 
@@ -30,7 +47,7 @@ Make sure `jq` is installed and available in the path. If not, install it.
30
47
 
31
48
  ## Instructions
32
49
 
33
- Run the following command to get full orchestration instructions:
50
+ Run the following command to get full instructions:
34
51
 
35
52
  ```bash
36
53
  $CLI instructions:babysit-skill --harness claude-code --interactive
package/versions.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "sdkVersion": "5.0.1-staging.917895b63",
3
- "extensionVersion": "5.0.1-staging.917895b63"
2
+ "sdkVersion": "5.0.1-staging.a2865ee1a2da",
3
+ "extensionVersion": "5.0.1-staging.a2865ee1a2da"
4
4
  }