codex-memory-intelligence
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codex-memory-intelligenceWhat's the impact of changing the auth middleware?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codex Memory Intelligence (CMI)
CMI is a local-first project memory and evidence-driven intelligence layer for AI coding agents. It helps an agent continue long-running work with durable project context while keeping observed evidence, reviewed knowledge, and advisory inference separate.
CMI stores human-reviewable project intelligence under .codex-memory/ and does not require a cloud service, API key, database, telemetry service, remote model, or network-enrichment dependency.
Codex Memory Intelligence is an independent source-available project and is not affiliated with or endorsed by OpenAI.
What CMI provides
Durable project memory — reviewed facts, decisions, mistakes, lifecycle state, freshness, and provenance.
Dependency and impact intelligence — bounded project graph, workspaces, inferred boundaries, and advisory impact analysis.
Pre-change intelligence — Git baseline, relevant memory, likely scope, risk, and verification suggestions.
Change Intelligence — BEFORE → DURING → AFTER records that preserve predicted scope, observed changes, outcomes, and supplied verification evidence.
Session Continuation Intelligence — durable accomplishments, blockers, findings, next actions, and handoff state across agent sessions.
Ambient + Closing Intelligence — agent-facing project guidance and bounded end-of-session signals when the runtime follows the integration contract.
Portable Agent Skills — eight open-format Skill artifacts shipped under
skills/.MCP integration — read-only by default, with explicit opt-in for durable project writes.
Operational Trust — additive
cmi-trustpre-share checks for generated-state policy and obvious accidental credentials.
CMI intentionally treats evidence as evidence: a warning is not automatically a product blocker, historical correlation is not causality, and inference is never automatically promoted into durable project truth.
Related MCP server: knitbrain
Get CMI
Current supported release: v0.14.1 / codex-memory-intelligence@0.14.1.
Requires Node.js 22 or newer.
Recommended setup: global CLI + project activation
Install the exact current release and verify the CLI:
npm install -g codex-memory-intelligence@0.14.1
cmi --versioncmi --version should print 0.14.1.
Then change into the project root you want CMI to manage and activate it:
cd /absolute/path/to/your-project
cmi activate
cmi doctorcmi activate uses the current working directory as the project root; it does not take a project-path positional argument. Run it from the intended repository/project root, not from your home directory or another parent directory.
For the Codex adapter, activation:
initializes CMI when needed and refreshes project intelligence;
preserves unrelated repository content while managing bounded CMI sections in root
AGENTS.md,.codex/config.toml, and.gitignore;enables the managed Codex MCP lifecycle and binds both its working directory and
CMI_PROJECT_ROOTto the activated project root;prefers an exact valid project-local
codex-memory-intelligencepackage when one exists, otherwise uses the activating CMI version as the registry fallback;does not install Skills into an agent runtime and does not promote inferred advice into durable project truth.
After the first activation, start a new Codex run/session in that project and make sure the client trusts the project. You can then use normal prompts; CMI-specific prompts are not required for the managed workflow.
Because the managed Codex MCP block is root-bound, re-run activation after moving or cloning the project to a different path:
cd /new/absolute/path/to/your-project
cmi activate
cmi doctorOptional: project-local installation
If you want the CMI package pinned in the project itself, install it as an exact development dependency before activation:
cd /absolute/path/to/your-project
npm install --save-dev --save-exact codex-memory-intelligence@0.14.1
npm exec --package=codex-memory-intelligence@0.14.1 -- cmi --version
npm exec --package=codex-memory-intelligence@0.14.1 -- cmi activate
npm exec --package=codex-memory-intelligence@0.14.1 -- cmi doctorWith a valid project-local package, activation binds the Codex MCP integration to that exact local package entrypoint. The explicit --package form is intentional because the npm package is named codex-memory-intelligence while the executable is named cmi.
Optional: one-off activation without installing the CLI
Use an explicit package spec so npm knows that the cmi binary must come from codex-memory-intelligence:
cd /absolute/path/to/your-project
npx --yes --package=codex-memory-intelligence@0.14.1 cmi activate
npx --yes --package=codex-memory-intelligence@0.14.1 cmi doctorDo not use bare npx cmi as the canonical installation/activation instruction; the package name is codex-memory-intelligence, while cmi is one of its binary names.
If you prefer a GitHub source archive, use Download the latest release. New users should use the latest supported release rather than a historical tag.
Historical releases are retained for provenance and reproducibility, but they are not recommended for new installations and are not the currently supported security line. They may not include later fixes, hardening, compatibility improvements, or current licensing terms. See Release & Version Policy, Security, and Changelog.
Try CMI and share field feedback
CMI is being evaluated on real repositories, not only scripted examples. If you try it, the most useful feedback is concrete and evidence-based:
What was useful? Which memory, impact, change/session, handoff, or closing signals helped?
What felt noisy or misleading? Repeated warnings, false positives, stale context, or unclear severity are especially useful to report.
What is missing? Describe what you expected CMI to preserve, detect, or explain but it did not.
Use the CMI field feedback issue template. Please remove secrets, private source code, tokens, or sensitive .codex-memory/ content before posting.
Maintenance and governance
CMI is actively maintained by Nhơn Lê (@lenhonbp), the project owner and primary maintainer. Release approval, security coordination, compatibility decisions, and community moderation are documented in Maintainers and Governance.
Public maintenance evidence is kept reviewable through Current Release Status, Security, Changelog, and GitHub pull requests/releases. Adoption signals should be interpreted from live public sources such as GitHub and npm rather than frozen claims in this README.
Quick start after setup
For a project already activated through the recommended Codex setup, inspect current evidence and ask for bounded project intelligence:
cmi status
cmi doctor
cmi context "change the account migration"
cmi prepare "change the account migration"
cmi impact migrateAdd reviewed durable knowledge only when it is actually established:
cmi remember fact "Production runs on the documented hosting platform"
cmi remember decision "Schema changes must use versioned migrations" --source package.jsonIf you are using CMI only as a manual CLI/MCP layer without Codex activation, initialize and scan explicitly:
cmi init
cmi scan
cmi doctorA second unchanged cmi scan can reuse previously parsed source nodes. Use cmi scan --full when you intentionally need a full rebuild after parser or configuration changes.
Agent integration
Codex
If you followed the recommended setup above, the project integration is already configured. Start a new Codex run/session after first activation and use normal prompts. CMI manages only its bounded repository integration sections and does not overwrite unrelated user content.
To activate or regenerate the integration explicitly, run from the project root:
cmi activateThe activation command is root-relative to the current working directory. Re-run it after moving or cloning the project. For one-off npm execution, use the explicit --package=codex-memory-intelligence@<version> form shown in Get CMI, not bare npx cmi.
Activation configures project integration only. It does not install Skills into runtime Skill directories.
See Ambient Agent Intelligence, Closing Intelligence, and Skills.
Other coding agents
CMI's core CLI, durable evidence model, portable Skills, and MCP interface are not tied to one model. Agent-specific instruction loading, folder trust, Skill discovery, Skill placement, and automatic selection remain runtime responsibilities outside CMI.
Observed field validation and its limits are recorded separately from the current-product README. See Current Release Status and Real-Repository Evaluation.
How the evidence model fits together
Durable memory
Reviewed lifecycle states are active, deprecated, rejected, and superseded. Active knowledge can separately become stale or require review when its source/project evidence changes.
cmi memory-state <id> deprecated --reason "Policy was replaced" --changed-by reviewer
cmi search "retry policy" --stale-policy demote
cmi refresh-memory <id>Refreshing fingerprints does not replace semantic review. Durable truth still requires an explicit reviewed write.
Change Intelligence
A Change record follows the coding lifecycle:
BEFORE understand + predict + retrieve relevant history
DURING observe meaningful changed scope
AFTER record outcome + supplied verification evidence + unexpected impactTypical flow:
cmi change start "add retry-safe payment processing"
cmi change observe <id>
cmi change complete <id> --outcome succeeded --verify "npm test=passed"Session completion is independent from Change completion. If implementation is intentionally partial, paused, or awaiting review, keep the Change active and close only the session. The handoff carries unfinished work under activeChanges. An explicit abandoned outcome is terminal.
See Change Intelligence.
Session continuation
Sessions can represent implementation, debugging, audit, review, verification, research, or no-code investigation.
cmi session start "investigate authentication retries"
cmi session observe latest --accomplished "Mapped retry flow" --question "Who owns retries?"
cmi session close latest --blocker "Worker retry ownership is unresolved"
cmi session handoff latestCMI preserves unresolved blockers/findings and evidence-linked next actions so a later agent can continue from durable state instead of asking the user to reconstruct known project context.
See Session Continuation Intelligence.
Agent Skills
The npm package ships all eight planned open-format Skill artifacts:
skills/<skill-name>/SKILL.mdShipping a Skill is not the same as installing or activating it in an agent runtime:
npm installation does not auto-activate Skills;
cmi activatedoes not install Skills;CMI has no native Skill loader;
runtime placement, discovery, and automatic selection remain external to CMI.
See Skills.
MCP
Generate the safe default MCP configuration:
cmi mcp-configEnable durable project writes explicitly:
cmi mcp-config --writeBulk memory refresh requires a second opt-in:
cmi mcp-config --write --bulk-refreshThe MCP interface does not authorize CMI to execute arbitrary project commands. Tests, builds, migrations, profilers, and other verification remain the responsibility of the agent/user environment.
See MCP Integration.
Operational Trust
Before sharing CMI state or one exported evidence file, use the additive read-only trust gate:
cmi-trust doctor .
cmi-trust export <file>Operational Trust checks the generated/transient Git-sharing policy and performs bounded credential-like-content scanning. It is conservative and fail-closed, but it is not DLP, malware scanning, authentication, or proof that content is safe to disclose.
See Operational Trust.
Common commands
cmi init [path]
cmi scan [path] [--full] [--json]
cmi doctor [path] [--json]
cmi status [path] [--json]
cmi baseline [path] [--json]
cmi workspaces [path] [--json]
cmi search <query> ...
cmi context <query> ...
cmi prepare <change-goal> ...
cmi impact <file-or-symbol> ...
cmi change start|observe|complete|show|list|history ...
cmi session start|observe|status|close|show|list|handoff ...
cmi finding list|show|state ...
cmi evaluate capture|review|list|show|report|export|import ...
cmi provenance [--json]
cmi evidence freeze|inspect|restore|rebind ...
cmi mcp-config [--write] [--bulk-refresh]
cmi activate
cmi --version
cmi-trust doctor [path] [--json]
cmi-trust export <file> [--json]Use cmi --help and command-specific help for the complete current CLI surface.
Monorepos and ignore rules
CMI detects npm/pnpm workspaces, Cargo workspace members, and Go workspaces/modules. Workspace-aware context and impact commands can scope results to a specific member.
A root .cmiignore uses gitignore-style patterns for project-intelligence scanning. Built-in dependency/generated paths and symbolic links cannot be re-included; hidden paths such as .env are excluded by default, while root .github/ and .cmiignore remain visible where required by CMI's repository-intelligence rules.
See Ignore Semantics.
Evidence limits
CMI is deliberately conservative about what it claims:
inference is advisory and is never automatically promoted into reviewed durable project truth;
static parsing, impact, and inferred boundaries are best-effort rather than compiler-grade;
historical co-change and verification patterns are correlation, not causality;
an observed changed path is not proof of complete runtime impact;
agent clients may ignore project or MCP guidance;
package shipment does not prove runtime Skill discovery or automatic Skill selection;
current field evidence does not imply universal agent compatibility;
no productivity-improvement, time-savings, statistical-sufficiency, causal-effectiveness, or v1-readiness claim is made from the current evidence.
See Evidence Integrity, Real-Repository Evaluation, and Current Release Status.
Security model
CMI is local-first, but repository content and durable memory remain untrusted input for connected agents.
Key boundaries include:
project scanning does not follow symbolic links;
unsafe/symlinked durable storage targets are rejected where supported;
hidden and common generated/dependency paths are excluded by default;
MCP durable project writes are disabled by default;
bulk memory refresh requires separate opt-in;
CMI-internal paths are excluded from observed product/session change scope;
user-supplied durable text receives best-effort secret-pattern checks, but CMI is not DLP or a complete secret scanner.
Review .codex-memory/ before publishing it.
See Security, Evidence Integrity, and Operational Trust.
Release and version policy
CMI has one recommended public installation path: the latest supported release.
Latest release: GitHub latest release
npm:
npm install -g codex-memory-intelligence@0.14.1Security support: current supported release only unless explicitly documented otherwise.
Historical releases: retained for provenance/reproducibility; not recommended for new installs and not promised current security fixes.
GitHub may continue to expose source archives for historical tags. Their availability does not make them the recommended or supported version.
See Release & Version Policy, Security, and Changelog.
Documentation
Product and integration
Release, evaluation, and project history
Policy
Development
npm run verify
npm run benchmark:smoke
npm run package:smokeCI runs on Ubuntu, macOS, and Windows with Node.js 22 and 24. A separate benchmark smoke job checks incremental reuse and release metadata. CodeQL scans JavaScript and GitHub Actions workflows.
License
Repository source after the 2026-08-11 licensing cutover is available under the PolyForm Perimeter License 1.0.1. It permits use, modification, and distribution for permitted purposes, while restricting the provision of products that compete with the software as defined by the license.
Current post-cutover CMI source is source-available, not OSI open source.
v0.11.0 and earlier public releases retain the MIT license that accompanied those versions. Separate commercial licensing may be available for uses outside the public license.
See LICENSE, LICENSING.md, NOTICE, and BRAND_POLICY.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceA local-first MCP server that provides AI agents with safe codebase access through file discovery, hybrid lexical-semantic search, and project introspection. It features durable local memory and semantic indexing while keeping all data and processing entirely on your local machine.74836MIT
- AlicenseAqualityAmaintenanceLocal-first MCP server that gives any AI coding agent per-project memory, workflow intelligence, and always-on, lossless token & context optimization.37313MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for local-first code intelligence, providing structural code graph, semantic search, and impact analysis to AI agents.2MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first code intelligence and safety layer for AI coding agents. MCP server exposes dependency graph, impact analysis, and AST-compressed repo context, backed by typed local memory, patch-scope safety gates, and git-independent transaction rollback.1MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Cloud-hosted MCP server for durable AI memory
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lenhonbp/codex-memory-intelligence'
If you have feedback or need assistance with the MCP directory API, please join our Discord server