persistent-memory

persistent-memory is a skill for Claude Code, Codex from a5c-ai/babysitter. It costs 28 tokens per session (504 once invoked), scanned A, original, MIT.

A searchable store for decisions, discoveries, and bug-fix lessons collected across coding sessions.

In plain words
What is it for?
Use it to save and retrieve observations by tags, text, type, recency, and relevance.
Why use it?
It helps an agent recover useful context instead of repeatedly rediscovering the same information.

Skill for Claude CodeCodex

About the project

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.

a5c-ai/babysitter · 1,769 stars · on GitHub

Install

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.

agentmods
npx agentmods add skills/a5c-ai/babysitter/persistent-memory
Any agent
npx skills add a5c-ai/babysitter --skill persistent-memory
Clone the repo
git clone --depth 1 https://github.com/a5c-ai/babysitter

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for persistent-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/a5c-ai/babysitter/persistent-memory.svg)](https://agentmods.dev/skills/a5c-ai/babysitter/persistent-memory)
Your own site
<a href="https://agentmods.dev/skills/a5c-ai/babysitter/persistent-memory"><img src="https://agentmods.dev/badge/skills/a5c-ai/babysitter/persistent-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 504 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00028 $0.00504
Opus 5 $0.00014 $0.00252
Sonnet 5 $0.00006 $0.00101
Haiku 4.5 $0.00003 $0.00050

Measured 2d ago against content hash daab6881d109, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

persistent-memory 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 2d 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.

library/methodologies/pilot-shell/skills/persistent-memory/SKILL.md · 58 lines

What it actually says

Storage

Observations are stored in .pilot-shell/memory/ as JSON files, one per session:

.pilot-shell/memory/
  2026-03-02-session-a1b2c3.json
  2026-03-01-session-d4e5f6.json

Retrieval

Search by:

  • Tags: Filter by tag match
  • Full text: Search observation content
  • Type: Filter by decision/discovery/bugfix
  • Recency: Prefer recent observations
  • Relevance: Score against current task description

Auto-Triggers

  • /learn triggered at context thresholds
  • Session end captures final observations
  • Breakpoints can trigger observation capture
Files

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.

Changes

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.

  1. 2d ago First seen · 58 lines · 28 tokens per session scan A daab6881d109

Subscribe to this mod's changes

persistent-memory is a skill published in the GitHub repository a5c-ai/babysitter (1,769 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 504 once invoked, about $0.0001 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.

Related

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.

bostonaholic/team · 40 tokens

list-learned-actions

Explicit Codex workflow: List persisted reusable actions, UI skeletons, and legacy feedback memories before composing device primitives.

Lykhoyda/rn-dev-agent · 29 tokens

agent-memory-coordinator

Agent skill for memory-coordinator - invoke with $agent-memory-coordinator.

ruvnet/ruflo · 19 tokens

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…

tutti-os/tutti · 106 tokens

external-memory-plugin

Develop, adapt, review, test, and troubleshoot Nexent external memory provider plugins, including plugin.yaml manifests, searchable and ingestible provider protocols, error mapping, network-isolated unit tests, deployment configuration, and Mem0-based examples. Use when adding a new external memory vendor, changing an…

ModelEngine-Group/nexent · 85 tokens

distill-session-knowledge

Offline-mine this project's pi session JSONL logs into reusable, verified knowledge: extracts faults, decisions, corrections, procedures and docs, promotes only recurring patterns, and routes artifacts into skillmanage, memory and docs. Use on "mine my sessions", "distill session knowledge", "extract lessons from…

BlackBeltTechnology/pi-agent-dashboard · 78 tokens