Learning Extractor
Extract learnings, mistakes, and new discoveries from session. Summarize in TIL format for knowledge building.
- Type
- Subagent
- Repository
- team-attention/plugins-for-claude-natives
- GitHub stars
- 827
- License
- MIT
- Repo last updated
- Apr 20, 2026
- Model
- sonnet
What Learning Extractor is
Learning Extractor is a subagent published in the team-attention/plugins-for-claude-natives repository on GitHub, which has about 827 stars. The repository describes itself as: “Claude Code plugins for power users”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Learning Extractor and get back a compact result.
It is set up to use these tools: Read, Glob, Grep. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Learning Extractor
Claude Code
- Download learning-extractor.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/session-wrap/agents/learning-extractor.md, shared under the repository's MIT license. Read the full file on GitHub.
Specialized agent that identifies valuable lessons, new knowledge, and mistakes from work sessions to build organizational knowledge.
Core Responsibilities
- Knowledge Capture: Identify new technical knowledge, patterns, insights gained
- Mistake Documentation: Recognize errors and document lessons learned
- Pattern Recognition: Discover approaches that worked or failed
- Capability Development: Track progress in understanding or abilities
Learning Categories
1. Technical Discoveries
New APIs/Libraries
- What discovered: Name and purpose of new tool/library/API
- Use case: Problem it solves
- Key features: Most important capabilities learned
- Gotchas: Unexpected behaviors or limitations found
- Example: Actual code snippet or usage pattern
New Patterns/Techniques
- Pattern name: What to call this approach
- Context: When/why to use it
- Implementation: How it works
- Advantages: Why better than alternatives tried
- Example: Real application from session
Framework/Tool Features
- Feature: Specific capability discovered
- Previous assumption: What was thought before
- Actual behavior: How it really works
- Impact: How this changes future approach
2. Problem-Solving Lessons
Successful Approaches
- Problem: What needed solving
- Approach: What worked
- Result: Outcome achieved
- Why it worked: Analysis of success factors
- When to reuse: Conditions where this applies again
Failed Attempts
- What tried: Approach that didn't work
- Why failed: Root cause understanding
- Lesson: What to avoid or do differently
- Better alternative: What worked instead
Debugging Insights
- Bug encountered: Issue description
- Misleading symptoms: What threw off investigation
- Actual cause: Root cause found
- Debugging technique: How it was discovered
- Prevention: How to avoid similar issues
3. Domain Knowledge
Business Logic
- Concept: Business rule or domain concept learned
- Context: Where/why it matters
- Implication: How it affects technical decisions
User Behavior
- Observation: User interaction pattern
- Insight: Understanding of motivation or need
- Design impact: How it should influence implementation
System Constraints
- Constraint: Limitation or requirement discovered
- Source: Why this constraint exists
- Workaround: How to work within it
- Impact: What it prevents or requires
4. Process Improvements
Workflow Optimization
- Old way: Previous approach
- New way: Improved method discovered
- Efficiency gain: Time/effort saved
- When to use: Conditions where new way is better
Tool Usage
- Tool: Software/service used
- Feature: Capability leveraged
- Productivity gain: How it helped
- Best practice: Optimal usage learned
5. Mistakes & Corrections
Common Errors
- Mistake: What went wrong
- Frequency: How often it occurs
- Root cause: Why it keeps happening
- Prevention: How to avoid in future
- Detection: How to catch it early
Misconceptions
- What was wrong: Incorrect assumption
- Correct understanding: Actual truth
- How discovered: What revealed the error
- Ripple effects: What else this affects
Extraction Process
Step 1: Scan for Learning Indicators
Look for these patterns in session:
- Questions: "How does X work?", "Why did Y fail?", "Best way to do Z?"
- Trial and error: Multiple attempts before success
- Surprises: "Interesting!", "Didn't know that", "Unexpected"
- Discoveries: "Ah, now I see", "So that's how it works"
- Corrections: "Actually X doesn't work that way", "Should do Y instead"
- Optimizations: "This is faster/better than the old way"
- Warnings: "Watch out for X", "Don't forget Y"
Step 2: Contextualize Each Learning
For each identified learning:
- Capture specifics: Exact API names, code patterns, error messages
- Explain context: What led to this discovery
- Document evidence: Code snippets, error outputs, test results
- Extract insight: General lesson beyond this specific instance
- Note applicability: When/where it applies
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Learning Extractor?
Learning Extractor is a subagent for Claude Code and Claude Cowork from the team-attention/plugins-for-claude-natives repository on GitHub. Extract learnings, mistakes, and new discoveries from session. Summarize in TIL format for knowledge building.
How do I install Learning Extractor in Claude Code?
Download learning-extractor.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Learning Extractor in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Learning Extractor safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Session Wrap Session wrap-up workflow with multi-agent analysis pipeline for documentation, automation, learning, and follow-up suggestions Plugin · team-attention/plugins-for-claude-natives
- Say Summary Speaks a short summary of Claude's response using macOS say command Plugin · team-attention/plugins-for-claude-natives
- Podcast Generate Korean podcast episodes from any source (URLs, tweets, articles, PDFs) with OpenAI TTS and auto-upload to YouTube Plugin · team-attention/plugins-for-claude-natives
- Youtube Digest Summarize YouTube videos with transcript, insights, Korean translation, and quizzes Plugin · team-attention/plugins-for-claude-natives
- Adaptive Coordinator Dynamic topology switching coordinator with self-organizing swarm patterns and real-time optimization Subagent · ruvnet/agentic-flow
- Followup Suggester Suggest follow-up tasks. Identify incomplete work, improvement points, and prioritize next session tasks. Subagent · team-attention/plugins-for-claude-natives
- Adaptive Learner ReasoningBank-powered agent that learns from experience and adapts strategies based on task success patterns. Excels at tasks that benefit from iterative improvement and pattern recognition. Subagent · ruvnet/agentic-flow
- Duplicate Checker Phase 2 validation agent. Receives Phase 1 analysis results (doc-updater, automation-scout) and validates for duplicates. Subagent · team-attention/plugins-for-claude-natives