Skip to content

Comments

Add learning_agents plugin implementation#217

Merged
nhorton merged 3 commits intomainfrom
learning_agents_plugin
Feb 18, 2026
Merged

Add learning_agents plugin implementation#217
nhorton merged 3 commits intomainfrom
learning_agents_plugin

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Feb 18, 2026

Summary

  • Implements the full LearningAgents plugin: auto-improving AI sub-agents that accumulate domain knowledge across sessions
  • Adds hooks (post-Task tracking, session-stop reminders), scaffold script, learning-agent-expert agent, and 7 skills (3 user-facing, 4 hidden) implementing the closed-loop learning cycle
  • Updates docs and file structure to use core-knowledge.md (plain markdown) instead of agent.yml, standardizes on dashes throughout, and uses topic index listings instead of full content dumps in agent prompts

What's included

Category Files Purpose
Scripts create_agent.sh Scaffold new LearningAgent directories + Claude Code agent file
Hooks hooks.json, post_task.sh, session_stop.sh Track agent usage, suggest learning cycles
Agent learning-agent-expert.md Meta-expert that runs learning cycle skills
User skills learning-agents, create-agent, learn Entry points for users
Hidden skills identify, report-issue, investigate-issues, incorporate-learnings Internal learning cycle steps

Test plan

  • Run create_agent.sh test-agent and verify scaffold output (directories, core-knowledge.md, agent file with topic index command)
  • Verify hook scripts exit 0 gracefully when no learning agents exist
  • Verify all SKILL.md files have valid YAML frontmatter
  • Verify hidden skills have user-invocable: false and disable-model-invocation: true
  • Test topic index awk extraction with a sample frontmatter file

🤖 Generated with Claude Code

nhorton and others added 3 commits February 17, 2026 15:21
…ction chunks

Introduces the learning_agents Claude Code plugin — auto-improving AI
sub-agents that learn from their mistakes across sessions. This commit
includes the architecture design doc, plugin manifest, instruction chunk
docs (file structure, issue format, session logs, post-task reminder),
and a prompt-review skill.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add the full LearningAgents plugin implementation:

- Scripts: create_agent.sh for scaffolding new LearningAgents
- Hooks: post_task.sh (tracks agent usage), session_stop.sh (suggests learning)
- Agent: learning-agent-expert.md (meta-expert for learning cycle)
- Skills: 7 skills implementing the learning cycle
  - User-facing: learning-agents (dispatch), create-agent, learn
  - Hidden: identify, report-issue, investigate-issues, incorporate-learnings
- Update docs to use core-knowledge.md (replacing agent.yml), dashes
  throughout, and topic index listing instead of full content dumps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scaffold now creates additional_learning_guidelines/ with three empty
files (issue_identification.md, issue_investigation.md, learning_from_issues.md)
plus a README. Each file is auto-included via !`cat` in the corresponding
hidden skill (identify, investigate-issues, incorporate-learnings), allowing
per-agent customization of the learning cycle. Empty files produce no output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nhorton nhorton added this pull request to the merge queue Feb 18, 2026
@nhorton nhorton removed this pull request from the merge queue due to a manual request Feb 18, 2026
@nhorton nhorton merged commit c9e84c1 into main Feb 18, 2026
4 checks passed
@nhorton nhorton deleted the learning_agents_plugin branch February 18, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant