Memory Skill — Development skill for Claude Code
a file-based long-term memory agent skill.
How to install Memory Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open zoubingwu/memory-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Memory Skill does
a file-based long-term memory agent skill.
Alternatives in Development
- Fix Py Line Too Long 71.9k ★
- OpenAI Codex CLI — (Rust implementation) 67.8k ★
- Seomachine — A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business 2.8k ★
README
Memory Skill
A file-based long-term memory skill for AI agents, implemented using a single append-only JSONL file. This skill allows agents to persist information across sessions and retrieve it efficiently using standard Unix tools.
Features
- File-based Storage: Uses a simple JSONL (JSON Lines) file for storage, making it easy to inspect and backup.
- Append-Only: Ensures data integrity by only appending new entries and never rewriting existing lines.
- Efficient Search: Prioritizes recent entries by searching from the end of the file using a configurable window.
- Lightweight: Depends only on standard Unix tools like
bash,jq, andripgrep(orgrep).
Usage
This skill provides two main capabilities to the agent:
1. Writing to Memory (`memory_write`)
Stores a new entry in the memory file. Each entry is a JSON object containing a timestamp, type, content, and optional tags/metadata.
**Input:**
type: String (e.g., "note", "fact", "task", "todo")content: String (the raw text content)tags: (Optional) Array of stringsmeta: (Optional) JSON object for extra metadata
**Storage Format:** Entries are stored in `~/.codex/memory.jsonl` (default) as:
{"ts": "2023-10-27T10:00:00+00:00", "type": "note", "content": "User prefers Python.", "tags": ["preference"], "meta": null}
2. Searching Memory (`memory_search`)
Retrieves relevant entries from memory based on a query string.
**Input:**
q: Query string (literal substring or regex)limit: (Optional) Max number of results to return (default: 20)window_lines: (Optional) Number of recent lines to search (default: 50000)
The search strategy uses a "hybrid" approach:
- Reads the last
window_linesof the file. - Filters lines using
rg(ripgrep) orgrep. - Parses valid JSON lines with
jq. - Returns the most recent matches.
Requirements
Ensure the environment has the following tools installed:
bashjqripgrep(recomm
Related Skills
Mem0 Chrome Extension
OpenMemory Chrome Extension: Long-term memory for ChatGPT, Claude, Perplexity, Grok etc
MoltBrain
Long-term memory layer for OpenClaw & MoltBook agents that learns and recalls your project context automatical
Mb
Memory Bank — long-term project memory management
MemXT
MemXT is a Local long-term memory for Claude Code & coding agents. 100% local
Pensieve
Your coding agent has amnesia and tunnel vision. Pensieve is the context engine that fixes both — long-term me
Hermit Agent
Hermit-crab agent — one npx command bootstraps a Telegram-connected Claude Code (or Codex CLI) agent with pers
Related Agents
Curate Chatlog
Curate the m3-chatlog store — clean, dedupe, decay ephemeral turns, prune abandoned conversations, promote hig
Context Memory Manager
Context Window & Token Optimization Specialist. Manages token budgets, compresses prompts (RTK/Caveman), imple
Memory Searcher
Searches the long-term memory vault and returns a dense answer with path:line citations. Use for broad questio