Claude-Mem, now presented as Grok Mem, records an agent's work, compresses it with AI, and brings relevant notes into later sessions so the agent can remember decisions and next steps. It is intended for persistent context across agent conversations and supports multiple coding-agent environments. The catalogue add-ons provide the workflows and integrations used to operate this memory system.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add thedotmack/claude-mem --skill eve-chat-template-evegit clone --depth 1 https://github.com/thedotmack/claude-memWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/thedotmack/claude-mem/eve-chat-template-eve)<a href="https://agentmods.dev/skills/thedotmack/claude-mem/eve-chat-template-eve"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/eve-chat-template-eve/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/eve-chat-template-eve"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/eve-chat-template-eve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.01252 |
| Opus 5.5 | $0.00030 | $0.00501 |
| Sonnet 5.5 | $0.00015 | $0.00250 |
| Haiku 4.5 | $0.00007 | $0.00125 |
Grade A, and why
eve-chat-template-eve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Eve Template Runtime
Overview
Use this skill to preserve the Eve protocol and durable-session invariants while changing the chat template.
First Pass
- Read
AGENTS.mdfirst. It requires reading the relevant guide undernode_modules/eve/docs/before writing code. - Read
docs/how-the-chatbot-works.mdfor architecture changes anddocs/setup-and-deploy.mdfor setup, auth, storage, or deployment changes. - Search with
rg "useEveAgent|ClientSession|SessionState|content.delta|interaction.opened|eveSession|chat_event|streamIndex|continuationToken|defineMcpClientConnection|defineTool". - Keep Eve runtime code separate from product shell code:
agent/defines agent behavior;app/_components/agent-chat.tsxbridges Eve to the web UI;lib/db/*persists app state.
Core Model
- Treat an app chat row and an Eve session as different things. The app row owns URL, title, user ownership,
pendingUserMessage, storedeveSession, and event rows. Eve owns the remote durable session and stream cursor. - Do not confuse
chat_event.eventIndexwithSessionState.streamIndex. The first orders local Postgres rows; the second resumes/eve/v1/session/:sessionId/stream. - Preserve same-origin Eve routes mounted by
withEve(nextConfig):POST /eve/v1/session,POST /eve/v1/session/:sessionId, andGET /eve/v1/session/:sessionId/stream?startIndex=n. - Keep
betterAuthEveAuth,localDev(), andvercelOidc()in the Eve channel unless deliberately changing local, browser, or Vercel auth behavior.
Persistence And Resume
- Persist
SessionStateimmediately after Eve returnssessionIdandcontinuationToken; do not wait for the stream to finish. - Persist each stream event as it arrives, then use the final snapshot as the canonical cleanup pass.
- Upsert events by local
eventIndex; on final snapshot, delete rows beyond the final event length. - Keep
pendingUserMessagefor interruption recovery. Mark it before sending, consume it once in the session page, hide it after a settled event, and clear it after snapshot or authorization skip. - When preserving initial events, merge by prefix and compare JSON structurally. Do not rely on
JSON.stringifykey order. - Reset per-chat refs on route changes: event index, known initial events, stream events, resumed events, local events, pending bubbles, resume-started flags, and finalize timers.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 18d ago First seen · 62 lines · 75 tokens per session scan A a7b9393c43b7
eve-chat-template-eve is a skill published in the GitHub repository thedotmack/claude-mem (120,667 stars, last pushed today), licensed Apache-2.0. It adds 75 tokens to every session and 1,252 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
eve-chat-template-eve compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| eve-chat-template-evethedotmack/claude-mem | Skill | 121k | today | Apache-2.0 | A | 75 | Claude Code, Codex |
| hivemind-goalsactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 103 | Claude Code |
| hivemind-graphactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 105 | Claude Code |
| hivemind-memoryactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 33 | Claude Code |
| hivemind-memoryactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 33 | Claude Code |
| hivemindactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 32 | Claude Code |
| dejavucmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 51 | Claude Code |