Skip to content

v2.4.0 — Agent Skill Creation Loop

Choose a tag to compare

@crshdn crshdn released this 23 Mar 03:29
· 44 commits to main since this release

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

  1. Task completes → LLM extracts 0-3 reusable skills from activities and deliverables
  2. Next dispatch → Matched skills injected as primary instructions (keywords + role filtering)
  3. Agent reports → "Used it, it worked" or "Had to deviate" → Bayesian confidence updates
  4. 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_id tracks skill evolution. Matching deduplicates superseded versions.
  • Skills API — Full CRUD + usage reporting endpoints for agents and UI.

Example

  1. Agent #1 builds LeadsFire, discovers npm needs --legacy-peer-deps → "LeadsFire Build" skill created (draft, 0.5 confidence)
  2. Agent #2 dispatched for LeadsFire → receives skill as instructions → succeeds → confidence 0.667
  3. Agent #3 same product → second success → promoted to active (0.75 confidence)
  4. After 5 successful uses → 0.83 confidence, effectively the product's build playbook

Full Changelog

See CHANGELOG.md for the complete history.