
codex-memory-curator
by servrox
Audit, prune, and secure your AI agent's long-term memory to prevent pollution and data leakage.
- Identify and redact leaked credentials or PII in agent memory history
- Relocate repo-specific rules from global memory to AGENTS.md files
- Resolve conflicts between old memories and current project documentation
Free
Sample input
My agent is giving me outdated advice and I'm worried about leaked tokens. Can you audit my Codex memories, check for sensitive data, and suggest a cleanup plan?
Sample output
Codex Memory Review
Top Decisions:
- Move 5 repo-specific rules to AGENTS.md
- Redact 1 leaked API key in memory-history.md
- Delete 12 stale entries regarding deprecated v1 API Summary:
- Keep: 14 | Delete: 12 | Move: 8 Do you want me to apply the safe cleanup? I will back up the directory first.
Audit, prune, and secure your AI agent's long-term memory to prevent pollution and data leakage.
Free
Included in download
- Downloadable skill package
- 1 permission declared
- Instant install
Sample input
My agent is giving me outdated advice and I'm worried about leaked tokens. Can you audit my Codex memories, check for sensitive data, and suggest a cleanup plan?
Sample output
Codex Memory Review
Top Decisions:
- Move 5 repo-specific rules to AGENTS.md
- Redact 1 leaked API key in memory-history.md
- Delete 12 stale entries regarding deprecated v1 API Summary:
- Keep: 14 | Delete: 12 | Move: 8 Do you want me to apply the safe cleanup? I will back up the directory first.
Screenshots
About This Skill
What it does
The Codex Memory Curator is a specialized maintenance utility designed to audit and prune AI agent "memories." As agents accumulate long-term context, they often suffer from memory pollution—stale rules, duplicate entries, or sensitive data leakage across different repositories. This skill provides a structured workflow to inventory, scan for risks, and clean up your agent's durable state.
Why use this skill
Standard prompting can't easily fix an agent's underlying memory architecture. This skill acts as a professional librarian and security auditor for your agent. It classifies every memory entry into one of several categories (KEEP, MOVE TO AGENTS.md, DELETE, etc.), ensuring that repo-specific rules stay in the repo and global preferences stay in memory.
Key advantages include:
- Security First: Employs a redacted risk scanner to identify credentials or sensitive data before you see them.
- Safe Operations: Never performs destructive edits without creating a timestamped backup and receiving explicit confirmation.
- Context Optimization: Shrinks context windows by moving misplaced documentation from memory into the appropriate project files or config.
Supported tools
Developed for developers using the Codex ecosystem, it interacts with ~/.codex/memories and config.toml using specialized Node.js scripts for non-destructive inventory and risk assessment.
Use Cases
- Identify and redact leaked credentials or PII in agent memory history
- Relocate repo-specific rules from global memory to AGENTS.md files
- Resolve conflicts between old memories and current project documentation
- Generate a structured cleanup plan to prune duplicate or 'noisy' context
Known Limitations
- Cannot resolve conflicts in unreachable private repositories.
- Scan depth limited to prevent context overflow.
- Edits require manual multi-step approval.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/codex-memory-curator -o /tmp/codex-memory-curator.zip && unzip -o /tmp/codex-memory-curator.zip -d ~/.claude/skills && rm /tmp/codex-memory-curator.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
File Scopes
Codex CLI and SKILL.md-compatible agents.
Creator
Entrepreneur & Builder 🚀 Co-Founder and Managing Director at servrox solutions and stark AI
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.
Multi-Agent Orchestration Master Library
Transform Claude Code into a coordinated multi-agent system. Battle-tested tmux orchestration patterns, YAML task queues, event-driven communication, and parallel worker management for 8+ agents.

sast-configuration
Automate the setup and optimization of Semgrep, SonarQube, and CodeQL for high-signal security testing.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.