learn-loop

learn-loop is a skill for Claude Code, Codex from cathrynlavery/agent-improvement-loop. It costs 63 tokens per session (1,346 once invoked), scanned A, original, MIT.

A workflow for turning recorded problems in coding agents or tools into a limited batch of tested improvements.

In plain words
What is it for?
Use it to survey learnings, fix an approved backlog, reconcile conflicting copies, or resume an existing improvement plan. It also checks the learning store before changing its records.
Why use it?
It provides a path from collecting recurring issues to choosing evidence-backed fixes, verifying them live, and recording the decisions.

Skill for Claude CodeCodex

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/cathrynlavery/agent-improvement-loop/learn-loop
Any agent
npx skills add cathrynlavery/agent-improvement-loop --skill learn-loop
Clone the repo
git clone --depth 1 https://github.com/cathrynlavery/agent-improvement-loop

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,346 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.00063 $0.01346
Opus 5 $0.00032 $0.00673
Sonnet 5 $0.00013 $0.00269
Haiku 4.5 $0.00006 $0.00135

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

Security

Grade A, and why

learn-loop 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 3d 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.

skills/learn-loop/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learn Loop

Turn captured friction into verified system improvements:

survey → select → approve → fix → verify → decide

The canonical store is ${AGENT_LEARNINGS_ROOT:-~/.agents/learnings}. Machine-owned files under entries/ are immutable evidence. Effective outcomes live in leader-owned decisions/; ID corrections live in rekeys/.

Modes

  • Survey — recommend what to fix without changing code or store outcomes.
  • Fix — execute an approved bounded batch through verification and decision.
  • Reconcile — resolve divergent-copy conflicts. Read STORE-PROTOCOL.md before any store mutation.
  • Resume — continue an existing plan or PR from current state; do not repeat completed work.

1. Pin the snapshot

  1. Read config.json and run learnings status.
  2. Use ACTIVE.md, catalog.json, and conflicts.json on the leader; on a writer, use fleet/ for survey and move mutations to the leader.
  3. Stop store mutation when generated views disagree or the catalog reports invalid files, stale acknowledgements, rekey errors, decision errors, or integrity errors.
  4. Read the fix queue and prior FIX-PLAN-*-RESULTS.md files. Re-check live PRs and external dependencies instead of trusting their recorded status.
  5. When the request concerns loop health, check recent harvest, collection, and triage run lines plus the leader's unattended runtime.

Snapshot complete when: one healthy catalog generation is pinned and every previously touched candidate is classified as finished, still active, or superseded.

2. Pass the evidence gate

For each candidate, read every referenced evidence copy and inspect the current target. A title or aggregate row is a pointer, not proof.

Assign exactly one disposition:

  • Promote — encode a durable rule in an existing instruction, skill, test, hook, or wrapper.
  • Code fix — change one repository with a named test and shipping target.
  • Operational fix — repair a scheduler, configuration, migration, or live integration.
  • Reconcile — acknowledge compatible copies or rekey unrelated incidents.
  • Close without change — duplicate, stale, already fixed, one-off, or intentionally declined.
  • Blocked — requires credentials, payment, destructive authority, merge approval, or unresolved human judgment.

Read the full file on GitHub · 116 lines

Files

What ships with it

2 files 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. 3d ago First seen · 116 lines · 63 tokens per session scan A 7a670bd2dd0b

Subscribe to this mod's changes

learn-loop is a skill published in the GitHub repository cathrynlavery/agent-improvement-loop (56 stars, last pushed 23d ago), licensed MIT. It adds 63 tokens to every session and 1,346 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

ligandmpnn

Inverse-fold a backbone with ligand, nucleic-acid, and metal context using LigandMPNN (Dauparas et al. 2023, github.com/dauparas/LigandMPNN). Reach for this skill to redesign the residues lining a binding pocket around a bound small molecule or cofactor, to design metal-coordinating sites where the geometry must be…

aipoch/open-science · 100 tokens

evo2

Score, embed, and generate DNA sequences with Evo 2, a long-context genomic foundation model. Use this skill when: (1) Computing per-nucleotide or per-sequence likelihoods for variant effect scoring, (2) Embedding genomic windows for downstream classification, (3) Generating DNA conditioned on a prefix, (4) Scoring…

aipoch/open-science · 83 tokens

package-author

当用户要把手头的工具打包/标准化成 pinvou 插件包时使用——包括纯技能(SKILL.md)、纯 MCP 服务或它们的组合包。用户说"打包/做成插件包/标准化这个工具/给我一个能上传的标准包/写 plugin.json/加个图标"等,或给了散乱脚本/目录要整理成可上传 zip 时,用本技能把内容规范成 plugin-protocol 标准包(补 plugin.json、补 mcp/manifest.json、补 SKILL.md、补图标、校验命名)。.

Pinvou/pinvou-agent · 133 tokens

hyperframes

Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation…

CoWork-OS/CoWork-OS · 155 tokens

google-meet

Google Meet via gws: create spaces, fetch join links, list recordings.

Open-Curiosity/gini-agent · 20 tokens

people-crm

Turn LinkedIn connections (or any contact export) into a queryable personal CRM using the agent database.

Open-Curiosity/gini-agent · 25 tokens