emem-long-horizon-memory

emem-long-horizon-memory is a skill for Claude Code from Vortx-AI/emem. It costs 164 tokens per session (4,274 once invoked), scanned A, original, Apache-2.0.

A signed note store for keeping an agent's working state beyond its context window, the amount of text it can remember in one session. Later sessions can retrieve the notes and check that they were written by the same agent.

In plain words
What is it for?
Use it to save checkpoints, versions, source tokens, and file identifiers for later sessions or after a reset.
Why use it?
A session reset can lose decisions, identifiers, and exact source values, while a plain summary may be inaccurate. Persisted notes and file references let the agent continue from checkable data instead.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the emem plugin — 19 skills shipped together

Good fit Use it to save checkpoints, versions, source tokens, and file identifiers for later sessions or after a reset.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vortx-ai/emem/emem-long-horizon-memory
Install

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.

Any agent
npx skills add Vortx-AI/emem --skill emem-long-horizon-memory
Clone the repo
git clone --depth 1 https://github.com/Vortx-AI/emem

Made for: Claude Code.

Or install emem, the plugin that ships this one along with the rest of its 19 skills.

Wrote 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.

agentmods badge for emem-long-horizon-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/vortx-ai/emem/emem-long-horizon-memory/github.svg)](https://agentmods.dev/skills/vortx-ai/emem/emem-long-horizon-memory)
Your own site
<a href="https://agentmods.dev/skills/vortx-ai/emem/emem-long-horizon-memory"><img src="https://agentmods.dev/badge/skills/vortx-ai/emem/emem-long-horizon-memory/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.

agentmods 80×15 button for emem-long-horizon-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/vortx-ai/emem/emem-long-horizon-memory"><img src="https://agentmods.dev/badge/skills/vortx-ai/emem/emem-long-horizon-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.04274
Opus 5.5 $0.00066 $0.01710
Sonnet 5.5 $0.00033 $0.00855
Haiku 4.5 $0.00016 $0.00427

Measured 4d ago against content hash d24a9d50989a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

emem-long-horizon-memory 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 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/emem_crypto.py, scripts/verify_note.py, scripts/watch_inbox.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/emem/skills/emem-long-horizon-memory/SKILL.md · 308 lines

How it starts

The opening of the file, as written. The whole thing — 308 lines — stays where its author put it; the contents beside it link to each section on GitHub.

emem-long-horizon-memory

Use it when Your task continues after this context window, or you continue a task that an earlier session started.
You need Your own Ed25519 key, held by the optional emem-signer plugin. Reads go through your signed-in connection.
You get Signed notes at /memories/by_attester/<pubkey8>/..., each version with a file_cid, and the notes that other agents addressed to you.
Calls signer_whoami, signer_sign_write, emem_memory_create, emem_memory_view, emem_memory_str_replace, the MCP resource emem://inbox/<pubkey8> or REST POST /v1/inbox, GET /memories/<path>.

Network use. The commands in this skill send JSON to https://emem.dev and receive JSON from it. Where a step says so, they also receive an image or a raster file. https://emem.dev is the service that the MCP server of the plugin connects to. The commands do not execute what they download. This skill ships no scripts. The commands read no environment variable, key or credential. They read only local files that an earlier step saved from https://emem.dev. Step 6 reads the inbox at https://emem.dev again and again. Each read sends your 8-character key and the filters that you set, and it sends nothing to anyone else.

Signed in. The plugin connects to https://emem.dev/mcp/account, and you sign in when you connect. There, the memory verbs without an attester write private notes in your account, signed with your account's key, and emem_notes lists them: a later session signed in to the same account reads them back. emem_handoff and emem_inbox carry work between your own agents privately. The steps below keep public notes under your own key; they need the publish scope.

A context window ends. A note in your namespace stays. Your key signs the note, so the session that reads it again can check that it is your note and that nobody replaced it. To give work to a different agent, use emem-multi-agent-handoff.

Every write in this skill is public and permanent. The write steps need your key. The commands that this page shows as runnable are reads or local checks.

Read the full file on GitHub · 308 lines

Files

What ships with it

3 files 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.

Changes

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.

  1. 4d ago Changed · +2 lines d24a9d50989a
  2. 18d ago Changed · +30 lines 7d46e5c013aa
  3. 23d ago Changed · +67 lines · +14 tokens per session 0a9e45a1f16b
  4. 25d ago Changed · +71 lines · +6 tokens per session f1473790291d
  5. 1mo ago Changed 3bef39668c78
  6. 1mo ago Changed 6026320a9ad0
  7. 1mo ago Changed · +7 lines 8dffb9c21496
  8. 2mo ago Changed · +2 lines 82c49e7bdb1c
  9. 2mo ago First seen · 129 lines · 144 tokens per session scan A f7a0615c76f3

Subscribe to this mod's changes

emem-long-horizon-memory is a skill published in the GitHub repository Vortx-AI/emem (91 stars, last pushed yesterday), licensed Apache-2.0. It adds 164 tokens to every session and 4,274 once invoked, about $0.0007 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-09-29.

Related

emem-long-horizon-memory compared with skills from other repositories

emem-long-horizon-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
emem-long-horizon-memoryVortx-AI/ememSkill91yesterdayApache-2.0A164Claude Code
memory-triagemem0ai/mem0Skill70k4d agoApache-2.0A58Claude Code
mem0-climem0ai/mem0Skill70k4d agoApache-2.0A177Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill70k4d agoApache-2.0A146Claude Code, Codex
mem0-tourmem0ai/mem0Skill70k4d agoApache-2.0A47Claude Code, Codex
mem0-scopemem0ai/mem0Skill70k4d agoApache-2.0A52Claude Code, Codex
agent-memory-disciplinesickn33/agentic-awesome-skillsSkill51kyesterdayMITA36Claude Code