update

A command that installs the latest MindLink version and refreshes MindLink-managed files in initialized projects. It updates templates and hooks, adds missing files, and applies non-destructive memory migrations.

In plain words
What is it for?
Use it to upgrade MindLink, refresh agent instruction files and Claude Code hooks, add newly required memory files, and migrate `MEMORY.md`.
Why use it?
It keeps project integrations consistent with the installed version while preserving existing memory content.

Command

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.

agentmods
npx agentmods add commands/404-not-found/mindlink/update
Clone the repo
git clone --depth 1 https://github.com/404-not-found/mindlink
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00506
Opus 5 $0.00000 $0.00253
Sonnet 5 $0.00000 $0.00101
Haiku 4.5 $0.00000 $0.00051

Measured 2d ago against content hash c633cb2b821a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update 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 2d 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.

commands/update.md · 81 lines

How it starts

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

Update mindlink to the latest version and refresh all project files.

Run in your terminal only — this downloads and installs software. Always prompts before doing anything.


Synopsis

mindlink update

Description

Checks the latest version on npm and prompts before installing. Never updates silently — you are always shown what version you're moving to and can cancel.

After installing (or if you're already up to date), mindlink update automatically refreshes every initialized project on your machine:

  • Agent instruction files (CLAUDE.md, .cursorrules, etc.) are overwritten with the latest templates in all registered projects. These files are owned by MindLink — any manual edits will be replaced.
  • Claude Code hooks (.claude/settings.json) are refreshed to the latest hook commands.
  • MEMORY.md migrations are applied non-destructively — new sections introduced in this version are injected into existing MEMORY.md files if they are absent. Your existing content is never touched.
  • Missing brain files are created if a new version introduced a new .brain/ file that didn't exist in older projects.

This means running mindlink update is always safe — your memory is preserved and your projects are brought to current spec automatically.

Release notes for every version:

https://github.com/404-not-found/mindlink/releases

Examples

mindlink update

Output

Update available:

Current version   : x.y.z
Latest version    : x.y.z+1

❯ Update to x.y.z+1
  Skip this version
  Cancel

✓  Updated to x.y.z+1
   See what's new: github.com/404-not-found/mindlink/releases/tag/vx.y.z+1

  Refreshing agent files in 3 projects...

  /Users/you/projects/my-app
    ✓  CLAUDE.md
    ✓  CURSOR.md
    ✓  .claude/settings.json
    ✓  .brain/MEMORY.md

  All agent files are up to date.

Already up to date:

✓  You're on the latest version (x.y.z).

Read the full file on GitHub · 81 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. 2d ago First seen · 81 lines · 0 tokens per session scan A c633cb2b821a

Subscribe to this mod's changes

update is a command published in the GitHub repository 404-not-found/mindlink (11 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 506 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.