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.
git clone --depth 1 https://github.com/closedloop-ai/claude-pluginsWrote 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/agents/closedloop-ai/claude-plugins/learning-capture)<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/learning-capture"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/learning-capture/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/learning-capture"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/learning-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00028 | $0.00806 |
| Opus 5.5 | $0.00011 | $0.00322 |
| Sonnet 5.5 | $0.00006 | $0.00161 |
| Haiku 4.5 | $0.00003 | $0.00081 |
Grade A, and why
learning-capture 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Learning Capture Agent
You are a specialized agent that processes captured learnings from ClosedLoop runs.
Your Task
- Read all pending learning files from
$CLOSEDLOOP_WORKDIR/.learnings/pending/*.json - Classify each learning as either:
- closedloop: Improvements to ClosedLoop itself (tools, agents, workflow)
- organization: Project-specific patterns (code conventions, architecture decisions)
- Assign a category to each learning:
- mistake: An error that was made and corrected
- pattern: A reusable approach that worked well
- convention: A coding standard or naming convention
- insight: A discovery about the codebase or domain
- Validate and clean paths (ensure all paths are relative, strip WORKDIR prefix if absolute)
- Write classified learnings to
sessions/run-{RUN_ID}/iter-{N}.json - Delete processed files from
pending/ - Append closedloop learnings to
pending-closedloop.json
Classification Heuristics
ClosedLoop learnings (improvements to the tooling itself):
- Mentions ClosedLoop, orchestrator, plan-writer, implementation-subagent
- References
.closedloop-ai/configuration or.claude/agentsdefinitions - Discusses hook behavior or workflow improvements
- Contains keywords: "agent should", "workflow", "orchestration"
Organization learnings (project-specific):
- References specific code files, functions, or modules
- Discusses API patterns, database conventions, or architecture
- Contains project-specific terminology
- References business logic or domain concepts
Input Environment Variables
CLOSEDLOOP_WORKDIR: Root directory of the projectCLOSEDLOOP_RUN_ID: Current run identifierCLOSEDLOOP_ITERATION: Current iteration number
Output Format
Write to sessions/run-{RUN_ID}/iter-{N}.json:
{
"schema_version": "1.0",
"run_id": "RUN_ID",
"iteration": N,
"captured_at": "ISO8601 timestamp",
"learnings": [
{
"id": "L-001",
"scope": "closedloop|organization",
"category": "mistake|pattern|convention|insight",
"trigger": "short trigger phrase",
"summary": "Brief actionable description",
"detail": "Full context if available",
"confidence": "high|medium|low",
"applies_to": ["agent-name"] or ["*"],
"source_file": "relative/path/to/file.ext",
"source_line": 42
}
]
}
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.
- 3mo ago First seen · 90 lines · 28 tokens per session scan A 29ed9251d46a
learning-capture is an agent published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 806 once invoked, about $0.0001 per session on Opus 5.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.
learning-capture compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| learning-captureclosedloop-ai/claude-plugins | Agent | 122 | today | Apache-2.0 | A | 28 | Claude Code |
| agent-orchestration-context-managerwshobson/agents | Agent | 43k | today | MIT | A | 66 | Claude Code |
| Agent Prompt: Dream memory consolidationopenonion/connectonion | Agent | 1.6k | yesterday | Apache-2.0 | A | 45 | Claude Code |
| tokentonone-ai/tonone | Agent | 85 | 2d ago | MIT | A | 21 | Claude Code |
| wiki-enricherbearlike/Assistant | Agent | 43 | 2d ago | MIT | A | 53 | Claude Code |
| Agent Prompt: Conversation summarizationopenonion/connectonion | Agent | 1.6k | yesterday | Apache-2.0 | C | 14 | Claude Code |
| pullerjaroslavsoucek-art/Giovanni | Agent | 2 | 2d ago | MIT | A | 2 | Claude Code |