Updated
The best memory for jcode in 2026
The best memory for jcode is Glen if more than one person, machine or agent works on your codebase, and jcode's own built-in memory if you work alone on one machine. Glen installs into jcode with one command: glen install --agent jcode adds two observer hooks to ~/.jcode/config.toml, and from then on every finished turn is recorded into a memory your whole org can search. jcode's turn hooks return nothing to the model, so recall is on demand: the agent runs glen search when the installed prompt overlay or a Glen skill tells it to.
jcode ships its own memory. It is on by default, stores facts, preferences, entities and corrections as JSON under ~/.jcode/memory/, and injects up to five relevant memories into a later turn without the agent asking. Since September 2026 that recall runs on Jev, a decision model from TypeSafe, and needs a credential for it. The store stays on one machine and is never shared. None of the third-party tools below documents jcode support, so picks three to six reach it over jcode's generic MCP client, and each pick says so.
Short answer
- A team, or one person working across several agents and machines
- Glen
- Solo on one machine, nothing to install
- jcode memory + AGENTS.md
- Notes you can read and edit as Markdown
- Basic Memory
- Verbatim history kept locally, no API key
- MemPalace
- A hosted store your other MCP clients already use
- Supermemory or Mem0
jcode memory tools at a glance
| # | Tool | Connects via | Captures | Team sharing | Price |
|---|---|---|---|---|---|
| 01 | CLI install: hooks, prompt overlay and skills | Every finished turn, automatically; recall on demand | Whole orgOrg-wide, filtered per user at recall | Free for 15,000 memories, no card | |
| 02 | Built in | Agent writes with the memory tool; optional extraction sidecar | Repo filesOne machine; AGENTS.md through git | Free; optional subscription from $10/mo | |
| 03 | Local stdio MCP (generic route) | When the agent calls a write tool | Shared spacesLocal files; Cloud workspaces for teams | Free locally; Cloud $19/mo per workspace | |
| 04 | Local stdio MCP (generic route) | When the agent calls a tool; no auto-save hook for jcode | Shared spacesLocal by default; a shared hub is optional | Free, runs locally | |
| 05 | Remote MCP with OAuth (generic route) | When the agent calls add_memory | Shared spacesSpaces; team seats on paid plans | Free with $5 credit; Pro $19/mo | |
| 06 | Remote MCP with a bearer key (generic route) | When the agent calls add_memory | Shared spacesPer user, agent or app entity | Free tier; paid is usage-based or custom |
How we ranked them
- Records jcode turns. jcode fires a turn_end hook when a turn completes. A tool attached to it captures every turn; an MCP server saves only when the agent calls a save tool. jcode's own memory sits in between: the agent writes entries, and an optional sidecar extracts more.
- What triggers recall. jcode's built-in memory injects on its own. Nothing external can: session and turn hooks run detached and return nothing to the model, and the tool hooks that can return text add it to a tool result, never to the prompt. Every other pick depends on the agent calling a tool or command, so a line in ~/.jcode/prompt-overlay.md saying when to search matters.
- Who else can read it. jcode memory is JSON on one machine. We checked whether each option reaches a second machine, a second agent such as Claude Code or Codex, or a teammate, and how access is scoped when it does.
- What leaves the machine. Local storage and local recall are different things. jcode stores memories locally but sends the query and candidate memories to a remote provider to rank them. We say where each pick stores and where it computes.
- Setup and price. What goes into ~/.jcode/config.toml or ~/.jcode/mcp.json, and the first paid tier, from each vendor's pricing page as of November 2026.
The 6 best memory tools for jcode

Glen
Our pickBest for: Teams where several people, or several agents, work on the same codebase.

tryglen.com - Connects to jcode
- CLI install: hooks, prompt overlay and skills
- Captures
- Every finished turn, automatically; recall on demand
- Shared with your team
- Org-wide, filtered per user at recall
jcode has no plugin manager, so glen install --agent jcode edits jcode's own files. It appends two observer hooks to the [hooks] table in ~/.jcode/config.toml, session_start and turn_end, next to any hooks already there. When a turn ends, the hook reads it from jcode's session file and sends your prompt, the assistant's final answer and the repo, branch and commit. The install also writes a managed block into ~/.jcode/prompt-overlay.md and ~/.jcode/preferred-tools.md and copies the Glen skills into ~/.jcode/skills/. Those hooks return nothing to the model, so recall is on demand: the overlay tells the agent to run glen search for questions about history and rationale, and glen code-search when it can point at specific lines.
Glen runs beside jcode's memory and holds different things. jcode memory knows what you did on this machine. Glen holds what the team decided: teammates' sessions in Claude Code, Codex, Cursor and jcode, plus public Slack channels, GitHub, tickets, docs and call transcripts from Fireflies, Fathom and Granola that one person connects once. Each search is filtered per observation to what the person asking is cleared to see, and a decision the team later reversed stops surfacing. Working alone on one machine, jcode's memory covers most of what you need; Glen starts to matter with a second person, a second machine or a second agent.
Strengths
- Every finished jcode turn is recorded without the agent deciding to save
- Search reaches teammates' Claude Code, Codex, Cursor and jcode sessions, plus Slack and GitHub
- Runs alongside jcode's built-in memory and leaves it untouched
- glen incognito keeps recall and records nothing
- glen uninstall reverses every file the install changed
Limits
- Recall waits for the agent to run glen search; jcode hooks can't add context to a prompt
- jcode can't display Glen's recording status, so you check it with glen status
- Hosted only; there is no self-hosted build
Managed service · Free for 15,000 memories, no card
Set up Glen in jcode →
jcode memory + AGENTS.md
Best for: One developer on one machine who wants recall with nothing extra installed.

jcode.sh - Connects to jcode
- Built in
- Captures
- Agent writes with the memory tool; optional extraction sidecar
- Shared with your team
- One machine; AGENTS.md through git
Memory is on by default in jcode ([features] memory = true, toggled with /memory) and lives in JSON files: ~/.jcode/memory/global.json, and one ~/.jcode/memory/projects/<working-directory-hash>.json per project. Entries are facts, preferences, entities and corrections, with tags, links between them and a trust level. The agent writes them through its memory tool, whose actions are remember, recall, search, list, forget, tag, link and related. A text-generating sidecar, on by default and controlled by memory_sidecar_enabled, can extract more from the session.
Recall changed in September 2026. The repository's memory architecture doc says jcode no longer uses embeddings: on each fresh user turn it sends the focused context and the active memories in scope, in batches of at most 24, to Jev, a model from TypeSafe that returns a relevance probability for each one. Memories at or above the threshold, 0.8 by default, are queued, five at most, and injected on a later fresh user turn; a queued result expires after two minutes. This needs a Jev route: your own OpenRouter, TypeSafe or AI/ML API key, or a jcode subscription once its gateway advertises the capability. Without one, remember, list, keyword search and forget still work locally.
Storage is local and recall is remote. The query and candidate memories go to the provider you selected, and the doc warns against storing secrets in memory. Nothing syncs between machines or people; jcode memory export and jcode memory import move a JSON file by hand. What a team shares goes in AGENTS.md at the repo root, with ~/AGENTS.md for machine-wide rules. Separately, a session_search tool lets the agent search past chat sessions on the same machine, including Claude Code, Codex, Pi, OpenCode and Cursor sessions it finds there. jcode is MIT licensed, with about 22,000 GitHub stars.
Strengths
- On by default; storing and keyword search need no account
- Relevant memories are injected without the agent calling a tool
- Project and global scopes in plain JSON under ~/.jcode/memory/
- session_search covers past sessions from other agents on the same machine
Limits
- Automatic recall needs a Jev key or a jcode subscription
- Recall sends the query and candidate memories to a remote provider
- Nothing is shared between machines or people
Built into jcode (MIT) · Free; optional subscription from $10/mo
Visit jcode.sh ↗
Basic Memory
Best for: Developers who want notes they can open, read and edit, shared across the agents on one machine.

basicmemory.com - Connects to jcode
- Local stdio MCP (generic route)
- Captures
- When the agent calls a write tool
- Shared with your team
- Local files; Cloud workspaces for teams
Nothing in Basic Memory's docs names jcode, so the route here is generic. jcode runs local stdio MCP servers listed in ~/.jcode/mcp.json, and Basic Memory's local server starts with basic-memory mcp. jcode also reads Claude Code's ~/.claude.json and .mcp.json, so a Basic Memory server already configured for Claude Code appears in jcode without a second entry.
What it adds over jcode's JSON files is a format people can work in. Notes are Markdown files under ~/basic-memory by default, each one an entity with observations and wikilink relations, indexed in local SQLite, and the same folder opens in Obsidian. Claude Code, Codex and Cursor configured with the same server read and write the same notes, which jcode's own memory can't offer. Saving depends on the agent calling a tool: Basic Memory's capture hooks cover Claude Code, Codex and Pi, and there are none for jcode. The project is AGPL-3.0 with about 4,700 GitHub stars and free on your own machine. Cloud costs $19 a month per workspace with up to two members, after a 7-day trial.
Strengths
- Notes are Markdown files you can read, edit and version
- One note folder for jcode, Claude Code, Codex and Cursor
- Runs over stdio, the MCP transport jcode has supported longest
Limits
- No jcode-specific setup in the docs
- Nothing is saved unless the agent calls a write tool
- AGPL-3.0 may not suit every company
Open source (AGPL-3.0) · Free locally; Cloud $19/mo per workspace
Visit basicmemory.com ↗
MemPalace
Best for: Developers who want verbatim history kept on their own machine, with no API key.

mempalaceofficial.com - Connects to jcode
- Local stdio MCP (generic route)
- Captures
- When the agent calls a tool; no auto-save hook for jcode
- Shared with your team
- Local by default; a shared hub is optional
Conversation text goes into MemPalace verbatim instead of being summarized, filed into wings, rooms and drawers and searched semantically, with ChromaDB as the default local backend. Its README says nothing leaves your machine unless you opt in and that the core path needs no API key. jcode's own recall, by comparison, sends candidate memories to a remote provider.
MemPalace reaches jcode only through the generic route. The server runs over stdio as python -m mempalace.mcp_server and exposes 47 tools. The MCP guide names Claude Code, Codex CLI, Cursor, Gemini CLI, OpenClaw and ChatGPT, and the auto-save hooks exist for Claude Code, Codex CLI and Cursor. In jcode the agent has to call the tools itself, so add a line to ~/.jcode/prompt-overlay.md saying when to search and when to save. MemPalace is MIT licensed and free, with about 60,700 GitHub stars.
Strengths
- Stores what was said, word for word
- No API key and no cloud on the default path
- MIT licensed and free
Limits
- No auto-save hook or setup guide for jcode
- The agent has to be told when to search and when to save
- Adds a Python and ChromaDB install
Open source (MIT) · Free, runs locally
Visit mempalaceofficial.com ↗
Supermemory
Best for: Solo developers who want one hosted memory across jcode and their other MCP clients.

supermemory.ai - Connects to jcode
- Remote MCP with OAuth (generic route)
- Captures
- When the agent calls add_memory
- Shared with your team
- Spaces; team seats on paid plans
A single url field is all Supermemory's generic MCP config contains, pointing at https://mcp.supermemory.ai/mcp, and jcode treats an mcp.json entry with a URL and no command as Streamable HTTP. Sign-in is OAuth with no API key. In jcode that is an explicit step, jcode mcp login supermemory, which runs an authorization-code flow with PKCE on a loopback callback. jcode's login registers a public client when the server supports it; Supermemory's docs don't say whether theirs does, and they name ChatGPT, Claude and Cursor, not jcode. Run the login, then jcode mcp test supermemory, before relying on it.
Once connected, the agent saves with add_memory and recalls with search_memory, and nothing is captured unless it calls them. Memory is hosted and organized into spaces, so the same account serves jcode on a laptop and another MCP client elsewhere. Supermemory's core is MIT licensed with about 31,700 GitHub stars. The free plan includes $5 of credits a month, and Pro is $19 a month with three seats.
Strengths
- Config is one URL in ~/.jcode/mcp.json
- Hosted, so memory follows you across machines
- Open source core
Limits
- jcode is not named in Supermemory's docs, and we could not confirm the OAuth registration step
- Saves only when the agent calls add_memory
- Usage is metered in credits
Open source (MIT) · Free with $5 credit; Pro $19/mo
Visit supermemory.ai ↗
Mem0
Best for: Teams that already use Mem0 inside their own product.

mem0.ai - Connects to jcode
- Remote MCP with a bearer key (generic route)
- Captures
- When the agent calls add_memory
- Shared with your team
- Per user, agent or app entity
A bearer key is the dependable way to connect Mem0 to jcode. Mem0's remote server at https://mcp.mem0.ai/mcp accepts a browser sign-in or an API key sent as a bearer token, and jcode's mcp.json takes an Authorization header with ${MEM0_API_KEY} expanded from the environment. Mem0 documents setups for Claude Code, Codex, Cursor, Windsurf, VS Code and OpenCode. jcode isn't on that list, so this is the generic route too.
The server exposes eleven tools, add_memory and search_memories among them, and memory is written and read only when the agent calls one. The reason to pick it for jcode is reuse: if your product's agents already store memories in Mem0 through its SDK, jcode can query the same account. Mem0 is Apache 2.0 with about 69,500 GitHub stars. Its pricing page lists a free tier starting at 10,000 adds and 1,000 retrievals a month, then billed usage or a custom contract, and puts graph memory on the Custom plan.
Strengths
- Bearer-key auth that jcode's mcp.json supports directly
- Same store as an app built on the Mem0 SDK
- Apache 2.0 with a large community
Limits
- No jcode setup in Mem0's docs
- Saving waits for the agent to call a tool
- No published paid price beyond usage billing
Open source (Apache 2.0) · Free tier; paid is usage-based or custom
Visit mem0.ai ↗
Set up Glen in jcode
Glen goes into jcode through the glen CLI, which edits jcode's config files directly because jcode has no plugin manager. Every step is idempotent, and glen uninstall reverses it. The free plan covers 15,000 memories with no card.
1. Install the CLI and sign in
The hooks call the glen binary, so install it globally and sign in first.
bashnpm install -g @tryglen/cli && glen login2. Install into jcode
This appends session_start = "glen session-start --agent jcode" and turn_end = "glen ingest --agent jcode" to [hooks] in ~/.jcode/config.toml, writes a managed block into ~/.jcode/prompt-overlay.md and ~/.jcode/preferred-tools.md, and copies the Glen skills into ~/.jcode/skills/. Your own hooks, overlay text and skills are left alone.
bashglen install --agent jcode3. Start a new session, then ask
jcode reads its prompt files when a session starts, so open a new one. Each finished turn is recorded from here on, and glen status shows whether recording is on. When a task touches earlier work the overlay has the agent run glen search; you can also run it yourself.
bashglen search "why the export job retries three times before it fails"
Which one should you pick?
jcode's built-in memory recalls without being asked, so the solo answer is short: leave it on, give it a Jev route, and keep project rules in AGENTS.md. Add Basic Memory if you want notes you can read and edit, or MemPalace if recall must never leave the laptop. Both reach jcode over generic MCP, as Supermemory and Mem0 do, and all four save only when the agent calls a tool.
What jcode's memory can't do is leave the machine. It has no sync and no second reader, and it knows nothing about what a teammate's agent worked out yesterday. Glen records each finished jcode turn into an org memory that also holds teammates' Claude Code, Codex and Cursor sessions, public Slack channels and GitHub, and filters every search to what the person asking is cleared to see. Recall in jcode waits for the agent to run glen search, because jcode's turn hooks return nothing to the model; the overlay that glen install writes is what tells the agent when to run it.
FAQ
- Does jcode have memory?
- Yes, and it is on by default ([features] memory = true in ~/.jcode/config.toml, toggled with /memory). The agent stores facts, preferences, entities and corrections with its memory tool, and jcode injects up to five relevant ones into a later turn. Since September 2026 recall uses Jev relevance decisions instead of embeddings, which needs an OpenRouter, TypeSafe or AI/ML API key or a jcode subscription.
- Where does jcode store memory?
- In JSON files on your machine: ~/.jcode/memory/global.json for global memories and ~/.jcode/memory/projects/<working-directory-hash>.json for each project. jcode memory list, search, export and import work on those files from the command line.
- Is jcode memory shared between machines or teammates?
- No. The files stay on one machine and nothing syncs. You can move memories by hand with jcode memory export and jcode memory import. Shared instructions belong in AGENTS.md, which travels with the repo, and shared session memory needs a separate tool such as Glen.
- Does jcode support remote MCP servers?
- Yes. The repository's MCP_REMOTE.md documents local stdio, Streamable HTTP and legacy HTTP+SSE servers, configured in ~/.jcode/mcp.json or a project .mcp.json, with OAuth through jcode mcp login <name> or a static Authorization header. The docs page on jcode.sh still said only stdio was supported when we checked on 2026-11-25; the remote transport shipped in the repository in October 2026 and is in release v1.1.2.
- Can a hook add memory to every jcode prompt?
- No. jcode's turn_start, turn_end, session_start and session_end hooks are observers that run detached and return nothing to the model. Only pre_tool and post_tool_feedback can add text, and only to a tool result. External memory tools therefore recall when the agent calls them, which is why Glen installs a prompt overlay telling the agent when to search.
- Does Glen record my jcode sessions?
- Yes. After glen install --agent jcode, a turn_end hook sends each completed turn: your prompt, the assistant's final answer, the repo, branch and commit, and the session id. glen incognito on stops recording while keeping search, and glen status shows the current state, since jcode can't display it.