ingest

ingest is a command for Claude Code from trapoom555/claude-paperloom. It costs 36 tokens per session (2,695 once invoked), scanned A, original, Apache-2.0.

A fast command that fetches a research paper and creates a four-part first-pass summary: key takeaways, background, main idea, and critique.

In plain words
What is it for?
It helps import papers into a PaperLoom vault, extract their text, summarize them, record findings and metadata, and avoid reprocessing papers already stored there.
Why use it?
It gives readers a quick way to decide whether a paper deserves deeper reading, without processing figures or writing a full analysis.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-paperloom plugin — 4 commands, 4 agents shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add trapoom555/claude-paperloom
Claude Code
/plugin install claude-paperloom

Made for: Claude Code.

Or install claude-paperloom, the plugin that ships this one along with the rest of its 4 commands, 4 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/trapoom555/claude-paperloom/ingest.svg)](https://agentmods.dev/commands/trapoom555/claude-paperloom/ingest)
Your own site
<a href="https://agentmods.dev/commands/trapoom555/claude-paperloom/ingest"><img src="https://agentmods.dev/badge/commands/trapoom555/claude-paperloom/ingest.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 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,695 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.00036 $0.02695
Opus 5 $0.00018 $0.01347
Sonnet 5 $0.00007 $0.00539
Haiku 4.5 $0.00004 $0.00269

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

Security

Grade A, and why

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 6d 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.

commands/ingest.md · 241 lines

How it starts

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

/paperloom:ingest

Fast, triage-grade ingest. $ARGUMENTS is the paper reference.

Division of labor: the deterministic steps (fetch, parse, template fill, edge aggregation, logging, stub creation, citation matching) are done by Python scripts in ${CLAUDE_PLUGIN_ROOT}/scripts/. The LLM is used only for the three remaining semantic subagents: lite-drafter, finding-extractor, metadata-extractor. Per-item LLM loops are forbidden — if you find yourself running an agent N times for N items, stop and shell out to a script.

Step 0 — greet the user

Print exactly:

📖 Ingesting your paper — this will take a moment. Sit back, get cozy, and maybe grab a coffee ☕️

Step 1 — fetch + extract

Shell out. The script validates the vault, classifies the input, caches the raw file, and produces full + brief text:

"${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" "${CLAUDE_PLUGIN_ROOT}/scripts/fetch_paper.py" "<vault-path>" "$ARGUMENTS"

Parse the JSON result.

Early exit — duplicate paper. If the result has "already_exists": true, the paper is already in the vault (matched by arxiv-id, doi, or source-url). Do not run any further steps. Print a short message naming the existing slug, e.g.:

⏭️ This paper is already in your vault as papers/<existing.slug>.md — skipping ingest.

Then stop.

Otherwise, keep full_text_path, brief_text_path, findings_text_path, meta_text_path, source_url, arxiv_id, doi for later steps.

Step 2 — scan vault for context

Run these in parallel (they're independent reads):

"${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" "${CLAUDE_PLUGIN_ROOT}/scripts/vault_scan.py" fields  "<vault-path>"
"${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" "${CLAUDE_PLUGIN_ROOT}/scripts/vault_scan.py" papers  "<vault-path>"
"${CLAUDE_PLUGIN_ROOT}/.venv/bin/python3" "${CLAUDE_PLUGIN_ROOT}/scripts/vault_scan.py" authors "<vault-path>"

Hold the outputs: existing_fields, vault_papers, existing_authors.

Step 3 — fan-out: 2 LLM subagents (semantic-only)

Read the full file on GitHub · 241 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. 6d ago First seen · 241 lines · 36 tokens per session scan A b5ea7e12cd13

Subscribe to this mod's changes

ingest is a command published in the GitHub repository trapoom555/claude-paperloom (95 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 36 tokens to every session and 2,695 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.