ingest

A command for registering URLs or local documents in a user-level source collection, with extracted reference details, keywords, and a text-quality check.

In plain words
What is it for?
Use it to add a web page, paper, or document to the source corpus for later consultation and citation.
Why use it?
It handles fetching and storing source material while leaving metadata cleanup, keyword judgment, confidentiality decisions, and quality review to you.

Command

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/intentdriven/abcd/ingest
Clone the repo
git clone --depth 1 https://github.com/intentdriven/abcd
Per session 92 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,045 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 $0.00092 $0.01045
Opus 5 $0.00046 $0.00522
Sonnet 5 $0.00018 $0.00209
Haiku 4.5 $0.00009 $0.00104

Measured yesterday against content hash e6a787ad8e2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

commands/ingest.md · 81 lines

How it starts

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

Ingest a source

Register a URL or local document in the corpus at ~/.abcd/sources/. The script does the deterministic half (fetch, convert, store, guard); you do the judgment half (clean metadata, real keywords, confidentiality, quality check). Corpus contract: ~/.abcd/sources/README.md. The confidentiality hard rule from /abcd:consult applies here in full. If the corpus is absent, say so and stop — this command never creates it.

1. Read the document first

  • URL: WebFetch it (metadata + a skim of the content). A local fetch for storage happens in step 3 regardless — WebFetch is for your judgment only.
  • Local file: Read it (PDFs via the Read tool; big files: first pages suffice).

Extract: exact title (no site suffixes), authors (each as Family, Given), publication year, venue, canonical URL. Map the type to CSL: article-journal (papers), webpage (posts/docs), book, report (white papers, internal docs), motion_picture (video).

2. Decide class and key

  • Class. Web content is public by default. Signals for --confidential: the user says so; it is their own unpublished/submitted work; internal or NDA material; AI-generated content (never citable); a private repo's documentation. When confidential, ask the user for every identifying name variant (--aliases — repo names, codenames, domains) and pick --permission: no-public-citation, internal-never-cite, ai-generated-never-cite, or ask-author.
  • Titles of confidential entries become banned phrases (whole title, whitespace-flexible). For internal artifacts whose natural title reads like normal prose, register a distinctive title instead — e.g. "meeting-notes-2026-07 (internal)" — so the ban cannot trip on legitimate text.
  • Key: <authorfamily><year><distinctiveword>, lowercase ASCII (e.g. naur1985theory). Check uniqueness: jq -r '.[].id' ~/.abcd/sources/sources.json.

3. Register

~/.abcd/sources/bin/add-source --key <key> --title "<title>" \
  --type <csl-type> [--author "Family, Given"]... [--year YYYY] \
  --keywords "<k1, k2, ...>" [--aliases "a,b"] [--confidential] \
  [--permission <status>] [--url <url>] [file]

Read the full file on GitHub · 81 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. yesterday First seen · 81 lines · 92 tokens per session scan A e6a787ad8e2f

Subscribe to this mod's changes

ingest is a command published in the GitHub repository intentdriven/abcd (3 stars, last pushed 2d ago), licensed MIT. It adds 92 tokens to every session and 1,045 once invoked, about $0.0005 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 commands, from other repositories