Token Goat Mem — AI skill for Claude Code
Local-first long-term memory for AI coding agents (Claude Code, Copilot, Codex): durable facts with trust levels and anchor-based staleness detection.
How to install Token Goat Mem
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open DFKHelper/token-goat-mem and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Token Goat Mem does
Local-first long-term memory for AI coding agents (Claude Code, Copilot, Codex): durable facts with trust levels and anchor-based staleness detection.
Alternatives in AI
- Hindsight — State-of-the-art long-term memory for AI agents by Vectorize 6.7k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
- Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
README
Token-Goat Mem

**Durable memory for daily AI coding** · **1-second recall** · **Trustworthy confidence levels** · **Anchor-based freshness** · **Optional token-goat seam**
**Local-first, defense-in-depth memory that remembers what your AI coding agent keeps forgetting between sessions.**
You tell your AI "we use pnpm not npm" and it forgets. Every session. Then it runs `npm install` and corrupts the lockfile. You re-explain that you prefer 2-space indentation, and the next day it defaults to tabs. These are not oversights — the agent genuinely does not see a record of these decisions after a compaction.
Mem stores them. Locally, in your own SQLite database. Each fact carries a trust level and an anchor (a read-only predicate that tests whether the fact is still true). On recall, Mem re-validates anchors and surfaces only the facts that are fresh and trustworthy, with a confidence caveat so your agent never treats a hint as ground truth when it should not.
Works with **Claude Code**, **Copilot CLI**, **Copilot in VS Code**, **Codex**, and any agent that can run a shell command — integration guides for the first four live in [`docs/integrations/`](docs/integrations/). Optional one-way seam with [**token-goat**](https://github.com/DFKHelper/token-goat), a sister CLI that gives agents narrow-slice code/doc reads to cut context burn, for embedding memory hints into its token-reduction manifest.
**Install:**
npm install -g token-goat-mem
mem --help
**Or from source:**
git clone https://github.com/DFKHelper/token-goat-mem.git
cd token-goat-mem
npm install
npm run build
npm link
mem --help
[](LICENSE) 
Built and maintained by [DFK Helper](https://dfkhelper.com). Free under PolyForm Noncommercial. If
Related Skills
Duin Governed Agent Memory
Agents that earn your trust. A harness that keeps an agent's long-term memory, model of your world and permiss
MultiAgentDocumentAssistant
A multi-agent research paper assistant with durable LangGraph workflows, three-layer long-term memory, hybrid
Kms
Give your AI coding agent durable, checkable knowledge — decisions, facts, and guardrails it won't forget, con
Mem Budget
Show a 4-tier weighted context plan for a query (working/episodic/semantic/procedural) within a token budget.
Canopus
Canopus keeps long-running AI coding agents locked on their goal: frozen acceptance envelopes, deterministic c
Opus Magnum
The Great Work for Claude Code — an adaptive method for long-horizon, high-trust AI builds. Triage, elements,
Related Agents
Mission Researcher.Agent
Gathers repo facts, documentation, and web evidence needed to unblock a long-running Copilot CLI mission while
Context Memory Manager
Context Window & Token Optimization Specialist. Manages token budgets, compresses prompts (RTK/Caveman), imple
Brain Drafter
My Business Brain drafter. Takes a tasking memo from the Chief of Staff and drafts emails, replies, memos, pro