vault-deduplicator

vault-deduplicator is an agent for Claude Code from paulrobello/parsidion. It costs 117 tokens per session (1,042 once invoked), scanned A, original, MIT.

An automated tool for finding notes in a Parsidion vault that contain nearly the same information, reviewing those matches, and merging confirmed duplicates. A vault is a collection of stored notes, and the tool rebuilds its search index after merging.

In plain words
What is it for?
Use it to scan a Parsidion vault for duplicate or near-duplicate notes, merge approved pairs, and refresh the vault index.
Why use it?
It reduces repeated notes and keeps related information in one place. It also handles chains of duplicates in the correct order so merged content is not missed.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Good fit Use it to scan a Parsidion vault for duplicate or near-duplicate notes, merge approved pairs, and refresh the vault index.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/paulrobello/parsidion/vault-deduplicator
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/paulrobello/parsidion

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 vault-deduplicator

README.md
[![agentmods](https://agentmods.dev/badge/agents/paulrobello/parsidion/vault-deduplicator/github.svg)](https://agentmods.dev/agents/paulrobello/parsidion/vault-deduplicator)
Your own site
<a href="https://agentmods.dev/agents/paulrobello/parsidion/vault-deduplicator"><img src="https://agentmods.dev/badge/agents/paulrobello/parsidion/vault-deduplicator/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 vault-deduplicator

Your own site · 80×15
<a href="https://agentmods.dev/agents/paulrobello/parsidion/vault-deduplicator"><img src="https://agentmods.dev/badge/agents/paulrobello/parsidion/vault-deduplicator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,042 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.00117 $0.01042
Opus 5 $0.00059 $0.00521
Sonnet 5 $0.00023 $0.00208
Haiku 4.5 $0.00012 $0.00104

Measured 9d ago against content hash 5e4cebb15f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

vault-deduplicator 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 9d 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.

agents/vault-deduplicator.md · 113 lines

How it starts

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

You are a vault deduplication specialist. Your job is to scan the resolved Parsidion vault for near-duplicate note pairs, evaluate whether each pair should be merged, execute confirmed merges, and rebuild the index when done.

Procedure

Step 1 — Scan

Run the duplicate scan:

vault-merge --scan 2>&1

This lists pairs sorted by cosine similarity (highest first). Each entry shows:

  • Similarity score (0.0–1.0)
  • Folder/stem for Note A and Note B
  • The suggested merge command

Step 2 — Identify Chains

Before evaluating, inspect the list for chain dependencies — cases where the same stem appears as both NOTE_A in one pair and NOTE_B in another. These must be processed in order within a group (do not run them in parallel).

Example chain: foo-0929 + foo-0843 → then foo + foo-0929. After the first merge, foo-0929 holds the combined content; the second merge absorbs it into the base name foo.

Step 3 — Batch into Parallel Groups

Group independent pairs (no shared stems) into batches of up to 5. Launch each batch as a parallel subagent using the Agent tool with model: haiku. Chains must stay within a single sequential agent.

For each pair in a batch, the subagent must:

  1. Read both notes (use the Read tool on their full paths).
  2. Evaluate: Do they cover the same topic/content? Key signals for YES:
    • Same or very similar frontmatter (same session_id, same tags)
    • One is a timestamped variant of the other (e.g. foo-0929 vs foo)
    • Body content is largely identical or one is a strict subset of the other
  3. Decide: If YES → merge. If genuinely distinct content/context → skip.
  4. Execute merge (if valid):
    vault-merge NOTE_A NOTE_B --no-index --execute
    
    Preferred NOTE_A = the base name (no timestamp suffix), so it survives. If both have timestamps, NOTE_A = the one with more complete content.
  5. Report decision + one-line reason per pair.

Step 4 — Rebuild Index

Read the full file on GitHub · 113 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. 9d ago First seen · 113 lines · 117 tokens per session scan A 5e4cebb15f27

Subscribe to this mod's changes

vault-deduplicator is an agent published in the GitHub repository paulrobello/parsidion (10 stars, last pushed today), licensed MIT. It adds 117 tokens to every session and 1,042 once invoked, about $0.0006 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-31.

Related

Other agents, from other repositories

context-finder

Read-only, memory- and index-aware codebase search. Use for any investigation — "where is X", "how does Y work", "what calls Z", "is W still used", "where is V configured", "does this event/pattern get emitted anywhere" — BEFORE reaching for grep. Consults the knowledge graph, code index, and prior session memory…

futuregerald/futuregerald-claude-plugin · 111 tokens

wiki-ingest

Use this agent when ingesting URLs, files, or pasted text into the vault during automated maintenance cycles. Typical triggers include dev-loop IDLE DISCOVERY ingestion, batch source processing, or converting raw captures to typed-knowledge pages. See "When to invoke" in the agent body for worked scenarios.

karlorz/llm-wiki · 64 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 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

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