Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By closedloop-aiv1.2.7Apache-2.0In 1 marketplace
Deprecated and due for removal from the closedloop-ai marketplace; the code plugin's setup still reads it, so keep it installed. Captures agent-run learnings into a shared pattern store with success rates and automatic pruning.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Deprecated. The
self-learningplugin is no longer maintained and will be removed from the closedloop-ai marketplace in a later release. Keep it installed until then: thecodeplugin's setup still reads its requirements. The release that removes it also updatescodeandinstall.sh, so no manual step is needed.
A ClosedLoop plugin that enables AI agents to learn from their mistakes and successes across runs, accumulating organizational knowledge in a persistent pattern store that improves agent behavior over time.
The self-learning plugin captures learnings from ClosedLoop agent runs, validates and deduplicates them, and merges them into a global knowledge base (org-patterns.toon). Patterns are tracked with success rates, confidence levels, and staleness flags so that high-performing patterns are promoted and ineffective ones are pruned automatically.
The plugin also provides goal-oriented evaluation: each run is measured against a configurable goal (e.g., minimize iterations, pass tests, reduce tokens), and goal outcomes feed back into pattern success rate calculations.
.learnings/pending/ as JSON files during runs.outcomes.log data, not by LLM estimation.graph TD
Run[Run Completes] --> Pending[".learnings/pending/*.json"]
Pending --> Process["/process-learnings"]
Process --> OrgPatterns["~/.closedloop-ai/learnings/org-patterns.toon"]
Process --> PendingCL["pending-closedloop.json"]
PendingCL --> Export["/export-closedloop-learnings"]
Export --> GlobalCL["~/.closedloop-ai/learnings/closedloop-learnings.json"]
Outcomes["outcomes.log"] --> Compute["compute_success_rates.py"]
Compute --> OrgPatterns
RunData[Run Data] --> Evaluate["evaluate_goal.py"]
Evaluate --> GoalOutcome["goal-outcome.json"]
GoalOutcome --> Merge["merge_goal_outcome.py"]
Merge --> Outcomes
style Process fill:#e1f5fe
style OrgPatterns fill:#e8f5e9
style GlobalCL fill:#e8f5e9
Patterns flow from individual agent runs up to the global org-patterns.toon, then optionally to a shared organization repository via push-learnings and pull-learnings.
All commands are invoked through the ClosedLoop orchestrator using the self-learning: prefix.
/process-learnings [workdir]The primary command. Processes pending learnings from a ClosedLoop run into the global org-patterns.toon.
Steps:
$CLOSEDLOOP_WORKDIR/.learnings/pending/closedloop or organization) and category (mistake, pattern, convention, insight), and assigns repo_scope (* for generalizable, or a specific repo name)~/.closedloop-ai/learnings/org-patterns.toon with deduplicationpending-closedloop.jsonUsage:
/process-learnings /path/to/closedloop-workdir
/process-learnings # defaults to current directory
/export-closedloop-learnings [workdir]Merges ClosedLoop-specific pending learnings into the global ~/.closedloop-ai/learnings/closedloop-learnings.json with deduplication. Typically invoked automatically after each loop iteration.
Deduplication:
trigger match: skipsummary: skipSL-{N} ID and appendUsage:
/self-learning:export-closedloop-learnings $WORKDIR
/push-learnings7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub closedloop-ai/claude-plugins --plugin self-learning