yichen-agent-memory

Installs, operates, and maintains a shared Markdown-based Agent Memory Vault across Claude Code and Codex.

Updated Sep 21, 2026
Ready to run
npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill yichen-agent-memory-tangyixiao
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: yichen-agent-memory
Source: https://github.com/tangyixiao/tangyixiao-skills/tree/main/yichen-agent-memory
Command: npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill yichen-agent-memory-tangyixiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? AI coding assistants like Claude Code and Codex lose context between sessions and cannot share a consistent long-term memory. This Skill provides the operational runbook for installing, upgrading, searching, writing to, and troubleshooting the Agent Memory Vault, a shared memory system where Markdown files are the single source of truth. ## Core Features & Use Cases - Install and Upgrade Runtime: Run plan-then-apply installers on POSIX or Windows with backups, config/state migration, and fail-closed integrity checks. - Gateway-Controlled Writes: Add or update formal memory through a read-target, prepare, apply sequence with path leases, fencing tokens, and CAS protection. - Search and Retrieval: Query memory via memoryctl with SQLite/FTS and optional Zvec semantic indexing, always re-reading Markdown before trusting results. - Audit and Maintenance: Run audits, Doctor health checks, hook configuration, and troubleshooting for failed transactions or index drift. - Use Case: A developer wants Claude Code and Codex to share project memory. Use this Skill to install the vault, configure both hosts' hooks, and safely write verified facts that persist across sessions. ## Quick Start Ask the agent to install the Agent Memory Vault for Codex and Claude using the yichen-agent-memory skill, starting with the read-only install plan.

Frequently Asked Questions about yichen-agent-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install a shared memory system for Claude Code and Codex?▼

Clone the agent-memory-vault repository and run the platform installer with a read-only plan first, then apply with new private backup paths. The plan identifies fresh versus upgrade installs and must pass integrity checks before publishing ready.

How do I write to agent memory without corrupting shared files?▼

Use the Write Gateway sequence: read-target, prepare, then apply. Never edit Markdown directly and claim later; the gateway enforces path leases, fencing tokens, and byte-level CAS before closeout records the receipt.

Can Claude Code and Codex share the same memory vault?▼

Yes, both hosts share one canonical Markdown vault with thin per-host rule and hook adapters. Each uses its own session identity, and both compete for the same canonical path lease when writing.

Why does memory search return stale or unverified results?▼

Search hits from SQLite/FTS or Zvec are only candidates, not facts. Always reopen the current Markdown through the canonical reader before treating any result as true, since derived indexes can drift from the source.

What should I do when a memory write transaction fails midway?▼

Run version --json, the read-only migrator plan, and Doctor to diagnose the failure. Never bypass the transition marker with direct Python entrypoints; stale fences or expired leases require re-reading and preparing a new proposal.