Harvest knowledge from your AI coding sessions - Claude Code plugin suite
npm install @deeeep/glean> Never forget what you learn from AI coding sessions
Glean automatically harvests knowledge from your Claude Code sessions and transforms it into long-term memory using spaced repetition.

![Tests]()
When AI coding sessions end, valuable information disappears:
- π‘ Code patterns and conventions you discovered
- β οΈ Mistakes you made and how you fixed them
- π Concepts you learnt (forgotten by next week)
- π§ Useful commands and workflows
Glean captures all of this automatically and helps you retain it permanently.
Analyse your coding session with 8 specialised AI agents running in parallel:
| Agent | Purpose |
|-------|---------|
| Session Analyzer | Core harvest data generation |
| Doc Analyzer | Documentation update suggestions |
| Automation Finder | Automation opportunity detection |
| Learning Extractor | Learning point extraction |
| Followup Planner | Next task planning |
| Pattern Recognizer | Code pattern detection |
| Mistake Analyzer | Error/mistake analysis |
| Dedup Validator | Result deduplication |
Built-in SM-2 algorithm schedules reviews at optimal intervals:
| Confidence | Next Review |
|------------|-------------|
| βββββ | 30 days |
| ββββ | 14 days |
| βββ | 7 days |
| ββ | 3 days |
| β | 1 day |
12 feature plugins for comprehensive session management:
| Plugin | Description |
|--------|-------------|
| /harvest | Session knowledge harvesting |
| /insight | Pattern and insight extraction |
| /learn | Spaced repetition learning |
| /memory | Persistent memory (remember/recall) |
| /context | Session context save/restore |
| /plan | Task planning and tracking |
| /pr | Pull request workflow automation |
| /review | Code review helper |
| /history | Session history search |
| /sync | External tool synchronisation |
| /notify | Notification management |
| /stats | Session statistics |
Connect with external tools:
- Obsidian - Export insights to your vault
- GitHub - Create issues from tasks
- Notion - Sync learnings to databases
``bashClone to your plugins directory
git clone https://github.com/lledellebell/glean.git ~/.claude/plugins/glean
$3
Add to your Claude Code settings:
`json
{
"commandPaths": ["~/glean/commands", "~/glean/plugins/*/commands"]
}
`Quick Start
`bash
1. Start a coding session with Claude Code
claude2. Do your work...
3. Harvest knowledge at session end
/glean4. Review your learnings later
/learn review
`Commands
$3
`bash
/glean # Harvest current session (parallel agents)
/glean --verbose # Detailed output with all agent results/harvest # Quick knowledge harvest
/harvest --full # Comprehensive analysis
/insight # Extract insights
/insight --type pattern # Only patterns
/insight --type mistake # Only mistakes
`$3
`bash
/learn add "React Query caches by query key" # Add learning
/learn list # View learnings
/learn review # Start review session
/learn quiz --topic react # Quiz mode
`$3
`bash
/remember "API uses camelCase for responses" # Save to memory
/recall api # Search memory
`$3
`bash
/plan create "Auth system" # Create development plan
/plan add "Add login form" # Add task
/plan done 1 # Mark complete/pr create # Create pull request
/review src/ # Code review
`Data Storage
`
~/.glean/
βββ harvests/ # Session harvest data (JSON)
βββ insights/ # Extracted insights
βββ learn/ # Learning items with review schedule
βββ contexts/ # Saved session contexts
βββ history/ # Session history
βββ config.json # Configuration
`Configuration
Create
~/.glean/config.json:`json
{
"harvest": {
"autoHarvest": true,
"mode": "quick",
"minDuration": 600
},
"learn": {
"reviewReminder": true,
"defaultConfidence": 3
},
"integrations": {
"obsidian": {
"enabled": true,
"vaultPath": "~/Documents/Obsidian/Vault"
}
}
}
`Testing
`bash
Run all tests
npm test61 tests covering:
- Spaced repetition algorithm
- Data transformers
- Plugin detection
``We welcome contributions! See CONTRIBUTING.md for:
- Development setup
- Code guidelines
- Testing requirements
- Pull request process
- [ ] Web dashboard for review
- [ ] Team knowledge sharing
- [ ] More integrations (Linear, Jira)
- [ ] AI-powered review suggestions
MIT Licence - See LICENSE
lledellebell - GitHub
---
> "Remember today what you learnt yesterday" π§
Star β this repo if Glean helps you learn!