Agent skill

Mnemon

by mnemon-dev in mnemon-dev/mnemon

Persistent memory CLI for LLM agents. An agent skill from mnemon-dev/mnemon.

Apache-2.0Auto-check passedAgent Workflows

Install Mnemon

skills CLI
$ npx skills add mnemon-dev/mnemon --skill mnemon -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mnemon-dev/mnemon mnemon --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .claude/skills && cp -r skills-src/internal/memory/setup/assets/pi .claude/skills/mnemon && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mnemon
GitHub stars
611
Token cost
~881 tokens
SKILL.md length
343 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Persistent memory CLI for LLM agents. An agent skill from mnemon-dev/mnemon.

  • Works in 3 steps: Remember: mnemon remember "" --cat --imp… → Link (evaluate candidates from step 1… → Recall: mnemon recall "" --limit 10
  • Tasks that involve Agent memory
  • SKILL.md covers Workflow, Recall Intent, Commands and Import Historical Chats, plus 1 more section
  • Runs TypeScript scripts from its folder

What it does

Mnemon is an agent skill from mnemon-dev/mnemon. Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.

Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `mnemon.ts`).

It sits in Agent Workflows, covering Agent memory. The repository describes itself as: LLM-supervised persistent memory for AI agents — graph-based recall, cross-session knowledge, single binary. Works with DeepSeek Harness, Claude Code, OpenClaw, and any agent… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Agent memory

Example prompts

  • “/mnemon”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Remember: mnemon remember "" --cat --imp <1-5> --entities "e1,e2" --source agent
  2. Link (evaluate candidates from step 1 using judgment)
  3. Recall: mnemon recall "" --limit 10

What it can do on your machine

Read from SKILL.md and the folder at commit 55ecd3e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mnemon loads about 881 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 343 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~881

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mnemon-dev/mnemon at commit 55ecd3e, republished under its Apache-2.0 licence (© mnemon-dev). 343 words, ~881 tokens.

Download SKILL.mdSave it as .claude/skills/mnemon/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mnemon
description
Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.

mnemon

Workflow

  1. Remember: mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent
    • Only exact content repeats are skipped; distinct content is stored and diff suggestions are advisory.
    • To retire a superseded memory, store and verify the new fact, then explicitly run mnemon forget <old-id>.
    • Output includes action (added/skipped), semantic_candidates, and causal_candidates.
  2. Link (evaluate candidates from step 1 using judgment):
    • Review causal_candidates: link only when the memories are genuinely causally related.
    • Review semantic_candidates: high similarity alone is not enough; skip unrelated keyword matches.
    • Syntax: mnemon link <id> <candidate> --type <causal|semantic> --weight <0-1> [--meta '<json>']
  3. Recall: mnemon recall "<query>" --limit 10

Recall Intent

Keep focused queries and memories in their original language. When the user's meaning is clear, choose --intent WHY (reasons), --intent WHEN (timing), --intent ENTITY (what/who), or --intent GENERAL (neutral retrieval). For example: mnemon recall "<query>" --intent WHY. The override works in any language; --verbose reports meta.intent and meta.intent_source (auto or override).

Automatic cues cover some forms in English, Mandarin Chinese (simplified and traditional), Hindi (Devanagari), Spanish, Modern Standard Arabic, French, Bengali (Bengali script), Portuguese, Indonesian (Latin script), Russian (Cyrillic), and German. Unrecognized forms use GENERAL; conflicting cues involving additional languages also use GENERAL. English/Chinese-only scoring is preserved. This is a lexical heuristic, not full language understanding. See the supported forms, script variants, and limits.

Commands

bash
mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent
mnemon link <id1> <id2> --type <type> --weight <0-1> [--meta '<json>']
mnemon recall "<query>" --limit 10
mnemon search "<query>" --limit 10
mnemon import --dry-run <file>
mnemon import <file>
mnemon forget <id>
mnemon related <id> --edge causal
mnemon gc --threshold 0.4
mnemon gc --keep <id>
mnemon status
mnemon log
mnemon store list
mnemon store create <name>
mnemon store set <name>
mnemon store remove <name>

Import Historical Chats

When the user asks to import old chats, notes, or exported context, create a memory_draft.json with schema_version: "1", insights entries containing content, category, importance, tags, entities, and optional created_at, plus optional edges using source_index, target_index, edge_type, weight, and reason. Run mnemon import --dry-run <file>, then run mnemon import <file> only after validation passes. After import, verify with mnemon status and a focused mnemon search or mnemon recall. Check the output errors field because imports can partially succeed.

