Babysitter is a workflow engine for AI coding agents that enforces predefined steps, quality checks, human approvals, and decision records. It is used to coordinate complex, repeatable agent workflows across supported coding tools. The catalogue contains skills, agents, instructions, settings, a plugin, and an MCP integration for its workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add a5c-ai/babysitter --skill context-preservationgit clone --depth 1 https://github.com/a5c-ai/babysitterWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/a5c-ai/babysitter/context-preservation)<a href="https://agentmods.dev/skills/a5c-ai/babysitter/context-preservation"><img src="https://agentmods.dev/badge/skills/a5c-ai/babysitter/context-preservation.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00501 |
| Opus 5 | $0.00016 | $0.00251 |
| Sonnet 5 | $0.00006 | $0.00100 |
| Haiku 4.5 | $0.00003 | $0.00050 |
Grade A, and why
context-preservation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
- Serialize current spec state (tasks, statuses, acceptance criteria)
- Capture quality pipeline state (last lint/format/typecheck results)
- Save TDD progress (current phase, iteration count, scores)
- Store context monitor metrics
- Write to
.pilot-shell/state.json
2. State Restore (SessionStart / post_compact_restore)
- Read
.pilot-shell/state.jsonon session start - Restore spec task tracking state
- Restore quality baseline
- Resume TDD from last known position
- Log restoration summary
3. Threshold Monitoring
- Track context usage percentage (default threshold: 70%)
- Trigger preservation when threshold approached
- Calculate optimal preservation timing
State Schema
{
"version": "1.0.0",
"timestamp": "2026-03-02T12:00:00Z",
"spec": {
"title": "...",
"taskStatuses": [{ "id": "...", "status": "COMPLETE" }],
"currentPhase": "implement"
},
"quality": {
"lastScore": 87,
"lint": { "passed": true },
"format": { "passed": true },
"typecheck": { "passed": true }
},
"tdd": {
"iteration": 2,
"score": 92,
"compliant": true
},
"context": {
"usagePercent": 72,
"preservedAt": "2026-03-02T12:00:00Z"
}
}
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 64 lines · 32 tokens per session scan A a4c263983fca
context-preservation is a skill published in the GitHub repository a5c-ai/babysitter (1,777 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 501 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
reflect
Mines a session for durable learnings. Trigger on "reflect on this session", "capture what we learned", or "/reflect" only; never infer intent from session end or friction.
principle-files-are-the-contract
Requires durable files for cross-step state. Apply when passing work between agents, phases, sessions, or reruns.
principle-progress-tracking
Requires one live ledger for ordered procedures. Apply when executing two or more dependent steps.
list-learned-actions
Explicit Codex workflow: List persisted reusable actions, UI skeletons, and legacy feedback memories before composing device primitives.
agent-memory-coordinator
Agent skill for memory-coordinator - invoke with $agent-memory-coordinator.
tutti-agent-workspace-app
Build or evolve a complex agent-enabled Tutti workspace app repository. Use for Tutti apps with web/server/shared monorepos, @tutti-os/agent-acp-kit local agent runtimes, kit-owned TUTTICLI agent/composer discovery, dynamic agent catalogs, run-scoped MCP tool gateways, app-owned package builders, web-first debugging…