linksee-memory

linksee-memory is a skill for Claude Code from michielinksee/linksee-memory. It costs 612 tokens per session (8,038 once invoked), scanned A, original, MIT.

A persistent memory system for coding agents, with records for goals, background, feelings, implementation details, caveats, and lessons. It helps an agent recall information across sessions.

In plain words
What is it for?
Looking up prior project decisions, known problems, implementation history, and lessons before starting work or after a failure.
Why use it?
It reduces the chance that an agent repeats past mistakes or forgets earlier decisions when a new session starts.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Looking up prior project decisions, known problems, implementation history, and lessons before starting work or after a failure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michielinksee/linksee-memory/skill
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 michielinksee/linksee-memory --skill skill
Clone the repo
git clone --depth 1 https://github.com/michielinksee/linksee-memory

Made for: Claude Code.

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 linksee-memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/michielinksee/linksee-memory/skill"><img src="https://agentmods.dev/badge/skills/michielinksee/linksee-memory/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 612 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,038 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.00612 $0.08038
Opus 5 $0.00306 $0.04019
Sonnet 5 $0.00122 $0.01608
Haiku 4.5 $0.00061 $0.00804

Measured yesterday against content hash 4b28303d6857, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

linksee-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 yesterday.

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.

src/skill/SKILL.md · 738 lines

How it starts

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

Linksee Memory Skill — Connecting the agent's past and future

🧠 Core Principle

This skill is the only way to persist agent growth across sessions.

Claude Code forgets everything when a session ends. The solution the user taught yesterday, the failure you hit today, the decision made three days ago — all of it is normally lost. linksee-memory is the "memory that doesn't disappear" device.

Writes are handled automatically by the Stop hook (already running). But reads require the agent to actively pull. This skill instills that "go look first" habit in the agent.

JP: Claude Code は session が終わると全部忘れる。linksee-memory は「消えない記憶」を作る装置。書き込みは Stop hook が自動でやってくれるが、読み出しはエージェントが能動的にやる必要がある。


📐 The 6 layers — what goes where

Which layer you record into determines later retrieval accuracy.

Layer When to use Example
🎯 goal The user states a clear goal "want to integrate with freee", "want to npm publish"
📍 context Background on when/why this is happening "because there's a meeting with company X on Wednesday"
💭 emotion User's temperature / tone "tired", "excited", "stressed", 「疲れた」「焦ってる」
🔧 implementation Code written, configured, worked / didn't work success: "OAuth flow works" / failure: "stopped with auth_expired"
⚠️ caveat Lessons you never want to repeat (auto-protected from forgetting) "freee OAuth expires in 24h", "never edit this file"
📈 learning Learned something new, prior belief updated "AST chunking beats line diff for token savings"

Important: caveat layer is automatically protected from forgetting. Pain records are never deleted.

Pin-via-importance (v0.1.0+): Calling remember with importance: 1.0 pins the memory across all layers, protecting it from auto-forget even outside the caveat layer. Use for "mission-critical goals", "key decisions", etc.:

remember({
  entity_name: "KanseiLink", entity_kind: "project",
  layer: "goal", content: "Plugin Marketplace submission under review",
  importance: 1.0  // pin
})

Read the full file on GitHub · 738 lines

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. yesterday Changed · +3 lines 4b28303d6857
  2. 9d ago First seen · 735 lines · 612 tokens per session scan A fc0b6d4f9d18

Subscribe to this mod's changes

linksee-memory is a skill published in the GitHub repository michielinksee/linksee-memory (14 stars, last pushed yesterday), licensed MIT. It adds 612 tokens to every session and 8,038 once invoked, about $0.0031 per session on Opus 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-08-30.

Related

Other skills, from other repositories

memory-curation

When you have read / processed a workspace asset in this session and learned something durable about it, write a memory page so future sessions benefit. Maintain the workspace wiki's hierarchical structure as it grows.

Prismer-AI/PrismerCloud · 46 tokens

memory

Persist and retrieve agent memory across sessions — write durable notes, read by path, recall via semantic search, list/delete, and consolidate. Use whenever the user asks to remember/forget something, when you need to look up past decisions or context, or when episodic state matters beyond the current turn. Executes…

Prismer-AI/PrismerCloud · 76 tokens

dashboard

Open OwnMem Console, the local dashboard for this repository's memory. Use when the user asks to open the dashboard, see memory metrics, check adoption or recall quality, or set up the optional embedding lane. Requires a repository initialized with the dashboard layer.

grpcer/ownmem · 53 tokens

recall

Recall this repository's OwnMem local memory before changing code, and keep it healthy. Use when a repository contains .ownmem/, when past debugging lessons could apply ("have we hit this before", "why is it done this way"), or when the user mentions ownmem, project memory, or recalling across sessions.

grpcer/ownmem · 66 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens

docmancer

Work from the same local memory as every other coding agent on this machine. Recall prior decisions, preferences, instructions, and project conventions that Claude Code, Codex, Cursor, and other agents wrote here, with cited sources, fully local. Also searches a separate local technical-documentation index.

docmancer/docmancer · 62 tokens