Learning Mechanism
automagik-tools uses FastMCP for persistent memory and pattern detection.Storage Backend
Memory stored in:- SQLite database (local):
~/.config/automagik-tools/memory.db - PostgreSQL (optional): For shared team memory
Database Schema
What Gets Stored
Stored:- User preferences (formatting style, default values)
- API response patterns
- Common query patterns
- Tool execution history
- Error patterns
- API keys or credentials
- Sensitive request data
- Full response bodies (only metadata)
- Personally identifiable information
Implementation
Context Storage
Preference Learning
Pattern Detection
FastMCP analyzes usage patterns:OpenAI Integration
Uses OpenAI for semantic analysis:Confidence Levels
How confidence affects behavior:| Confidence | Behavior | Example |
|---|---|---|
| 0.0 - 0.3 | No application | Uses defaults |
| 0.3 - 0.6 | Suggest only | ”You usually use X. Apply?“ |
| 0.6 - 0.8 | Apply with confirmation | Uses learned value, asks to confirm |
| 0.8 - 1.0 | Apply automatically | High confidence, automatic |
Privacy Controls
Disable Learning
Clear Data
Configuration
Example: Code Formatting
Week 1 - Initial use:Example: API Workflow
Day 1-3: User creates GitHub issues manuallyView Learned Data
Next Steps
- Plugin System: Build learning-enabled plugins
- MCP Architecture: How memory integrates with MCP
- Built-in Tools: See learning in built-in tools

