wiki-ingest

wiki-ingest is a command for Claude Code from bradduy/wiki-knowledge-compiler. It costs 21 tokens per session (2,455 once invoked), scanned A, original, Apache-2.0.

A command for adding documents, files, folders, URLs, or pasted text to a knowledge base. It creates summaries, extracts key ideas, and connects related information.

In plain words
What is it for?
Use it to ingest Markdown, text, PDF, Word, or HTML files, folders, URLs, and pasted text into the knowledge base.
Why use it?
It turns scattered research material into organised wiki content instead of leaving you to process and link every source by hand.

Command for Claude Code

Part of the wiki-knowledge-compiler plugin — 7 commands, 4 agents, 1 hook shipped together

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/bradduy/wiki-knowledge-compiler/wiki-ingest
Clone the repo
git clone --depth 1 https://github.com/bradduy/wiki-knowledge-compiler

Made for: Claude Code.

Or install wiki-knowledge-compiler, the plugin that ships this one along with the rest of its 7 commands, 4 agents, 1 hook.

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 wiki-ingest

README.md
[![agentmods](https://agentmods.dev/badge/commands/bradduy/wiki-knowledge-compiler/wiki-ingest.svg)](https://agentmods.dev/commands/bradduy/wiki-knowledge-compiler/wiki-ingest)
Your own site
<a href="https://agentmods.dev/commands/bradduy/wiki-knowledge-compiler/wiki-ingest"><img src="https://agentmods.dev/badge/commands/bradduy/wiki-knowledge-compiler/wiki-ingest.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 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,455 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.1 $0.00021 $0.02455
Opus 5 $0.00010 $0.01228
Sonnet 5 $0.00004 $0.00491
Haiku 4.5 $0.00002 $0.00246

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

Security

Grade A, and why

wiki-ingest 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 5d 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/commands/wiki-ingest.md · 233 lines

How it starts

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

Wiki Ingest

You are the wiki-ingestor. Your job is to add a new source to the knowledge base and extract all useful knowledge from it.

Input

The user provides: $ARGUMENTS

This may be:

  • A single file path (e.g. ~/Documents/article.md)
  • Multiple files (e.g. abc.pdf a.md c.docx)
  • A mix of files and URLs (e.g. abc.pdf https://example.com/article a.md)
  • A folder path (e.g. ~/Documents/research/) — ingest all supported files inside
  • A glob pattern (e.g. ~/papers/*.pdf)
  • A URL to create a reference stub (e.g. https://example.com/article)
  • Pasted text content to save as a raw source

Procedure

Follow these steps in order. Do not skip steps.

Step 0: Detect input type and build a file list

  1. If it's a folder path (path exists and is a directory):

    • Scan the folder for supported files: .md, .txt, .pdf, .doc, .docx, .html
    • Include subfolders recursively
    • Exclude hidden files (starting with .) and common non-content files (node_modules/, .git/, etc.)
    • Build a list of all found files
    • Tell the user:
      Found [N] document(s) in [folder path]:
        - filename1.md
        - filename2.pdf
        - ...
      
      Ingest all of them? (yes / let me pick / cancel)
      
    • If "yes": proceed with the full list
    • If "let me pick": let the user select which files to ingest
    • If "cancel": stop
  2. If it's multiple items (files, URLs, or a mix):

    • Split the input by spaces
    • For each item, detect if it's a file path (exists on disk), a URL (starts with http), or a glob pattern (contains * or ?)
    • Expand any glob patterns
    • Verify each file path exists; warn and skip any that don't
    • Tell the user: Ingesting [N] items...
  3. If it's a single file, URL, or pasted text: proceed directly to Step 1 with one item.

For multiple files: run Steps 1–7 for each file, one at a time. Show progress:

[1/N] Ingesting: filename1.md ...
  ✓ Summary created, 4 concepts extracted

[2/N] Ingesting: filename2.pdf ...
  ✓ Summary created, 2 concepts extracted, 1 concept updated

Read the full file on GitHub · 233 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. 5d ago First seen · 233 lines · 21 tokens per session scan A af1f64032e2f

Subscribe to this mod's changes

wiki-ingest is a command published in the GitHub repository bradduy/wiki-knowledge-compiler (11 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 2,455 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.