CogmemAi is the persistent memory layer for the Claude Agent SDK and claude -p. Survives compaction, session end, and model handoff. Top published score on LongMemEval. Free tier ships today.
$ npm install -g cogmemai-mcp $ npx cogmemai-mcp setup # wizard registers your MCP config + writes the autonomous-capture hooks
Power users will spend it on tools that actually solve a pain. The single deepest pain in Agent SDK and claude -p workflows is the same thing every Claude Code user runs into: the assistant forgets.
CogmemAi runs as an MCP server. The Agent SDK speaks MCP natively. No custom integration code, no glue, no hand-rolled storage layer.
One npm install. Setup wizard registers the MCP config in your Claude Code settings, prompts for your free API key, and writes the autonomous-capture hooks so memory builds itself as you work.
$ npm install -g cogmemai-mcp $ npx cogmemai-mcp setup
CogmemAi exposes its tools to any Agent SDK script the same way it exposes them to Claude Code. Memory operations are first-class MCP tools: save, recall, extract, update, link, consolidate.
import { query } from "@anthropic-ai/claude-agent-sdk"; const result = await query({ prompt: "Pick up where we left off on the auth refactor.", mcpServers: { cogmemai: { command: "cogmemai-mcp" } }, });
Every session adds to a searchable, scoped memory store. Project memories stay with the project. Global memories (preferences, identity, tool choices) carry everywhere. Health score and analytics included.
// next session, anywhere await query({ prompt: "What were the three constraints we settled on yesterday?", mcpServers: { cogmemai: { command: "cogmemai-mcp" } }, }); // → answers from saved memory, no re-discovery
Each skill teaches the assistant a specific memory workflow. Install the MCP server and they activate automatically based on conversation triggers.
MCP is the easiest path for Claude Code, the Agent SDK, and other MCP-native editors. If MCP isn't an option, the same memory engine is available three other ways.
claude -p, Cursor, Windsurf, Cline, and Continue. Install with npm install -g cogmemai-mcp. The recommended path for almost everyone.Reference docs for every integration path live at hifriendbot.com/developer. Need help picking the right one? Tell us about your stack.
Long-term memory in Ai agents is a real benchmark category. We publish our scores, our methodology, and the dates we ran them.
Memory. The deepest pain in Agent SDK and claude -p workflows is context loss across sessions and compaction. CogmemAi solves that with a single npm install. Free tier covers most personal use; paid tiers unlock higher limits and team features.
Yes. CogmemAi is an MCP server. The Agent SDK supports MCP servers natively. Add cogmemai-mcp to your mcpServers config and memory tools are available to the agent immediately.
claude -p?Yes. The setup wizard registers the MCP config that claude -p uses. Run any one-shot prompt and the agent has full memory tooling available.
Run npm install -g cogmemai-mcp followed by npx cogmemai-mcp setup. The wizard registers the MCP server, writes the autonomous-capture hooks, and prompts for your free API key. Sixty seconds end-to-end.
CogmemAi holds the top published score on LongMemEval at 95.1%, measured April 19, 2026. On LoCoMo, CogmemAi scored 91% on April 2, 2026, above the 87.9% human baseline.
Yes. All four support MCP servers. Install cogmemai-mcp the same way and point the editor's MCP config at it. Per-editor guides at hifriendbot.com/developer.
Yes. The free tier includes 500 memories and 500 extractions per month across 5 projects. No credit card required.
Yes. CogmemAi uses quantum-safe encryption on stored memories and supports scoped API keys, team isolation, and per-project access control. Full technical details at hifriendbot.com/tech.
Yes. For defense, government, and regulated customers, CogmemAi ships as a dedicated on-prem deployment with no data crossing your network boundary. Contact us through the developer page to discuss a pilot.
Install CogmemAi today. Watch your Agent SDK sessions remember everything by next week. Free tier, 60-second setup, no card required.