AgentMind: A Claude Code Plugin That Learns and Applies Your Coding Preferences

What AgentMind Does
AgentMind is a Claude Code plugin that addresses the problem of having to re-explain coding preferences in every new session. It automatically learns patterns like "use pnpm not npm," "always add types," and "don't use default exports" by observing how you work and injecting that context into future interactions.
How It Works
The system operates on a six-step core loop: Observe → Analyze → Remember → Apply → Validate → Evolve.
Observation hooks run at key lifecycle points:
- Session start
- Tool use
- Errors
- Compaction
These hooks watch for corrections (like "no, use X instead"), repeated patterns, and error types without storing your actual code.
Technical Implementation
The plugin uses a three-dimensional confidence scoring system to determine when to apply learned preferences:
- Frequency × 0.35
- Effectiveness × 0.40
- Human feedback × 0.25
High-confidence preferences get auto-injected into sessions, while low-confidence ones remain quiet. The system includes decay mechanisms where preferences fade if not reinforced over time.
Evolution System
AgentMind features a four-level evolution structure:
- L0: Individual instincts
- L1: Patterns (clustered from individual instincts)
- L2: Strategies (abstracted from patterns)
For example, separate preferences like "always use vitest," "always add test files in tests," and "run tests after changes" might evolve into a "TDD workflow" pattern.
Technical Details
- ~3000 lines TypeScript core
- ~800 lines shell hooks
- 115 tests passing
- Supports multi-agent with isolated preference stores
- Zero configuration needed — install and it starts learning
- Observation layer uses pure bash + jq to stay lightweight
- MIT licensed and free
Development Insights
The creator noted that the hardest challenge wasn't the learning algorithm but knowing when to be quiet. Early versions would inject every learned preference, which polluted the context window. The confidence scoring with decay solved this issue.
Another technical challenge was getting shell hooks and TypeScript to work together without adding heavy dependencies. The solution was a lightweight observation layer using bash and jq.
📖 Read the full source: r/ClaudeAI
👀 See Also

Claude Code LSP: Enabling Language Server Protocol for Faster, More Accurate Code Navigation
Claude Code ships without LSP enabled by default, but enabling it transforms code navigation from 30-60 second grep searches to 50ms queries with 100% accuracy. The setup requires a flag discovered through a GitHub issue rather than official documentation.

sqlite-utils 4.0rc2: Written by Claude Fable, $149.25, Fixes Data Loss Bug
Simon Willison shipped sqlite-utils 4.0rc2, mostly written by Claude Fable for $149.25. Fable found a data loss bug in delete_where() and helped rewrite transaction handling.

TextForge: A Claude Code-built email approval tool for LLM workflows
A developer built TextForge using Claude Code to automate email workflows with mandatory approval gates, preventing LLMs from sending emails without explicit permission. The tool integrates with Pipedrive CRM and required Google CASA2 security audit compliance.

Run local LLMs on your phone with Observer: offline agents for monitoring and logging
Observer is an open-source iOS app that runs multimodal LLMs locally on your phone to monitor events, log data, and trigger Discord notifications — all offline and free.