link-memory

link-memory is a skill for Claude Code, Codex from gowtham0992/link. It costs 0 tokens per session (772 once invoked), scanned A, original, MIT.

A local-memory tool for proposing, saving, finding, reviewing, changing, archiving, restoring, or deleting durable project context through a command-line interface.

In plain words
What is it for?
Use it to recall project conventions, record user-approved decisions, review stored memories, and manage their lifecycle. It proposes memories first unless the user explicitly asks to save one.
Why use it?
Important decisions and preferences can otherwise be lost between work sessions. It keeps approved context available without requiring an MCP connection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to recall project conventions, record user-approved decisions, review stored memories, and manage their lifecycle. It proposes memories first unless the user explicitly asks to save one.

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

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gowtham0992/link/link-memory"><img src="https://agentmods.dev/badge/skills/gowtham0992/link/link-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.00772
Opus 5.5 $0.00000 $0.00309
Sonnet 5.5 $0.00000 $0.00154
Haiku 4.5 $0.00000 $0.00077

Measured 1mo ago against content hash 9ab85bf52f05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

link-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 1mo 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.

skills/link-memory/SKILL.md · 58 lines

What it actually says

Use this skill after important user-approved decisions, preference changes, project conventions, or long work sessions that may deserve durable context. In a source checkout, replace lnk with python3 link.py. Do not silently save durable memory; propose first unless the user directly asks to remember, approves a proposal, or explicitly confirms an important decision should become durable memory.

If Link session hooks are installed for this agent, the memory brief is injected automatically at session start — skip step 1 and go straight to task-specific recall.

  1. Prime before work:

    lnk brief "<current task>" [link-root]
    
  2. Recall specific memory:

    lnk recall "<topic>" [link-root]
    
  3. End a session with proposal-only memory candidates:

    lnk session-end <session-notes-or-transcript> [link-root] --limit 3
    

    Use - as the input when piping a transcript on stdin. Show the proposals to the user; do not save durable memory until the user approves one.

  4. Save an explicit memory:

    lnk remember "<user-approved memory>" [link-root] --type note --scope user
    

    Use --project <slug> for project-scoped memory, --visibility private|project|team for sharing intent, --review-after YYYY-MM-DD for stale-risk memories, and --expires-at YYYY-MM-DD for temporary context. When the user asks Link to stop or check an action, add --enforce "ask command: git push --force*" (or deny write: migrations/**): with hooks installed the rule is checked before the agent's tool calls, once the user reviews the memory. Never review, clear, archive or update a memory that carries rules yourself; only the user does. When a brief or recall reports a memory backlog (pending captures or reviews above threshold), offer the user a short consolidation pass:

    lnk consolidate [link-root]
    

    The plan is read-only: it groups duplicates and recurring themes and prints accept/discard/review commands. Apply an action only after the user approves it.

  5. Review and explain before trusting uncertain memory:

    lnk memory-inbox [link-root]
    lnk explain-memory <name-or-title> [link-root]
    lnk review-memory <name-or-title> [link-root]
    
  6. Change lifecycle safely:

    lnk update-memory <name-or-title> "<new text>" [link-root]
    lnk archive-memory <name-or-title> [link-root] --reason "<why>"
    lnk restore-memory <name-or-title> [link-root]
    lnk forget-memory <name-or-title> [link-root] --confirm
    
  7. See what reached the agent, and keep agent files in step:

    lnk receipt [link-root]
    lnk compile [repo] --dry-run
    

    The receipt lists each session's memories, whether they arrived whole, and the rule checks. lnk compile writes reviewed memory into AGENTS.md, CLAUDE.md and per-agent rule files; show the diff and write only when the user agrees.

When duplicate or conflict warnings appear, prefer updating, reviewing, or archiving existing memory over creating another page.

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. 1mo ago Changed · +7 lines 9ab85bf52f05
  2. 3mo ago First seen · 51 lines · 0 tokens per session scan A 3aa8ee93bd60

Subscribe to this mod's changes

link-memory is a skill published in the GitHub repository gowtham0992/link (227 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 772 tokens. 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

link-memory compared with skills from other repositories

link-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
link-memorygowtham0992/linkSkill227yesterdayMITA0Claude Code, Codex
second-brainNicholasSpisak/second-brainSkill7917mo agononeA68Claude Code
second-brain-queryNicholasSpisak/second-brainSkill7917mo agononeA48Claude Code
llmwikiatomicstrata/llm-wiki-compilerSkill2.3k3d agoMITA66Claude Code, Codex
llm-wikizosmaai/pi-llm-wikiSkill636todayMITA52Claude Code
kb-initrvk7895/llm-knowledge-basesSkill365mo agoMITA57Claude Code
obsidian-setup-consultantSikJa/hermes-obsidian-setup-consultantSkill26mo agoMITA124Claude Code, Codex