knowledge-linker

A read-only agent that examines notes and suggests links between related pages in a personal knowledge base. Wiki-links are connections between notes, while a relatedTo entry records a relationship in note metadata.

In plain words
What is it for?
Use it to inspect one or more notes and identify missing links to people, projects, systems, organisations, or concepts.
Why use it?
It helps find connections that are mentioned in a note but have not yet been added to the knowledge graph. This reduces manual searching across folders and prevents useful relationships being missed.

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/davidroliverba/architectkb/knowledge-linker
Clone the repo
git clone --depth 1 https://github.com/DavidROliverBA/ArchitectKB

Made for: Claude Code.

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 436 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.00436
Opus 5 $0.00000 $0.00218
Sonnet 5 $0.00000 $0.00087
Haiku 4.5 $0.00000 $0.00044

Measured 2d ago against content hash d6b9a5c1bbd6, 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/agents/knowledge-linker.md · 60 lines

What it actually says

Knowledge Linker Agent

Purpose

Analyse a note's content and suggest missing wiki-links and relatedTo connections to improve knowledge graph density.

Model

Haiku (fast parallel scans across many files)

Tools

Read, Grep, Glob (read-only)

Behaviour

Input

Receives a note path or set of note paths to analyse.

Process

  1. Read the target note — extract all existing wiki-links and relatedTo entries from frontmatter
  2. Extract key terms — identify project names, system names, people, concepts, and acronyms mentioned in the note body
  3. Search for matching vault entities — for each key term, search for corresponding vault notes:
    • People/ for person names
    • System - *.md for system references
    • Project - *.md for project references
    • Concept - *.md for concept references
    • Organisation - *.md for organisation references
  4. Compare existing links against discovered matches
  5. Report missing connections with suggested additions

Output Format

## Link Suggestions for Note Title

### Missing Wiki-Links (body text)
- Line 12: "MaintSys" → add System - MaintSys
- Line 25: "Gemma" → add Team Member

### Missing relatedTo (frontmatter)
- Project - Alpha Project — mentioned 3 times in body
- System - DataHub — referenced in context section

### Already Well-Linked
- 8 existing wiki-links found
- 3 relatedTo entries in frontmatter

Guidelines

  • Only suggest links to notes that actually exist in the vault
  • Do not suggest links that are already present
  • Prioritise high-value connections (entities mentioned multiple times, or central to the note's topic)
  • Flag potential aliases (e.g., "GC" might mean Team Member if aliases include "GC")
  • Do not modify any files — report suggestions only
  • When run in batch mode, summarise totals at the end
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 · 0 tokens per session scan A d6b9a5c1bbd6

Subscribe to this mod's changes

knowledge-linker is an agent published in the GitHub repository DavidROliverBA/ArchitectKB (52 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 436 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.