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

VoidLLM: Zero-Knowledge Proxy for Ollama and vLLM with Team Access Control
VoidLLM is a proxy that sits between applications and local LLM servers like Ollama and vLLM, adding organization/team access control, API key management, usage tracking, and rate limiting without viewing prompts. It has <2ms proxy overhead and works with OpenAI-compatible SDKs.

Throttle Meter: Open-Source Claude Code Usage Meter for macOS
Open-source macOS menu bar app that reads local Claude Code logs to show real-time 5-hour and weekly usage, with threshold notifications and token-saving hooks. Also has a €19 commercial sibling with Exact mode (reads claude.ai's internal API via Safari).

ANE Optimization Through Phone-Steered AI Experiments Shows Kernel Fusion Benefits
A developer ran 55 experiments on Apple Neural Engine optimization, steering the process from their phone using Claude for brainstorming. Key improvements included fusing 3 ANE kernels into 1 mega-kernel, reducing validation loss from 3.75 to 2.49 and step time from 176ms to 96ms.

Dev-Card: A Claude Code Skill That Generates Developer Identity Cards from Git History
Dev-Card is a Claude Code skill that analyzes git repositories to generate shareable Developer Identity Cards, assigning one of 11 developer archetypes based on commit timing, language breakdown, commit message patterns, and commit size distribution.