ifbars/codex-memory/memory-system
Claude Code and agent skill by ifbars/codex-memory
- community
Checking that the SKILL.md file is still in the repository.
Use when repo conventions, user preferences, or durable lessons may matter and should be recalled or saved through the tiered memory store in `~/.codex/memories` or `$CODEX_HOME/memories`.
Install
npx vskill@latest install ifbars/codex-memory/memory-systemSKILL.md
Codex Memory Skill
This skill gives Codex a practical long-term memory workflow without relying on Windows hooks.
Goals
- Reuse durable user and repo context across future conversations.
- Recall memory cheaply on most repo-aware or preference-sensitive turns.
- Ask to remember things consistently, but not excessively.
- Keep the source of truth local and inspectable.
- Keep a git-friendly context repository projection available for progressive disclosure.
- Promote stable repo rules into
AGENTS.mdonly with explicit user approval.
Memory root
Use:
~/.codex/memories$CODEX_HOME/memorieswhenCODEX_HOMEis set
Do not create a second memory store somewhere else unless the user explicitly asks for it.
Helper script
Use this script for memory operations:
python <plugin-root>/scripts/memory_store.py ...
Treat <plugin-root> as the installed codex-memory plugin directory.
- Repo marketplace install:
. - Personal install:
~/.codex/plugins/codex-memory
Retrieval workflow
- Before most repo-aware or preference-sensitive work, run a recall.
- If a repo path is known, include it so repo memory outranks global memory.
- Apply core memories automatically when relevant.
- Apply additional retrieved memories only if they are relevant and non-conflicting.
- Treat
AGENTS.mdas stronger than plugin memory when they conflict.
Default retrieval command:
Compatibility alias:
Context repository helpers:
Memory tiers
core- tiny, curated, always-loaded, stable
semantic- preferences, conventions, workflows, facts, procedures
episodic- sparse incidents, debugging lessons, successes/failures
Prefer semantic by default. Use episodic only for prior incidents that should be recalled on strong similarity.
Write workflow
- Near the end of a turn, consider whether exactly one durable memory candidate emerged.
- Run
suggestfor that candidate. - If
suggestrejects it withreason == "not_reusable_enough"and returns arewrite_candidate, rewrite once using that candidate and rerunsuggest. - If the rewritten
suggeststill rejects it, do not ask. - If
suggestaccepts it, ask once whether it should be remembered. - Save only after the user confirms.
- If a repo-specific memory becomes a stable standing rule, offer to promote it into
coreand then intoAGENTS.md.
Consent rule
- Ask at most once per turn unless the user is explicitly teaching preferences.
- In this runtime, use a standalone final line as the canonical prompt:
Memory Suggestion: Remember "<summary>" for <scope>?- Never bury the memory question inside a long paragraph.
When to ask to remember something
Good candidates:
- persistent user preferences
- recurring formatting or communication preferences
- repo-specific build, test, or tooling rules
- environment quirks that repeatedly affect execution
- corrections the user has made more than once
- durable architectural conventions
Bad candidates:
- one-off task goals
- temporary debug state
- current branch names
- transient file paths that only matter for one turn
- secrets, tokens, or credentials
- anything already enforced by system instructions or existing
AGENTS.md
Commands
Recall likely-applicable memories:
Search manually:
Evaluate a new memory candidate:
If suggest returns rewrite_candidate, rerun suggest once with that rewritten summary/details before deciding whether to ask.
Save a confirmed memory:
Promote a stable repo rule into core:
Export repo memories as an AGENTS.md snippet:
Scope rules
- Prefer repo scope when the memory only applies to one codebase or workspace.
- Prefer global scope when it is clearly a user-wide preference.
- If uncertain, ask whether it should be global or repo-specific.
Safety
- Never store secrets.
- Never silently overwrite repo instructions.
- Treat
AGENTS.mdas a stronger source than plugin memory when they conflict.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/memory-system/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ifbars/codex-memory/memory-system)