a4913994

codex-memory

Community a4913994
Updated

Curated long-term memory for Codex CLI as an MCP server: atomic facts, built-in dedup, decay-based forgetting

codex-memory

English | 简体中文

Curated long-term memory for Codex CLI, delivered as an MCP server. It stores atomic facts as plain Markdown files, deduplicates on write, retrieves via a lightweight index, and — crucially — forgets: entries decay by type-aware half-life and are archived after human review.

Core idea: raw experience accumulates, but knowledge is what survives distillation — so forgetting is treated as a feature on equal footing with remembering.

  • 4 MCP tools: memory_index / memory_search / memory_write / memory_revise
  • One memory per Markdown file, git-versioned, human-auditable — no database
  • Built-in dedup (weighted token overlap, CJK-aware), source ranking (user-correction wins)
  • Decay scoring, an archive buffer with 90-day expiry, driven by a small CLI
  • Weekly consolidate job — semantic dedup, pattern promotion, and an episodic bridge from Codex's built-in memories, powered by codex exec (no extra LLM dependency), one git commit per run
  • Built-in evals: repeat-mistake rate (eval) and index growth curve (growth)

Documentation

English 简体中文
Getting Started 快速开始
Design 设计
Reference 参考手册

Agent instruction templates (append to ~/.codex/AGENTS.md): English · 中文

License

MIT © Xiandong Liu (刘宪东)

MCP Server · Populars

MCP Server · New

    tenequm

    pond

    Lossless storage and search for AI agent sessions, across every agentic client.

    Community tenequm
    lineai-intelligence

    lineai-mcp-server

    An MCP Server to utilize Lineai's rich software dependency data in your AI programming assistant.

    mutonby

    OpenShorts.app

    Open source AI clip generator: turns long videos into viral 9:16 shorts with AI moment detection, face tracking, subtitles and dubbing. Self-host free with Docker (MIT), or use the cloud with GPU speed from $12/mo. MCP server and API for AI agents.

    Community mutonby
    legendaryvibecoder

    Gigabrain

    Local-first memory layer for OpenClaw, Codex App, and Codex CLI: capture, recall, dedupe, and native sync.

    Community legendaryvibecoder
    sysevol-ai

    Searchable codebase wikis and context for coding agents

    A multi-view data system for serving repository context to coding agents.

    Community sysevol-ai