COGNITIVEX · INTEGRATIONS

CognitiveX memory for Claude Code

Claude Code starts most sessions from near-zero: a CLAUDE.md you maintain by hand plus a bounded auto-memory. CognitiveX gives it durable, cross-session memory over MCP, so it remembers decisions, conventions, and project context across every session, every repo, and every other AI tool you use.

WHAT CLAUDE CODE FORGETS

Claude Code resets between sessions. The LCM doesn't.

Add one MCP server and the agent gets a memory that survives the window.

Claude Code is excellent at reasoning over the code in front of it. What it doesn't carry on its own is why you made a decision three sessions ago, which library you standardized on, or the naming convention you agreed in another repo. A hand-kept CLAUDE.md captures some of that, but it lives in one project and you have to remember to update it, and long sessions get compacted, which trims the context the agent was relying on.

CognitiveX fills exactly that gap. It's the Large Cognition Model, a cognitive layer that sits beside any LLM and gives it a persistent, evolving memory. You connect it to Claude Code through the Model Context Protocol (MCP), and from then on the agent can remember and recall across every session, every project, and every restart. The memory is the model, and it lives outside the terminal, so closing the session doesn't erase it.

SIXTY-SECOND SETUP

Wire CognitiveX into Claude Code over MCP

Claude Code speaks MCP natively, so there's nothing to fork or patch. Install the CLI, point it at your API key, and the remember / recall tools light up.

  1. Install the CLI and connect Claude Code

    One command installs the server and registers it with Claude Code:

    # install the CognitiveX CLInpm i -g @cognitivx/cli # sign in, then register the MCP server with Claude Codecogx auth logincogx mcp install claude
  2. Or add it to .mcp.json by hand

    Prefer to wire it manually? The endpoint is hosted, so there's nothing to run locally. Add it to your project's .mcp.json (or your user config for all projects):

    {  "mcpServers": {    "cognitivx": {      "url": "https://api.cognitivx.io/mcp",      "headers": {        "Authorization": "Bearer YOUR_COGNITIVX_KEY"      }    }  }}
  3. Confirm the tools, then teach it once

    Run /mcp in Claude Code and you should see the CognitiveX tools light up: remember, recall, reflect, and the rest. Then tell the agent something worth keeping, like “remember we chose Drizzle over Prisma for the edge runtime”. Open a fresh session tomorrow, ask “what's our ORM decision and why?”, and Claude Code recalls it through CognitiveX. The context you build is no longer trapped in one conversation.

Want to wire the same memory into your own tooling? It's reachable from the cogx SDK and HTTP API too. See the developer docs and the platform overview.

FOUR TIERS, NOT A NOTES FILE

What Claude Code actually keeps.

CognitiveX isn't a flat log the model greps. It's a structured, four-tier memory, and Claude Code writes into whichever tier fits as you work:

  • Decisions (semantic): the ORM you standardized on, the API you settled, why a tradeoff went the way it did.
  • Sessions (episodic): what you shipped Tuesday, the bug you traced to a race condition, the migration you ran.
  • Conventions (procedural): your test command, your branch naming, the way this repo handles config and secrets.
  • Preferences (foundational): your stack tastes, tone, and the rules you never want re-litigated.

Episodic events get promoted into durable semantic facts, patterns surface on their own, and an overnight dream-consolidation pass reorganizes the substrate so recall stays sharp instead of drowning in stale notes. The memory gets better the more you use it. Read how the loop works on the LCM page.

WHAT YOU GAIN

Claude Code, with a memory that compounds

CapabilityClaude Code aloneClaude Code + CognitiveX
Remembers within a single session
Project context in a hand-kept CLAUDE.md
Persists automatically across new sessionspartial
Survives /compact and context trimming
Shared across projects & repos
Same memory in Cursor / Codex / ChatGPT
Consolidates episodes into durable facts
Pattern detection & overnight consolidation

NOT JUST CLAUDE CODE

The same memory follows you everywhere.

Because CognitiveX connects over MCP (and through the cogx SDK and HTTP API), the memory you build in Claude Code isn't locked to Claude Code. Open Cursor for an edit, ask Codex or ChatGPT a question, or hit the API from a CI job: they all read and write the same living memory. Decide something in the terminal in the morning and your editor already knows it in the afternoon.

  • cross-session: survives new sessions, /compact, and machine restarts
  • cross-tool: one memory shared across every MCP client you use
  • cross-repo: conventions and decisions aren't trapped in one project folder
  • storing is free: you only spend recall credits when you read memory back

See the full picture on the integrations overview, or read why shared memory across AI tools changes how you work.

QUESTIONS

Memory for Claude Code: FAQ

How is this different from CLAUDE.md?

CLAUDE.md is a static file you maintain by hand, and it lives in one repo. The built-in auto-memory helps but is bounded and tied to a project. CognitiveX is a hosted, four-tier memory that persists across every session and every repo, consolidates what matters instead of accumulating everything, and is reachable from your other AI tools too. You can keep your CLAUDE.md; the LCM adds durable recall on top.

Does it survive /compact and long sessions?

Yes. Because the memory lives in your CognitiveX account and not in the conversation window, trimming or compacting the context never erases it. Claude Code recalls facts back through the MCP tools whenever it needs them, so a 6-hour session and a brand-new one start from the same durable base.

Is it hard to install?

No. It is one CLI command (npm i -g @cognitivx/cli, then cogx mcp install claude) or one entry in your .mcp.json pointing at the hosted endpoint with a bearer token. There is nothing to run or host locally.

Does it work across projects and other tools?

Yes. The same memory backbone follows you across every project and every MCP client, so a decision you make in Claude Code is already known in Cursor, Codex, or ChatGPT, and vice versa.

Where is my memory stored, and what does it cost?

Your memories live in your CognitiveX account behind your own API key, not in a shared model. Storing is always free; you spend recall credits only when you read memory back. The free tier includes 100 recall credits a month and 1,000 memories, which is plenty to try it inside Claude Code.

Give Claude Code a memory.