一键导入
memory-persist
Persistent memory system across Codex sessions. Use when you need to remember facts, recall information, or maintain context between sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Persistent memory system across Codex sessions. Use when you need to remember facts, recall information, or maintain context between sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Long autonomous task execution with iteration control. Use for multi-hour refactors, TDD workflows, batch operations, or any task requiring sustained autonomous work.
Create, manage, and merge git worktrees for parallel development. Use when starting parallel features, running multiple Codex instances, or for isolated development.
3p-updates skill
Web accessibility specialist for WCAG compliance, ARIA implementation, and inclusive design. Use when auditing websites for accessibility issues, implementing WCAG 2.1 AA/AAA standards, testing with screen readers, or ensuring ADA compliance. Expert in semantic HTML, keyboard navigation, and assistive technology compatibility.
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.
additional_apis skill
| name | memory-persist |
| description | Persistent memory system across Codex sessions. Use when you need to remember facts, recall information, or maintain context between sessions. |
| metadata | {"short-description":"Remember and recall facts across sessions","category":"productivity","source":"neural-claude-code"} |
Manage persistent memory across Codex sessions using JSON files.
$memory-persist remember "User prefers TypeScript over JavaScript"
$memory-persist recall "TypeScript"
$memory-persist forget "fact-abc123"
$memory-persist list
~/.codex/memory/facts/*.json~/.codex/memory/events/{date}.jsonlSave a fact to persistent memory.
Process:
~/.codex/memory/facts/Fact Schema:
{
"id": "fact-abc12345",
"timestamp": "2026-01-04T12:00:00Z",
"category": "preference",
"content": "The fact to remember",
"source": "user",
"confidence": 1.0,
"access_count": 0
}
Search memory for relevant information.
Process:
Remove information from memory.
Process:
~/.codex/memory/archives/Show all stored facts with categories.
#!/usr/bin/env python3
import json
import sys
import uuid
from datetime import datetime
from pathlib import Path
def write_fact(content, category="learning"):
memory_dir = Path.home() / ".codex" / "memory" / "facts"
memory_dir.mkdir(parents=True, exist_ok=True)
fact = {
"id": f"fact-{uuid.uuid4().hex[:8]}",
"timestamp": datetime.utcnow().isoformat() + "Z",
"category": category,
"content": content,
"source": "user",
"confidence": 1.0,
"access_count": 0
}
fact_file = memory_dir / f"{fact['id']}.json"
fact_file.write_text(json.dumps(fact, indent=2))
print(f"Saved: {fact['id']}")
return fact
if __name__ == "__main__":
content = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else ""
if content:
write_fact(content)
else:
print("Usage: memory_write.py <fact content>")
#!/usr/bin/env python3
import json
import sys
from pathlib import Path
def read_memory(query=""):
memory_dir = Path.home() / ".codex" / "memory" / "facts"
if not memory_dir.exists():
return []
results = []
for fact_file in memory_dir.glob("*.json"):
try:
fact = json.loads(fact_file.read_text())
if not query or query.lower() in fact["content"].lower():
results.append(fact)
except:
continue
return sorted(results, key=lambda x: x.get("access_count", 0), reverse=True)
if __name__ == "__main__":
query = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else ""
results = read_memory(query)
if results:
for fact in results[:10]:
print(f"[{fact['id']}] ({fact['category']}) {fact['content']}")
else:
print("No facts found" + (f" matching '{query}'" if query else ""))
This skill automatically loads facts at session start when you have a ~/.codex/AGENTS.md that references it.
Add to your global AGENTS.md:
## Memory
Use $memory-persist to remember important facts across sessions.
Check memory before making assumptions about user preferences.