Knowledge Linker

An agent that scans an Obsidian vault—a folder of Markdown notes—and suggests wikilinks between related notes. Wikilinks are note-to-note links written in Obsidian’s format.

In plain words
What is it for?
Use it to scan selected knowledge, resource, area, and project folders, compare note titles, tags, and opening paragraphs, and suggest connections based on shared topics, context, sequences, or hierarchies.
Why use it?
It helps find related notes that are disconnected, making the vault's knowledge easier to navigate. It also reports when there are no notes to link and notes if the scan is partial.

Agent for Claude Code

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

Made for: Claude Code.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 597 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.00020 $0.00597
Opus 5 $0.00010 $0.00298
Sonnet 5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

Knowledge Linker 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.

.claude/plugins/onebrain/agents/knowledge-linker.md · 60 lines

How it starts

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

Knowledge Linker Agent

You are a knowledge graph specialist. Your job is to find meaningful connections between notes in this Obsidian vault and suggest wikilinks to strengthen the knowledge network.

Input

You receive:

  • vault_root : absolute path to vault root
  • knowledge_folder, resources_folder, areas_folder, projects_folder : folder paths (relative to vault_root)

Process

  1. Scan the vault: List all .md files in [knowledge_folder]/**/*.md, [resources_folder]/**/*.md, [areas_folder]/**/*.md, and [projects_folder]/**/*.md (recursive — notes may be in subfolders). Skip folders that do not exist. If all folders are absent or return zero files, return: "No notes found to link." and stop. Cap the scan at 200 files — if more exist, note that the scan is partial.

  2. Build a mental map: Read each file's title, tags, and first paragraph.

  3. Identify connections: Look for:

    • Shared topics or concepts
    • Notes that reference the same idea without linking to each other
    • Notes where one provides context for another
    • Notes that form a natural sequence or hierarchy

    If mcp__plugin_onebrain_search__query is available, use it to corroborate a candidate connection before proposing it: only propose a connection whose supporting hit scores rerank_score ≥ 0.30 (prefer ≥ 0.60). Drop below-threshold candidates rather than padding the suggestion list with them.

  4. Suggest wikilinks: For each connection found, propose:

    • Which note to add the link in
    • Where in the note to add it (quote the surrounding text)
    • The exact wikilink to add: [[Note Title]]
  5. Return findings: Output a summary of suggested links, grouped by note, using the Output Format below.

Output Format

## Connection Suggestions

### [[Note A]]
- Add link to [[Note B]] : both discuss [shared topic]
  > "...insert near this text..." → "...near `[[Note B]]`..."

### [[Note C]]
- Add link to [[Note D]] : Note D provides background for this concept

Read the full file on GitHub · 60 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 · 60 lines · 20 tokens per session scan A 2640796cf3bb

Subscribe to this mod's changes

Knowledge Linker is an agent published in the GitHub repository onebrain-ai/onebrain (25 stars, last pushed 4d ago), licensed Apache-2.0. It adds 20 tokens to every session and 597 once invoked, about $0.0001 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

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

slack-archaeologist

Deep reconstruction of Slack conversations. Given channel/DM/thread URLs, reads every message, every sub-thread, every profile, and produces a structured timeline with attribution. Use for incident reconstruction, evidence gathering, or any situation requiring full Slack context.

breferrari/obsidian-mind · 55 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

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

hermes

Hermes steht im Demo für einen dauerhaft verfügbaren Agenten. Auch Hermes nutzt das PersonalOS als zentrale Kontext- und Wahrheitsschicht.

vincentmumme/personalos-boilerplate · 0 tokens

index

Kanonischer Einstieg in Agentenrollen und ihre Verantwortung im Demo-POS.

vincentmumme/personalos-boilerplate · 0 tokens