A Codex skill for setting up and maintaining concise repo-level memory files across software projects.
The skill gives future coding agents a stable place to find project context, decisions, active tasks, and recent work without relying only on chat history.
Running setup in a project root creates or updates these files:
AGENTS.md: practical instructions for future agents.docs/PROJECT_CONTEXT.md: stable project facts, architecture, workflows, and constraints.docs/DECISIONS.md: dated technical or product decisions and rationale.docs/TASKS.md: current tasks, blockers, and next actions.docs/CHANGELOG_WORK.md: dated work log for changed files, behavior, docs, config, dependencies, tooling, tests, and verification.
Existing files are preserved. The setup script adds or refreshes the project memory requirement in AGENTS.md when needed.
Setup initializes the memory structure only; it does not populate project-specific facts from repo evidence. In an existing project, run $project-memory update after setup to fill in concise facts, tasks, decisions, and recent work.
Copy the project-memory folder into your Codex skills directory:
mkdir -p ~/.agents/skills
cp -R project-memory ~/.agents/skills/Restart Codex or open a new session if the skill does not appear immediately.
From a software project root, ask Codex:
$project-memory setup
Other supported modes:
$project-memory status: summarize current project memory.$project-memory update: update memory after meaningful work.$project-memory review: inspect memory quality without rewriting by default.$project-memory repair: normalize broken or duplicated memory structure.$project-memory compact: shorten noisy or stale memory while preserving useful history.
- Install the skill.
- Run
$project-memory setupin the project root. - If this is an existing project, run
$project-memory updateto populate memory from current repo evidence. - Do coding work.
- Run
$project-memory updateafter meaningful changes. - Future agents read the memory files before continuing work.
After installing the skill, you can run the bundled setup script directly:
python3 ~/.agents/skills/project-memory/scripts/setup_project_memory.pyRun it from the root of the project where you want memory files created.
Run the regression tests:
python3 -m unittest discover -s tests -p "test_*.py"Check the setup script parses:
python3 -m py_compile project-memory/scripts/setup_project_memory.pyproject-memory/
SKILL.md
agents/openai.yaml
scripts/setup_project_memory.py
tests/
test_setup_project_memory.py
.github/workflows/ci.yml
The root-level AGENTS.md is the only root project memory file. docs/PROJECT_CONTEXT.md, docs/DECISIONS.md, docs/TASKS.md, and docs/CHANGELOG_WORK.md describe development history for this source package.
Do not store secrets, credentials, API keys, private tokens, database dumps, or sensitive personal data in project memory files.
MIT. See LICENSE.