Guardrails

  • Use memory only when it can materially improve continuity or task quality.
  • Do not store secrets, passwords, tokens, private keys, or short-lived operational noise.
  • Categories: preference · decision · insight · fact · context
  • Edge types: temporal · semantic · causal · entity
  • Max 8,000 chars per insight.

© mnemon-dev, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in internal/memory/setup/assets/pi of mnemon-dev/mnemon.

  • SKILL.md
  • mnemon.ts

Open the folder on GitHubat commit 55ecd3e

Compare with similar skills

Mnemon next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mnemon compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mnemon this skillmnemon-dev/mnemon611—~881Automated safety check: PassApache-2.0
Coding Agent Session Findercode-yeongyu/oh-my-openagent70k1 repos~2.8kAutomated safety check: PassCustom licence
Claude-Mem Cloud Syncthedotmack/claude-mem98k1 repos~1kAutomated safety check: NotesApache-2.0
Cognee CLI Memory Commandstopoteretes/cognee32k1 repos~2.2kAutomated safety check: NotesApache-2.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Claude-Mem Searchthedotmack/claude-mem98k1 repos~511Automated safety check: PassApache-2.0

Similar skills

  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub starsUsed in 1 repo~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude-Mem Cloud Sync

    thedotmack/claude-mem

    Checks claude-mem cloud sync status and guides you through connecting a cmem.ai Pro account without the sync token ever passing through the chat.

    98k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes
  • Cognee CLI Memory Commands

    topoteretes/cognee

    Drives cognee from the terminal with remember, recall, forget and improve memory commands, dataset and config management and database migrations.

    32k GitHub starsUsed in 1 repo~2.2k tokens
    Agent WorkflowsAuto-check: notes
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Claude-Mem Search

    thedotmack/claude-mem

    Searches the user's persistent cross-session memory for timestamped observations synthesized from past agent sessions on cmem.ai.

    98k GitHub starsUsed in 1 repo~511 tokens
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from mnemon-dev/mnemon

  • Add Mnemon

    mnemon-dev/mnemon

    Add persistent graph-based memory to NanoClaw agents using mnemon.

    611 GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check passed
  • Mnemon

    mnemon-dev/mnemon

    Persistent memory CLI for Hermes Agent. An agent skill from mnemon-dev/mnemon.

    611 GitHub stars~657 tokensUpdated 4 days ago
    Auto-check passed
  • Mnemon

    mnemon-dev/mnemon

    Persistent memory for MiniMax Code. An agent skill from mnemon-dev/mnemon.

    611 GitHub stars~776 tokensUpdated 4 days ago
    Auto-check passed

Categories

Questions about Mnemon

What does Mnemon do?

Persistent memory CLI for LLM agents. An agent skill from mnemon-dev/mnemon. Mnemon is an agent skill from mnemon-dev/mnemon. Persistent memory CLI for LLM agents.

When should I use Mnemon?

Mnemon fits situations like: tasks that involve Agent memory.

How do I install Mnemon in Claude Code?

Run `npx skills add mnemon-dev/mnemon --skill mnemon -a claude-code`. Or copy the skill folder (internal/memory/setup/assets/pi in mnemon-dev/mnemon) into .claude/skills/mnemon in your project. Claude Code loads it when a task matches its description.

How do I install Mnemon in Codex?

Run `npx skills add mnemon-dev/mnemon --skill mnemon -a codex`. Or copy the skill folder (internal/memory/setup/assets/pi in mnemon-dev/mnemon) into .agents/skills/mnemon in your project. Codex loads it when a task matches its description.

Can I use Mnemon in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mnemon-dev/mnemon --skill mnemon -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mnemon, .gemini/skills/mnemon, .github/skills/mnemon and .opencode/skills/mnemon in your project.

What does Mnemon need to run?

Going by SKILL.md and its folder, Mnemon needs TypeScript for the scripts in its folder. Our summary lists: Node.js.

Does Mnemon access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mnemon safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mnemon use?

Mnemon is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mnemon use?

About 881 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mnemon?

Skills that share tags, products or a category with Mnemon: Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Claude-Mem Cloud Sync (thedotmack/claude-mem, 98k stars), Cognee CLI Memory Commands (topoteretes/cognee, 32k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mnemon?

mnemon-dev (a GitHub organization) maintains it in mnemon-dev/mnemon, which has 611 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 3, 2026.

Source: mnemon-dev/mnemon on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.