Releases: pinexai/agent-memory
v0.1.2 — AutoGen, Async, CLI, Export/Import, Qdrant
What's New in v0.1.2
5 new features, 67 new tests (123 total)
AutoGen Adapter
Give AutoGen agents persistent memory across sessions.
```python
from agentmemory.adapters.autogen import AutoGenMemoryHook, get_autogen_memory_context
hook = AutoGenMemoryHook(memory, importance=6)
assistant.register_reply(trigger=autogen.ConversableAgent, reply_func=hook.on_agent_reply, position=0)
```
Install: `pip install "agentcortex[autogen]"`
Async Support — AsyncMemoryStore
Full async/await API backed by a single-threaded executor (safe for SQLite).
```python
from agentmemory import AsyncMemoryStore
memory = AsyncMemoryStore(agent_id="my-agent")
await memory.remember("User is Alice")
ctx = await memory.get_context("Who is the user?")
```
Memory Export / Import (JSON)
```python
memory.export_json("backup.json")
new_memory.import_json("backup.json") # replace
new_memory.import_json("backup.json", merge=True) # merge
```
Memory CLI
```bash
agentmemory inspect --agent-id my-project
agentmemory export --agent-id my-project --output memories.json
agentmemory import memories.json --agent-id new-project --merge
```
Qdrant Production Backend
```python
memory = MemoryStore(agent_id="my-agent", semantic_backend="qdrant", qdrant_url="http://localhost:6333")
```
Install: `pip install "agentcortex[qdrant]"`
Full Changelog: v0.1.1...v0.1.2
v0.1.1 — MCP server for Claude Code
What's new in v0.1.1
MCP Server — Claude Code Persistent Codebase Memory
Give Claude Code a permanent brain for your project. It now remembers architecture decisions, bug fixes, coding preferences, and known gotchas — and recalls them automatically at the start of every session.
Setup (one time):
```bash
pip install "agentcortex[mcp]"
```
Copy `example.mcp.json` to your project root as `.mcp.json`:
```json
{
"mcpServers": {
"agentmemory": {
"type": "stdio",
"command": "python",
"args": ["-m", "agentmemory.mcp_server"],
"env": { "AGENTMEMORY_AGENT_ID": "your-project-name" }
}
}
}
```
Open Claude Code → `/mcp` → see agentmemory with 5 tools: `remember`, `recall`, `get_context`, `memory_stats`, `clear_memory`.
Changes
- `agentmemory/mcp_server.py`: FastMCP server with 5 tools, lazy-init, stdio transport
- `example.mcp.json`: drop-in Claude Code config template
- `pyproject.toml`: new `mcp` optional extra, `agentmemory-mcp` entry point
- 20 new tests (56 total, all passing)