Repository navigation
v2.4.0 — Agent Skill Creation Loop
Hat tip to Nous Research for these.
Closed-loop skill system where agents autonomously create, consume, and improve structured playbooks. Based on the Karpathy AutoResearch pattern — agents learn reusable procedures that compound over time.
How It Works
- Task completes → LLM extracts 0-3 reusable skills from activities and deliverables
- Next dispatch → Matched skills injected as primary instructions (keywords + role filtering)
- Agent reports → "Used it, it worked" or "Had to deviate" → Bayesian confidence updates
- System curates → Draft skills auto-promote after 2 successes. Unreliable skills auto-deprecate.
Added
- Skill Extraction — Async post-task LLM analysis extracts structured procedures with commands, prerequisites, verification steps. Non-blocking — never delays task completion.
- Skill Matching & Dispatch Injection — Matched by keyword overlap, agent role, and title similarity. Injected before knowledge section as primary guidance.
- Bayesian Confidence — Prior weight of 2 prevents cold-start inflation (1 success = 0.667, not 1.0). Confidence drives matching priority, promotion, and deprecation.
- Inline Promotion/Deprecation — Draft → active at 2 successes + 0.6 confidence. Deprecated at 3+ uses + <0.3 confidence. No cron dependency.
- Skill Versioning —
supersedes_skill_idtracks skill evolution. Matching deduplicates superseded versions. - Skills API — Full CRUD + usage reporting endpoints for agents and UI.
Example
- Agent #1 builds LeadsFire, discovers npm needs
--legacy-peer-deps→ "LeadsFire Build" skill created (draft, 0.5 confidence) - Agent #2 dispatched for LeadsFire → receives skill as instructions → succeeds → confidence 0.667
- Agent #3 same product → second success → promoted to active (0.75 confidence)
- After 5 successful uses → 0.83 confidence, effectively the product's build playbook
Full Changelog
See CHANGELOG.md for the complete history.