outline

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

A command that prints a table-of-contents-style view of a knowledge vault’s hierarchy and cross-references. A knowledge vault is a collection of linked documents, and each entry includes a stable URI for further lookup.

In plain words
What is it for?
Use it to inspect the vault structure, limit the displayed depth or scope, and save the rendered outline by redirecting the command’s output to a file.
Why use it?
It gives people and agents a quick map of the vault and makes linked documents easier to find.

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/outline
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 outline

README.md
[![agentmods](https://agentmods.dev/badge/commands/zach-blumenfeld/knowledge-index/outline.svg)](https://agentmods.dev/commands/zach-blumenfeld/knowledge-index/outline)
Your own site
<a href="https://agentmods.dev/commands/zach-blumenfeld/knowledge-index/outline"><img src="https://agentmods.dev/badge/commands/zach-blumenfeld/knowledge-index/outline.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 6,104 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.06104
Opus 5 $0.00000 $0.03052
Sonnet 5 $0.00000 $0.01221
Haiku 4.5 $0.00000 $0.00610

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

Security

Grade A, and why

outline 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 5d 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/outline.md · 369 lines

How it starts

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

Outline format for ki outline

The default output of ki outline is a table-of-contents-style render of the vault's containment hierarchy plus its cross-references. It is intended to be readable by both humans and agents: the eye scans display names on the left, and an agent can pick out URIs from a stable right-most column.

The command was previously ki tree. ki tree is now a permanent alias for ki outline — same flags, same output. The format spec below uses ki outline throughout; replace mentally with ki tree if you're reading older transcripts.

This document defines the rendered format. Scope and flag semantics (which profile/vault, the positional <uri>, --profile, --depth, back-compat --at) follow docs/scoping.md and the Scoping section just below; the underlying Cypher (B.12) lives in docs/data-model/retrieval-queries.md.

ki outline writes the rendered format to stdout. To save it to a file, pipe (ki outline > outline.txt) — there is no separate output-format flag.

Scoping

ki outline resolves which profile and vault(s) to render the same way the other read commands do (see docs/scoping.md). The positional <uri> is its render root — outline renders that node and everything under it. (This is outline's analog to ki search --under, but it selects the root to render from, not a filter applied to matches.)

  • Local (default) — in a vault, no flags: profile + vault come from the working dir (cwd, or -C <dir>).
    • ki outline <uri> → render that vault / folder / document / section subtree.
    • ki outline (no uri) → render the vault you're in.
  • Remote (--profile) — reach a profile you're not standing in:
    • ki outline --profile P → render all vaults in P (multi-root; see Multi-root below).
    • ki outline --profile P <uri> → render that subtree (the uri names the vault).
  • -C <dir> relocates the working dir for resolution; --at <uri> is a back-compat alias for the positional <uri>.

Read the full file on GitHub · 369 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. 5d ago First seen · 369 lines · 0 tokens per session scan A 39c28377f522

Subscribe to this mod's changes

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