Init.md Gives Codex Agents Persistent .md Memory

The 30-Second Skim
- What happened: A developer has published a tool, dubbed ReadMe, that turns local markdown files into a persistent memory layer for LLM agents like Codex, letting them retrieve user context (projects, session history, downloads) before responding.
- Key facts & numbers: ReadMe turns local markdown files into a queryable 'codebase' of user context, letting Codex agents look up relevant history about the user before answering questions. Installation runs
codex exec --dangerously-bypass-approvals-and-sandbox --ephemeral - < Init.mdor by pasting Init.md into the Codex CLI/App, after which the agent scans directories like~/.codex/sessions/,~/.claude/sessions/,~/Downloads/, and~/Projects/. The tool builds a hierarchical memory tree at~/.codex/user_context/organized by year → quarter → month → day (e.g.,2026_agentic_rag_memory_systems/2026-Q2_prompt_programs_context_retrieval/2026-04_bootstrap_and_consolidation/2026-04-13_hierarchical_memory_rewrite.md). - What happens next: It's just .md files. That's the whole trick. No vector DB, no embeddings — grep and a directory tree.
- ReadMe turns local markdown files into a queryable 'codebase' of user context, letting Codex agents look up relevant history about the user before answering questions.
- Installation runs
codex exec --dangerously-bypass-approvals-and-sandbox --ephemeral - < Init.mdor by pasting Init.md into the Codex CLI/App, after which the agent scans directories like~/.codex/sessions/,~/.claude/sessions/,~/Downloads/, and~/Projects/. - The tool builds a hierarchical memory tree at
~/.codex/user_context/organized by year → quarter → month → day (e.g.,2026_agentic_rag_memory_systems/2026-Q2_prompt_programs_context_retrieval/2026-04_bootstrap_and_consolidation/2026-04-13_hierarchical_memory_rewrite.md). - It writes a hint block into
~/.codex/AGENTS.mddirecting the agent to the~/.codex/user_context/directory for additional user-specific context.
Why It Matters
Most LLM agents start every session from zero, so they can't remember who you are or what you shipped last week. This tool bakes that recall into plain .md files in your home directory — cheap, git-diffable, human-readable — and ties it to Codex's existing session log so context accumulates across conversations. For developers already living in CLI agents, it's a workaround for the missing 'long-term memory' feature that frontier vendors haven't shipped.
Sources Cited
- Hacker News — Show HN: Continual Learning with .md
Related Coverage
Ask SkimNews