graph-analyst

graph-analyst is an agent for Claude Code from tonydzi/second-brain-starter-kit. It costs 61 tokens per session (414 once invoked), scanned A, original, MIT.

A read-only tool that measures the link structure of a note vault, such as a personal knowledge base. It reports unlinked notes, heavily connected hubs, isolated groups, and older concept notes using counts and percentages.

In plain words
What is it for?
Use it for monthly health checks, after importing many notes, or when the vault stops giving complete answers. It lists orphan notes, disconnected groups, overloaded hubs, and concepts that may need review.
Why use it?
It shows when a vault's links are too sparse, fragmented, or out of date, without changing any notes. This helps explain why searching or retrieving answers from the vault may miss useful information.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the second-brain-skills plugin — 248 skills, 3 agents, 1 plugin shipped together

Good fit Use it for monthly health checks, after importing many notes, or when the vault stops giving complete answers. It lists orphan notes, disconnected groups, overloaded hubs, and concepts that may need review.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tonydzi/second-brain-starter-kit/graph-analyst
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.

Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 248 skills, 3 agents, 1 plugin.

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 graph-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/tonydzi/second-brain-starter-kit/graph-analyst/github.svg)](https://agentmods.dev/agents/tonydzi/second-brain-starter-kit/graph-analyst)
Your own site
<a href="https://agentmods.dev/agents/tonydzi/second-brain-starter-kit/graph-analyst"><img src="https://agentmods.dev/badge/agents/tonydzi/second-brain-starter-kit/graph-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graph-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/tonydzi/second-brain-starter-kit/graph-analyst"><img src="https://agentmods.dev/badge/agents/tonydzi/second-brain-starter-kit/graph-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00061 $0.00414
Opus 5.5 $0.00024 $0.00166
Sonnet 5.5 $0.00012 $0.00083
Haiku 4.5 $0.00006 $0.00041

Measured yesterday against content hash eac193527c51, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

graph-analyst 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 yesterday.

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.

agents/graph-analyst.md · 18 lines

What it actually says

You measure the shape of the graph and say what the numbers mean. You do not fix anything.

Build the graph from [[wikilinks]] (target before any | or #), skipping hidden folders, templates, raw archives and generated output. First map every note's file name and every entry in its frontmatter aliases to that note, case-insensitively, and resolve each link through this map: a link to an alias is a link to the note, not a missing page. Then report:

  • Orphan rate - notes with no inbound links, as a share of all notes. Under 5% is healthy; over 15% means imports stopped linking. List the orphans.
  • Average degree - links per note. Roughly 3 to 8 is the working range; under 2 the graph cannot do better than plain search.
  • Main component - share of notes in the largest connected group. Under about 80% means answers will be quietly incomplete; name the islands.
  • Hubs - the five notes with the most inbound links. A hub that links to everything says nothing: suggest which specific ideas it should split into.
  • Stale concepts - concept notes whose updated (or date when there is no updated) is older than 90 days while new sources on the same topic kept arriving. Say how many notes had neither.

Give the counts you actually computed and say how you computed them. If a number could not be computed (no frontmatter, unreadable files), write not computed: <why> instead of estimating.

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. yesterday First seen · 18 lines · 61 tokens per session scan A eac193527c51

Subscribe to this mod's changes

graph-analyst is an agent published in the GitHub repository tonydzi/second-brain-starter-kit (12 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 414 once invoked, about $0.0002 per session on Opus 5.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-10-21.

Related

Other agents, from other repositories

wiki-lint

Read-only interpreter for the deterministic portable vault linter. Runs the linter against an explicitly selected vault or scope, validates surprising findings against source pages, and returns a structured health report. It never writes reports or repairs the vault.

AgriciDaniel/claude-obsidian · 50 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Modernization Agent

Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.

github/awesome-copilot · 24 tokens