ingest_raw

ingest_raw is a command for Claude Code from songzhuozhu/obsidian-llm-wiki. It costs 32 tokens per session (824 once invoked), scanned A, original, MIT.

A command for processing queued source files into a wiki. It reads the project’s instructions and indexes, adds source summaries or updates to the wiki, and leaves the raw files awaiting review.

In plain words
What is it for?
Use it to ingest the next queued source or related batch, update the relevant wiki pages, and record the work for later review.
Why use it?
It turns unprocessed source material into organized knowledge while keeping the original files available for confirmation.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions AGENTS.md.

Good fit Use it to ingest the next queued source or related batch, update the relevant wiki pages, and record the work for later review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/songzhuozhu/obsidian-llm-wiki/ingest_raw
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/songzhuozhu/obsidian-llm-wiki

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 ingest_raw

README.md
[![agentmods](https://agentmods.dev/badge/commands/songzhuozhu/obsidian-llm-wiki/ingest_raw/github.svg)](https://agentmods.dev/commands/songzhuozhu/obsidian-llm-wiki/ingest_raw)
Your own site
<a href="https://agentmods.dev/commands/songzhuozhu/obsidian-llm-wiki/ingest_raw"><img src="https://agentmods.dev/badge/commands/songzhuozhu/obsidian-llm-wiki/ingest_raw/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 ingest_raw

Your own site · 80×15
<a href="https://agentmods.dev/commands/songzhuozhu/obsidian-llm-wiki/ingest_raw"><img src="https://agentmods.dev/badge/commands/songzhuozhu/obsidian-llm-wiki/ingest_raw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 824 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.00032 $0.00824
Opus 5 $0.00016 $0.00412
Sonnet 5 $0.00006 $0.00165
Haiku 4.5 $0.00003 $0.00082

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

Security

Grade A, and why

ingest_raw 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 12d 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-en/commands/ingest_raw.md · 65 lines

What it actually says

Command: ingest_raw

You are the knowledge-maintenance agent for inspool-wiki-en/. Follow inspool-wiki-en/AGENTS.md strictly.

Task for this run: process the next ingest unit in inspool-wiki-en/raw/unprocessed/ and integrate it into the wiki.

Important: this run performs ingest only. Do not archive raw files yet. They must remain in pending_review until the user confirms the result.

Execute in this order:

  1. Read inspool-wiki-en/AGENTS.md.
  2. Review inspool-wiki-en/raw/index.md, inspool-wiki-en/wiki/index.md, and inspool-wiki-en/wiki/log.md.
  3. Scan inspool-wiki-en/raw/unprocessed/.
  4. Select the next ingest unit using this priority:
    • files in the same subfolder
    • files sharing the same ingest_group
    • otherwise, a single file
  5. If multiple ingest units are possible, choose the oldest queued batch; if that is unclear, choose the first in lexical order.
  6. If the selected unit is a batch, verify that the files are actually related. If the batch is too large, split it into smaller batches of 2 to 5 files.
  7. Extract the core information from that source or source batch.
  8. Create or update the relevant source summary pages in inspool-wiki-en/wiki/sources/ and treat them as evidence nodes.
  9. Create or update the related entity, concept, and synthesis pages.
  10. Add necessary [[wiki links]], and prefer linking key claims to [[sources/...]] or [[sources/...#some-section]].
  11. Maintain frontmatter relationship fields on core pages such as supports, contradicts, related_entities, related_concepts, and related_sources.
  12. Update inspool-wiki-en/wiki/index.md.
  13. Append an ingest log entry to inspool-wiki-en/wiki/log.md.
  14. Update workflow fields for every raw file in the ingest unit, for example:
  • processing_status: pending_review
  • reviewed_at:
  • processed_at:
  • processed_into: <corresponding source page path>
  1. Update inspool-wiki-en/raw/index.md.
  2. Tell the user explicitly that this batch is now in pending_review.

Constraints:

  • the body content under raw/ is read-only by default
  • attach source-page references to important conclusions whenever possible
  • prefer local source pages over external URLs as primary graph edges
  • remain compatible with user-created subfolders under wiki/concepts/, wiki/entities/, and wiki/synthesis/
  • mark uncertain material as "to be confirmed" or an open question
  • if a new source conflicts with older pages, record the conflict explicitly instead of silently overwriting it
  • do not stop after creating a single summary page; maintain the related pages together
  • raw files may be marked pending_review only after wiki/index.md, wiki/log.md, and raw/index.md are all updated successfully
  • process one ingest unit at a time; if it is a batch, keep it small and coherent
  • do not move raw files to processed/ without user approval

If inspool-wiki-en/raw/unprocessed/ is empty:

  • say clearly that there is nothing to process
  • do not create empty logs or pages
  • stop there

Output requirements:

  • summarize which ingest unit you selected and which pages you plan to update
  • summarize what was added or updated
  • state clearly which raw files are now in pending_review
  • call out insufficient evidence or naming conflicts if you find them
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. 12d ago First seen · 65 lines · 32 tokens per session scan A ca160fdffdbb

Subscribe to this mod's changes

ingest_raw is a command published in the GitHub repository songzhuozhu/obsidian-llm-wiki (121 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 824 once invoked, about $0.0002 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.