get

get is a command for coding agents from zach-blumenfeld/knowledge-index. It costs 0 tokens per session (1,471 once invoked), scanned A, original, Apache-2.0.

A command for retrieving the metadata and text of one or more documents or sections from a knowledge index. A URI is the identifier used to locate each item.

In plain words
What is it for?
Use `ki get` to read selected Markdown documents or sections, choosing how much content to return with `--type`; use an outline command first for folders or vaults.
Why use it?
It turns search or outline results into the actual document text and can retrieve several items in one command. It also prevents using a text-retrieval command on folders or vaults.

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/zach-blumenfeld/knowledge-index/get
Clone the repo
git clone --depth 1 https://github.com/zach-blumenfeld/knowledge-index

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 get

README.md
[![agentmods](https://agentmods.dev/badge/commands/zach-blumenfeld/knowledge-index/get.svg)](https://agentmods.dev/commands/zach-blumenfeld/knowledge-index/get)
Your own site
<a href="https://agentmods.dev/commands/zach-blumenfeld/knowledge-index/get"><img src="https://agentmods.dev/badge/commands/zach-blumenfeld/knowledge-index/get.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,471 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.00000 $0.01471
Opus 5 $0.00000 $0.00736
Sonnet 5 $0.00000 $0.00294
Haiku 4.5 $0.00000 $0.00147

Measured 3d ago against content hash 99f97ad196f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

get 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 3d 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.

docs/commands/get.md · 132 lines

How it starts

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

How ki get works

ki get <uri> [<uri> …] fetches a node's metadata and content by uri. It's the retrieval end of the loop: ki search and ki outline hand you uris (and optionally some content in the case of ki search); ki get turns a uri into the actual text. For the profile/vault model it shares with the other read commands, see docs/scoping.md; for search, docs/commands/search.md.


1. What it takes, what it returns

  • Input: one or more Document or Section uris (batch as many as you like).
  • Output: a metadata shell per uri, plus content controlled by --type.

Only :Document and :Section uris are valid — those are the nodes that carry text. A :Folder or :Vault uri is a clear error with a redirect:

error: ki get is for text retrieval but you passed a Folder (my-notes/ideas).
       Use 'ki outline my-notes/ideas' to enumerate contents recursively under folder.

Use ki outline to enumerate a folder/vault; ki vault list to see vaults.


2. The three --type levels

--type controls how much content rides along on the metadata shell:

--type Content returned Use when
path none (shell only — uri, name, path, …) you just want the on-disk path / metadata, then read the file yourself
content (default-ish) the node's own content — its preamble + uri: pointers to direct children you want a shallow view and may drill further
full the reconstructed reading-order body of the whole subtree you want everything under the node in one shot

The content level reflects ki's Content Construction Rules (see docs/data-model/schema.md): a node stores only the body text directly under its own heading, followed by uri: pointer lines to its direct children. So --type content is shallow by design — child body text isn't included; you see pointers and can ki get those next.

The full level does that reconstruction for you, server-side, in one query (no client-side recursion):

Read the full file on GitHub · 132 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. 3d ago First seen · 132 lines · 0 tokens per session scan A 99f97ad196f5

Subscribe to this mod's changes

get is a command published in the GitHub repository zach-blumenfeld/knowledge-index (6 stars, last pushed 9d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,471 tokens. 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.