somnus0x/agt-skill-pack/ai-memory
Claude Code and agent skill by somnus0x/agt-skill-pack
- community
Checking that the SKILL.md file is still in the repository.
Give your AI long-term and short-term memory: keyword-searchable session history (FTS5 index) plus a hot cache of current project state loaded at session start. Use when AI should remember past sessions and know project state without re-explaining.
Install
npx vskill@latest install somnus0x/agt-skill-pack/ai-memorySKILL.md
AI Memory — Give Your AI a Past and a Present
AI doesn't remember anything between sessions. Every new chat starts blank — no history, no context, no idea what you shipped yesterday.
This skill gives your AI two things it's missing:
- Long-term memory — search past sessions by keyword (FTS5 index)
- Short-term memory — know current project state at session start (hot cache)
The Problem (two sides)
Side 1: Can't find the past. You discussed an auth refactor two weeks ago. Made a decision. Wrote a great prompt. Now it's gone — buried in hundreds of session files with no search, no index.
Side 2: Doesn't know the present. What shipped yesterday? What's blocked? When's the deadline? AI has no idea until you paste context manually. Every session. Every morning.
Setup: Long-Term Memory (Session Search)
Drop-in prompt (copy into Claude Code):
English version:
One prompt. AI writes the script, runs ingest, ready to search.
Usage
Manual setup (if you prefer)
Key components:
- Parser — Read JSONL session files, extract
type: "human"andtype: "assistant"messages - SQLite + FTS5 — Virtual table with
tokenize='unicode61'for multilingual support - CLI —
search "keyword",ingest(rebuild index),stats(show counts)
No cloud, no API keys, no vector DB, no embeddings. FTS5 is built into Python's sqlite3.
Setup: Short-Term Memory (Hot Cache)
Drop-in prompt (copy into Claude Code):
English version:
Replace the file list with whatever holds your project state: git log, TODO files, kanban boards, decision journals, sprint trackers, open PRs.
What hot-cache.md looks like
Keeping it fresh
- Manual: Before closing a session, tell the AI: "update hot-cache.md with what we did today."
- Automated: Set up a cron to refresh periodically:
Wire It Up — Add to CLAUDE.md
This is the key step. Add these lines to your CLAUDE.md (or your AI tool's instruction file):
Now every session starts with context and has access to history. No manual pasting.
When to use
- "What did we decide about X?" — search past sessions
- "I wrote a good prompt for Y" — search and recover it
- "What shipped yesterday?" — hot cache knows
- Starting a new session on a multi-day task — hot cache has continuity
- Before making architectural decisions — search for past discussions on the topic
Technical notes
- Everything local. No cloud, no API keys, no external services.
- No vector DB. FTS5 full-text search handles keyword lookup without embeddings.
- Multilingual. FTS5
unicode61tokenizer works with Thai, English, and mixed text. - Fast. 800+ sessions (3M+ chars) searched in milliseconds.
- Universal. Works with Claude Code, Cursor, Copilot, Windsurf, Aider — any tool that reads files.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ai-memory/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/somnus0x/agt-skill-pack/ai-memory)