pipeline-babysitting
БесплатноБез исполняемых скриптовНе проверенThe merged babysitting protocol for the fix-the-fixer loop: a once-per-hour check-in that (1) checks for failures and repeated fixer misses, (2) runs the…
от peteromallet★ 99 звёзд на GitHubОб этом скилле
Babysitting Principles
How we run the fix-the-fixer / babysitting loop, and what the harness should
aspire to. Canonical source: docs/pipeline-babysitting.md in the Arnold
repo; this skill is the agent-facing form (same content, plus the tools).
1. The hourly check-in
The babysitting loop runs as a once-per-hour check-in. Each check-in is
one pass over the live system: check → fix → push → re-arm. It never just
reports — every check-in ends with the run measurably closer to done or a
concrete blocker fixed at the root. (Acute stoppages between check-ins are
caught by the watchdog's status-trigger path — the arnold-babysitter
wrapper launches a single Flash agent whose goal is rendered by
skills/babysitter/scripts/render_babysitter_goal.py.)
1.1 Check for failures and repeated misses
- Pull the live status with the one-command tools (
fixer-status,epic-board) and read the living evidence doc (§3.6). - For every stopped/failed/stalled chain, ask: is this a repeated failure class the fixer isn't fixing, or isn't getting around to? Same failure fingerprint roughly three times in a row, or a chain blocked ~1 hour without autorecovery, is the trigger.
- This question targets the fixer's failure to fix, not the chain's failure to run.
1.2 The fixing loop — bias toward fixing the fixer
When something is stuck or a failure class repeats, run the loop entirely inside sub-agents:
- Understand — deploy a bounded, read-only swarm of DeepSeek Flash
sub-agents over the failure evidence (what happened, the code path, how
state is passed around) —
skills/subagent-launcher/fan.py. - Recommend — hand the packed context (evidence pack, swarm index, every investigator report) to a premium model — Grok — for the once-and-for-all recommendation.
- Implement — with DeepSeek Flash, fix the fixer itself (its prompt, its dispatch, its config) in the approved editable runtime — the chain-level fix is what the fixer does once it runs again. Verify against the focused regression.
- Relaunch the fixer — the deliverable of the loop is the fixer running
again with the fix in place: restart the fixer (and, when the evidence
requires, the chain via megaplan resume / chain start); never
--fresh. - Verify at the next check-in — the next hourly check-in checks whether
and how the fixer actually fixed the chain:
chain-*.jsonlast_stateleaves blocked and the samefailure_fingerprintdoes not recur. A PID, commit, self-report, or heartbeat is NOT proof.
Stand down cleanly when nothing is actually blocked/failed, or when another fixer already owns the occurrence — never invent work.
1.3 Extreme intervention — fix the megaplan code itself
When the check-in finds the fixer itself stuck for structural reasons — a higher-level problem, e.g. its prompt is missing, its engine/dispatch is broken, it cannot even attempt the loop — the last rung is fixing the actual megaplan code itself, so the machinery the fixer runs on is actually fixed:
- DeepSeek Flash sub-agents swarm the fixer's own failure evidence.
- Grok sense-checks the plan — one or two passes via the sub-agent launcher — before any change.
- DeepSeek implements the fix directly in the megaplan source (the engine, the harness, the fixer's own code), not just the chain.
- Relaunch the fixer and prove it now makes movement.
This is still improving the machinery, never hand-driving the chain: the extreme tier fixes the actual megaplan code itself so the fixer (and future chains) work. Hand-fixing the chain remains forbidden (§2.3).
1.4 Loop mechanics
- Re-arm — schedule the next check-in in one hour; tear the loop down only when the whole run is genuinely done (all milestones complete / job exited success).
- No questions — a check-in never asks the operator anything. Decide every blocker, prefer the reversible option, log the decision + rationale in the check-in report so it can be audited later.
- Verify, don't trust — on any "done", check the work actually landed (files/commits/merged content), not the status word.
- Fix the engine, not just the run — when a stall traces to a harness/engine defect, fix it in the engine source (with a test) so it never recurs; ticket what you can't fix on the spot.
2. The three layers of fixing
2.1 Self-healing wherever possible
The system should be programmatically self-healing first — before any agent is involved. When something fails, the harness tries to recover on its own: restart the chain, retry the phase, re-drive the stuck step. The goal is that the thing heals itself, or at least tries to. Self-healing is the cheapest fix and should always be attempted first.
2.2 The automated fixer fixes things
When self-healing isn't enough, the automatic fixer fixes the problem. It watches the epics, notices when they stop running, understands why
Установить pipeline-babysitting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pipeline-babysitting?
The merged babysitting protocol for the fix-the-fixer loop: a once-per-hour check-in that (1) checks for failures and repeated fixer misses, (2) runs the fixing loop — DeepSeek Flash swarm to understand, Grok for the recommendation, DeepSeek to implement, all inside sub-agents, biased toward fixing the fixer — and (3) escalates to extreme intervention when the fixer itself is stuck for structural reasons (its prompt missing, its engine broken), fixing the actual megaplan code itself with the same loop plus Grok sense-checks via the sub-agent launcher. Plus the three layers of fixing, evidence-first, minimalism, per-epic branch lineage, cost discipline, the living evidence doc, honest logging, the aspirational principles for harness improvements, and the anti-principles that cause the most pain. Use when deciding HOW to fix a stalled chain/fixer, when escalating a repeated blocker, when improving the Arnold/megaplan harness, or when reviewing whether a gate/pin/check is overzealous. Includes the one-command status tools (fixer-status, epic-board).
Как установить скилл pipeline-babysitting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pipeline-babysitting запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic