
A memory plugin for AI coding that turns engineering experience, repository knowledge, and your way
A memory plugin for AI coding that turns engineering experience, repository knowledge, and your way
Never lose context. Never start over.
Beyond code, it remembers how your architecture evolves and how your engineering unfolds.English · 简体中文
Coding agents are good at the task in front of them, but a new session often starts without the architecture, failed attempts, repository rules, or working preferences established before it.
MemoraX Code gives Codex, Claude Code, CodeBuddy CLI, WorkBuddy, DeepSeek Harness, OpenCode, and Trae a shared memory layer for that context. It can recall prior engineering knowledge, capture reusable lessons from completed work, maintain repository knowledge, and carry your procedures and preferences into future sessions.
The goal is not to remember everything. It is to bring back the small amount of memory relevant to the current task so the agent can reach useful investigation and validation sooner.
Prepare Node.js 20+ (Node.js 24 LTS recommended) and at least one of Codex, Claude Code, CodeBuddy CLI, WorkBuddy, DeepSeek Harness, OpenCode, or Trae.
For DeepSeek Harness (DSH), current releases require Node.js
^22.19.0 || >=24.0.0. Install or initialize DSH first, create at least one
Profile, and ensure pnpm is on PATH before running setup. MemoraX Code
does not install or update DSH.
On Linux, guest credentials require /usr/bin/secret-tool from
libsecret and an available Secret Service in the current user session. For
Remote SSH, WSL, or Dev Containers, install MemoraX Code in the same environment
as the coding agent. MemoraX search and writeback require network access.
npm install -g @memorax/memorax-codeThis installs the package; it does not start interactive setup. Do not use
--ignore-scripts: npm lifecycle scripts safely stop and restore an existing
running managed Backend during package replacement.
Create a MemoraX account or use an existing one, then run from a normal interactive terminal:
memorax-code setup --existing-accountFollow the setup prompts to enter your MemoraX username and API key locally.
For a coding agent without an interactive terminal, pass the API key through
stdin. The examples assume MEMORAX_SETUP_API_KEY is already provided by the
caller. Do not put the key in command arguments or project files.
printf '%s\n' "$MEMORAX_SETUP_API_KEY" | memorax-code setup --existing-account --non-interactiveIn Windows PowerShell:
$env:MEMORAX_SETUP_API_KEY | memorax-code.cmd setup --existing-account --non-interactiveThis explicit command replaces the saved key and uses the detected local
username and system language. It reports API Key match: true after local
configuration and readiness checks; this does not verify cloud credentials.
See non-interactive setup
for input and reuse behavior.
[!TIP] Using MemoraX Code across devices? Find the username and API key in the configuration file on a configured device (normally
~/.memorax-code/config.toml), then enter them in the local setup terminal on the new device. This file contains your API key; keep it private and never paste it into chats or public issues.
To start immediately and connect an account later, run:
memorax-code setupDefault setup reuses a complete existing connection. Otherwise, it detects
your local username and language, asks when needed, and creates or restores
guest credentials. To replace the saved connection, use
memorax-code setup --reconfigure for guest mode or
memorax-code setup --existing-account for a registered account.
To keep your guest memory when registering later, first run this command directly in your local terminal:
memorax-code account --show-mark-id[!IMPORTANT] Obtain the Mark ID before registering, then use it to activate your guest account on MemoraX. The platform does not currently support attaching a Mark ID to an account that has already been registered.
Both setup paths automatically detect supported coding agents. Restart or refresh every detected coding agent after setup.
| Client | Complete activation |
|---|---|
| Codex | Enable MemoraX Code Codex Adapter from Plugins or /plugins if it is not already enabled. |
| Claude Code | Restart or refresh the client to load the managed plugin and Hooks. |
| CodeBuddy CLI | Start a new CLI session to load the managed plugin, Hooks, and Skill. |
| WorkBuddy | Restart WorkBuddy to load its independently managed plugin, Hooks, and Skill. |
| DeepSeek Harness | Restart or refresh DSH to load the plugin registered in existing Profiles. |
| OpenCode | Restart or refresh the client to discover the managed plugin and Skill. |
| Trae | In Settings → Hooks → Global → Configured Hooks, enable the registered Global Hooks once. Setup installs the Hooks and Skill; this switch requires manual activation. |
Open a project, start a new client session, and send one prompt. Then run these commands from the project directory:
memorax-code --version
memorax-code status
memorax-cli statusIn Windows PowerShell, use memorax-cli.cmd status. A configured integration
may still report hook-runtime=unverified until the client executes its Hook.
After a Hook executes successfully, that client's Hook runtime should change
to observed.
memorax-code status checks the local Backend and client integrations;
memorax-cli status checks the local memory configuration and workspace scope.
Neither command sends a test request to MemoraX. A real search or write verifies
remote connectivity and credentials; follow the cross-session example below.
For client-specific diagnostic commands, see
Troubleshooting.
Package installation does not launch setup automatically; run one of the setup commands above, using stdin mode when an agent has no interactive terminal. For incomplete setup or unavailable memory, start with the status commands and follow Troubleshooting.
memorax-code or memorax-cli Is Not FoundBoth commands are included in the same package. Follow the Windows PATH repair steps to bootstrap setup or repair a stale terminal environment.
Clone the example repository from the product website, then open Codex, Claude Code, CodeBuddy CLI, WorkBuddy, DeepSeek Harness, OpenCode, or Trae in the project directory:
git clone https://github.com/SWE-agent/test-repo.git
cd test-repoInvoke the Skill as $memorax-code in Codex or /memorax-code in Claude Code
or DeepSeek Harness. In OpenCode, CodeBuddy CLI, WorkBuddy, or Trae, ask the agent
to use the memorax-code skill by name. The prompts below use its product name
and work in all supported clients.
Send these prompts in order in the same session:
- Use the MemoraX Code skill to build Repo Memory, retrieving only the latest 3 issues, pull requests, and commits.
- Review the recent Repo Memory issue: the zeroth number was once calculated incorrectly. Avoid repeating the same problem now.
- Use the MemoraX Code skill to remember the engineering lesson from this coding task.
Close the current conversation, start a new session in the same repository, and send:
Use the MemoraX Code skill to recall the earlier engineering lesson and suggest what to check.
The agent should retrieve the saved lesson and use it to make suggestions for the current repository.
[!TIP] The prompts above are only for quick verification. In normal use, you do not need to invoke the MemoraX Code skill to add memory manually. It writes relevant memory in the background and guides agents to search when useful. Local activity and status are retained as content-controlled trace and reconciliation records under
MEMORAX_CODE_HOME.
| Memory | The question it answers | Examples |
|---|---|---|
| Coding Memory | What engineering lessons should carry into the next task? | Verified fixes, failed approaches, design rationale, pitfalls, and regression checks |
| Repo Memory | What should an agent know about this repository? | Architecture maps, module ownership, entry points, and commit/PR/MR/issue evidence |
| Personal Memory | How should the agent communicate and collaborate with you? | User Profile preferences such as language, tone, explanation depth, and result format |
| Procedure Memory | How should this kind of task be carried out? | Reusable steps, checklists, prerequisites, exceptions, and validation gates |
Personal Memory and Procedure Memory stay in the current repository under
.repo_memory/. When saved content already exists, MemoraX Code compares its
meaning before writing: an equivalent request makes no change; a durable
refinement or conflict updates the matching entry and removes the superseded
wording; an invalid scope is corrected, or the entry is deleted only when it is
wholly obsolete. An explicit forget request deletes only the named preference,
procedure topic, section, or step and leaves unrelated memory unchanged.
One-time task instructions do not change saved memory, and the Agent asks before
writing when the durable intent or target is unclear.
| Capability | What it does |
|---|---|
| Background memory writeback | Extracts reusable knowledge from completed turns and writes it to Coding Memory in the background. |
| Preference continuity | Records User Profile preferences and injects them into future tasks on a configured cadence. |
| Procedure reuse | Records reusable task procedures and reminds future agents to apply them. |
| Visible memory impact | In Codex, Claude Code, CodeBuddy CLI, WorkBuddy, DeepSeek Harness, OpenCode, and Trae, opens the final answer with a brief natural-language note when an explicit Coding Memory Search or a Repo, Procedure, or Profile Memory available to the current turn materially guided the task. |
| Background Repo Memory maintenance | Automatically organizes repository structure, entry points, and history evidence in supported headless-capable clients, then updates them according to policy to reduce repeated searching and summarization. Trae can use the Skill for Repo Memory, but does not currently expose a headless worker for automatic maintenance. |
| Active memory control | Lets you search and add memory through the bundled MemoraX Code skill or the CLI. |
| Client integration | Integrates with Codex, Claude Code, CodeBuddy CLI, WorkBuddy, DeepSeek Harness, OpenCode, and Trae to trigger memory retrieval, reminders, and writeback. Automatic quota reminders are currently available in Codex, Claude Code, CodeBuddy CLI, WorkBuddy, OpenCode, and Trae. |
| Local observability | Uses content-controlled local trace and reconciliation records to inspect activity counts, retrieval, and writeback status. |
MemoraX is required for cloud-backed memory. Completing setup activates MemoraX search/add and the generated configuration's automatic writeback; there is no second writeback confirmation. Automatic retrieval remains off until explicitly enabled.
Local trace capture is enabled by default for supported clients. Depending on
client capabilities, retained traces under MEMORAX_CODE_HOME may contain
prompts, responses, recalled memory, reminder text, and local paths. Use the
local trace settings to swit
No open issues yet, or sync has not completed.