Link Suggester

Link Suggester is an agent for Claude Code from onebrain-ai/onebrain. It costs 33 tokens per session (709 once invoked), scanned A, original, Apache-2.0.

An assistant that finds related notes in a knowledge vault and suggests up to three wiki-style links under a Related section. A wikilink is a note link written in a format that connects pages inside a note-taking system.

In plain words
What is it for?
Use it after writing a note to extract important terms, search knowledge, resource, area, and project folders, and add the most relevant note connections.
Why use it?
It helps new notes connect to existing knowledge instead of becoming isolated pages. It stops when the note has too few distinctive terms to find meaningful matches.

Agent for Claude Code

Part of the onebrain plugin — 32 skills, 5 agents, 2 hooks shipped together

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 agents/onebrain-ai/onebrain/link-suggester
Clone the repo
git clone --depth 1 https://github.com/onebrain-ai/onebrain

Made for: Claude Code.

Or install onebrain, the plugin that ships this one along with the rest of its 32 skills, 5 agents, 2 hooks.

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 Suggester

README.md
[![agentmods](https://agentmods.dev/badge/agents/onebrain-ai/onebrain/link-suggester.svg)](https://agentmods.dev/agents/onebrain-ai/onebrain/link-suggester)
Your own site
<a href="https://agentmods.dev/agents/onebrain-ai/onebrain/link-suggester"><img src="https://agentmods.dev/badge/agents/onebrain-ai/onebrain/link-suggester.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 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.00033 $0.00709
Opus 5 $0.00016 $0.00354
Sonnet 5 $0.00007 $0.00142
Haiku 4.5 $0.00003 $0.00071

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

Security

Grade A, and why

Link Suggester 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 5d 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.

.claude/plugins/onebrain/agents/link-suggester.md · 46 lines

How it starts

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

You are a knowledge graph assistant. A new note was just written to the vault. Your job is to find the 2–3 most meaningful wikilink connections to suggest adding to it.

Input

You receive:

  • new_note_path : vault-relative path of the newly written note
  • new_note_content : full content of the note
  • vault_root : absolute path to vault root
  • knowledge_folder, resources_folder, areas_folder, projects_folder : folder paths (relative to vault_root)

Process

  1. Extract 3–5 keywords from new_note_content: prefer proper nouns, tool names, project names, or multi-word phrases. Avoid generic words like "use", "note", "session". If fewer than 2 distinctive keywords can be extracted, stop (do nothing).

  2. Search for related notes: If mcp__plugin_onebrain_search__query is available, use it (per the cascade in skills/startup/SEARCH.md) with the extracted keywords; otherwise Grep [knowledge_folder]/**/*.md, [resources_folder]/**/*.md, [areas_folder]/**/*.md, and [projects_folder]/**/*.md for those keywords (case-insensitive; append the |mcp-miss alternation to the pattern — see SEARCH.md). Skip any folder that does not exist. Exclude new_note_path itself.

  3. Filter to top 3: For MCP results, keep only candidates with rerank_score ≥ 0.30, preferring ≥ 0.60; drop anything below 0.30 rather than including it for lack of a better option. For Grep results, collect files with ≥2 keyword hits and rank by hit count. If tied, prefer knowledge/ over resources/ over others.

  4. Check for existing links: Read new_note_content. Skip any candidate already wikilinked in the note.

  5. Auto-add links: If ≥1 candidate found, append wikilinks to a ## Related section in the note (create if absent; append if exists). Use [[Note Title]] format. Then present to the user:

    💡 Linked related notes:
    - [[Note Title]] — [one-line reason why it's relevant]
    - [[Note Title 2]] — [reason]
    

    If no candidates found, do nothing.

Read the full file on GitHub · 46 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. 5d ago First seen · 46 lines · 33 tokens per session scan A 7b1851edbf23

Subscribe to this mod's changes

Link Suggester is an agent published in the GitHub repository onebrain-ai/onebrain (25 stars, last pushed 7d ago), licensed Apache-2.0. It adds 33 tokens to every session and 709 once invoked, about $0.0002 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 agents, from other repositories

vault-migrator

Classify, transform, and migrate vault content from a source vault into this obsidian-mind instance. Two modes: classification (analyze source, return map) and execution (given approved plan, perform migration). Invoked by /om-vault-upgrade.

breferrari/obsidian-mind · 58 tokens

correction-sweep

Find every note restating a corrected fact and classify each as authoritative, restatement, or historical. Discovery and judgement only — never edits. Invoked by /om-correct, or when a fact has been corrected and the restatements need locating.

breferrari/obsidian-mind · 56 tokens

people-profiler

Bulk create or update person notes from Slack profiles. Given user IDs or names, checks Slack for role/title/team, checks vault for existing notes, creates missing ones, updates stale ones, and updates People & Context index.

breferrari/obsidian-mind · 48 tokens

context-loader

Load all vault context about a specific topic — person, project, incident, team, or concept. Gathers notes, backlinks, mentions, timeline, and produces a synthesized briefing.

breferrari/obsidian-mind · 39 tokens

cross-linker

Scan recent or specified notes for missing wikilinks. Finds mentions of people, projects, teams, competencies, and incidents that should be linked but aren't. Suggests missing bidirectional links for user approval.

breferrari/obsidian-mind · 45 tokens

vault-librarian

Run vault maintenance: detect orphan notes, find broken wikilinks, validate frontmatter completeness, flag stale active notes, check cross-linking integrity. Invoke via /om-vault-audit or when the user asks for vault cleanup.

breferrari/obsidian-mind · 52 tokens