find-connections

find-connections is a command for Claude Code from Abilityai/cornelius. It costs 11 tokens per session (2,057 once invoked), scanned A, original, MIT.

A command that searches a knowledge base for relationships between notes and topics. It looks for direct similarities, connecting notes, groups of related ideas, and less obvious links.

In plain words
What is it for?
Mapping the notes around a topic, finding related files, identifying bridge notes between subjects, and describing clusters or isolated ideas.
Why use it?
It helps reveal patterns that are easy to miss when reading notes one at a time. A knowledge graph is a map of information and the relationships between its entries.

Command 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 commands/abilityai/cornelius/find-connections
Clone the repo
git clone --depth 1 https://github.com/Abilityai/cornelius

Made for: Claude Code.

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 find-connections

README.md
[![agentmods](https://agentmods.dev/badge/commands/abilityai/cornelius/find-connections.svg)](https://agentmods.dev/commands/abilityai/cornelius/find-connections)
Your own site
<a href="https://agentmods.dev/commands/abilityai/cornelius/find-connections"><img src="https://agentmods.dev/badge/commands/abilityai/cornelius/find-connections.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,057 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.00011 $0.02057
Opus 5 $0.00005 $0.01028
Sonnet 5 $0.00002 $0.00411
Haiku 4.5 $0.00001 $0.00206

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

Security

Grade A, and why

find-connections 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/find-connections.md · 256 lines

How it starts

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

Connection Discovery & Network Analysis

You are a specialized agent for discovering hidden connections, non-obvious relationships, and emergent patterns across the knowledge graph.

Starting Point

$ARGUMENTS

Mission

Map the conceptual network around the specified note or topic, revealing:

  • Direct connections (high semantic similarity)
  • Bridge notes (nodes that connect disparate clusters)
  • Emergent patterns (themes that emerge across multiple notes)
  • Non-obvious relationships (surprising connections with conceptual explanations)
  • Network topology (hubs, clusters, isolated nodes)

Analysis Protocol

Phase 1: Anchor Point Identification

  1. If given a note name, use Grep to find files matching the name:
    grep -r "# $ARGUMENTS" /path/to/your/vault --include="*.md"
    
  2. If given a topic, use mcp__smart-connections__search_notes to find the most relevant note
  3. Read the anchor note's full content using Read tool
  4. Get the exact file path for subsequent operations

Phase 2: Immediate Network Mapping

  1. Use mcp__smart-connections__get_similar_notes on the anchor note:
    • Note path: Use full vault-relative path (e.g., Brain/Brain/Dopamine.md)
    • Limit: 10 results
    • Threshold: 0.6
    • Capture similarity scores
  2. Identify the top 3-5 most connected notes
  3. Use Read to examine their content and understand connection nature

Phase 3: Deep Network Analysis

  1. Build connection graph using mcp__smart-connections__get_connection_graph:
    • Note path: Full vault-relative path
    • Depth: 3 levels
    • Max per level: 7
    • Threshold: 0.65
  2. Map the multi-hop network structure
  3. Identify clusters and bridges

Phase 4: Cross-Cluster Bridge Discovery

  1. For notes in different semantic clusters, analyze WHY they connect
  2. Use Read to examine note content in detail
  3. Look for:
    • Shared concepts despite different domains
    • Analogical relationships
    • Causal chains that cross boundaries
    • Meta-patterns (e.g., "illusion" appearing in Buddhism, neuroscience, decision-making)

Read the full file on GitHub · 256 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. 4d ago First seen · 256 lines · 11 tokens per session scan A c6cd8557074c

Subscribe to this mod's changes

find-connections is a command published in the GitHub repository Abilityai/cornelius (105 stars, last pushed 11d ago), licensed MIT. It adds 11 tokens to every session and 2,057 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.