io.github.helinakdogan/agent-magnet
Behavioral memory layer for AI tools. Learns preferences and context across Claude, Cursor, Codex.
Que pouvez-vous faire avec io.github.helinakdogan/agent-magnet ?
- Learns automatically as you work — no "remember this" required
- Shares one memory across Claude, Cursor, and Codex
- Lets you forget or mark things done — memory doesn't just pile up
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
agent-magnetclaude mcp add agent-magnet -e 'MAGNET_USER_ID=<MAGNET_USER_ID>' -e 'MAGNET_OPENAI_KEY=<MAGNET_OPENAI_KEY>' -e 'MAGNET_LOCAL_MODE=<MAGNET_LOCAL_MODE>' -e 'MAGNET_REDIS_URL=<MAGNET_REDIS_URL>' -e 'MAGNET_PROJECT_ID=<MAGNET_PROJECT_ID>' -- uvx agent-magnet==0.1.11
{
"mcpServers": {
"agent-magnet": {
"command": "uvx",
"args": [
"agent-magnet==0.1.11"
],
"env": {
"MAGNET_USER_ID": "<MAGNET_USER_ID>",
"MAGNET_OPENAI_KEY": "<MAGNET_OPENAI_KEY>",
"MAGNET_LOCAL_MODE": "<MAGNET_LOCAL_MODE>",
"MAGNET_REDIS_URL": "<MAGNET_REDIS_URL>",
"MAGNET_PROJECT_ID": "<MAGNET_PROJECT_ID>"
}
}
}
}
Variables d'environnement
MAGNET_USER_IDobligatoire Your identifier used as the memory key across all toolsMAGNET_OPENAI_KEYOpenAI API key for the reflector and classifier modelsMAGNET_LOCAL_MODESet to 1 to use local SQLite storage — no Redis or external services neededMAGNET_REDIS_URLRedis connection URL for persistent shared storage (overrides local mode)MAGNET_PROJECT_IDNamespace for memory isolation across projects (defaults to 'default')
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Your AI forgets your project every new session. This fixes that.
What it does
- Learns automatically as you work — no "remember this" required
- Shares one memory across Claude, Cursor, and Codex
- Lets you forget or mark things done — memory doesn't just pile up
Quick start
pip install agent-magnet
agent-magnet init
That's the whole install. No Redis, no keys, local by default.
What it remembers
Decisions, conventions, watch-outs, failed attempts, goals, preferences, and actions taken — one memory, sorted automatically.
Team memory
Shared memory for a team — one person's decision becomes everyone's context. Requires a paid Agent Magnet key from agentmagnet.app.
Works everywhere
Claude, Cursor, Codex — same memory, local by default. agent-magnet init detects and configures Claude Code, Claude Desktop, and Cursor for you.
Manual MCP config (Codex, or any other MCP client)
{
"mcpServers": {
"agent-magnet": {
"command": "agent-magnet-mcp",
"env": { "MAGNET_USER_ID": "your_name" }
}
}
}
MIT licensed. Contribute — and a ⭐ if this saved your context window.
Questions fréquentes
Qu'est-ce que io.github.helinakdogan/agent-magnet ?
Behavioral memory layer for AI tools. Learns preferences and context across Claude, Cursor, Codex.
Comment installer io.github.helinakdogan/agent-magnet ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add agent-magnet -e 'MAGNET_USER_ID=<MAGNET_USER_ID>' -e 'MAGNET_OPENAI_KEY=<MAGNET_OPENAI_KEY>' -e 'MAGNET_LOCAL_MODE=<MAGNET_LOCAL_MODE>' -e 'MAGNET_REDIS_URL=<MAGNET_REDIS_URL>' -e 'MAGNET_PROJECT_ID=<MAGNET_PROJECT_ID>' -- uvx agent-magnet==0.1.11. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.helinakdogan/agent-magnet ?
Oui. Il attend MAGNET_USER_ID, à renseigner dans sa configuration.
io.github.helinakdogan/agent-magnet est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.helinakdogan/agent-magnet ?
Il est publié par helinakdogan. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.