consult

A command for consulting a local collection of private and public source documents, such as papers, PDFs, books, and repository notes. It records which source informed each decision but does not publish the sources.

In plain words
What is it for?
Use it when checking what the local source collection says or when prior research should inform a design decision.
Why use it?
It preserves decision provenance while protecting confidential material from being copied into tracked files or external messages.

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/consult
Clone the repo
git clone --depth 1 https://github.com/intentdriven/abcd
Per session 84 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,034 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.00084 $0.01034
Opus 5 $0.00042 $0.00517
Sonnet 5 $0.00017 $0.00207
Haiku 4.5 $0.00008 $0.00103

Measured yesterday against content hash 1116c0882c13, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

consult 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/consult.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.

Consult sources

A local-only corpus at ~/.abcd/sources/ holds source documents (working papers, private-repo notes, PDFs, books) the agent may consult but must never cite publicly. Metadata lives in sources.json (CSL-JSON; the custom block carries confidential, permission_status, keywords, aliases). Full details: ~/.abcd/sources/README.md. If the corpus is absent, say so and stop — this command never creates it.

Hard rule (overrides convenience, always)

For any entry with custom.confidential: true: never write its title, author names, aliases, or any identifying string into anything tracked by git or sent anywhere external — commits, commit messages, PR/issue text, docs, code comments, published artifacts, pasted output. This covers identifying paraphrase too: do not describe a confidential source so specifically that a reader could identify it ("a forthcoming paper showing X beats Y on Z", a private repo's distinctive architecture) — the mechanical guards catch literal strings only; this rule is the paraphrase layer. Refer generically ("a working paper on X", "prior private work"). The ledger holds the real reference; citation is the user's manual decision, made when permission exists (public citation requires BOTH the source's permission_status AND the ledger line's cited_publicly flag).

Conversation with the user is fine — discuss confidential sources freely there.

Consult

  1. Search the corpus: grep -ril "<term>" ~/.abcd/sources/confidential/ ~/.abcd/sources/public/ — try keywords, author surnames, and CSL keys. The path IS the classification: any hit under confidential/ falls under the hard rule above. Each source is a folder (<class>/<key>/) holding original.<ext>, text.md, and any summaries/notes.
  2. Read matched files freely for conversation; the folder's class governs what may leave it.
  3. If nothing relevant surfaces, say so — do not pad.

To add a source, use /abcd:ingest.

Record influence (the ledger)

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 · 84 tokens per session scan A 1116c0882c13

Subscribe to this mod's changes

consult is a command published in the GitHub repository intentdriven/abcd (3 stars, last pushed 2d ago), licensed MIT. It adds 84 tokens to every session and 1,034 once invoked, about $0.0004 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