knowledge-index AGENTS.md

knowledge-index AGENTS.md is an instructions file for Codex, OpenCode from zach-blumenfeld/knowledge-index. It costs 3,921 tokens per session, scanned C, original, Apache-2.0.

Project instructions for knowledge-index, a command-line tool that indexes Markdown notes into a searchable knowledge graph. A knowledge graph connects related pieces of information so they can be searched and navigated.

In plain words
What is it for?
Use them when changing commands, profiles, vaults, configuration, the Markdown parser, or the data model.
Why use it?
They tell a coding agent how the project is designed and which rules changes must follow, reducing the chance of breaking its indexing and search model.

Instructions file for CodexOpenCode

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

Made for: Codex, OpenCode.

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 knowledge-index AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zach-blumenfeld/knowledge-index/agents-md.svg)](https://agentmods.dev/instructions/zach-blumenfeld/knowledge-index/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zach-blumenfeld/knowledge-index/agents-md"><img src="https://agentmods.dev/badge/instructions/zach-blumenfeld/knowledge-index/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,921 This file is loaded in full into every session.
When invoked 3,921 The same file — it is already loaded in full.
Security scan C 2 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.03921 $0.03921
Opus 5 $0.01961 $0.01961
Sonnet 5 $0.00784 $0.00784
Haiku 4.5 $0.00392 $0.00392

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

Security

Grade C, and why

knowledge-index AGENTS.md scanned grade C with 2 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 4d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

| `install.sh` | One-command installer (`curl -sSfL https://knowledge-index.ai/install.sh \| bash`): uv → `ki` → `neo4j-cli` → agent skills. Idempotent. Served verbatim at the install URL. |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `install.sh` | One-command installer (`curl -sSfL https://knowledge-index.ai/install.sh \| bash`): uv → `ki` → `neo4j-cli` → agent skills. Idempotent. Served verbatim at the install URL. |
AGENTS.md · 136 lines

How it starts

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

AGENTS.md

Instructions for AI agents (Claude, Codex, Cursor, etc.) working on the knowledge-index codebase. If you are an agent being asked by a user to use ki (index their notes, search their knowledge base, etc.), read skills/knowledge-base/SKILL.md instead.

What this repo is

knowledge-index (CLI: ki) is a search index over a folder of markdown, backed by Neo4j — it syncs the filesystem into a knowledge graph and serves fast search / navigation / retrieval. The primitive verbs are ki index (sync) and ki search (query); read/navigation (ki outline [alias ki tree], ki get, ki status, ki vault list), index removal (ki drop, ki nuke), and setup (ki configure, ki profile list, ki init, ki skill) sit on top.

Canonical design lives in docs/scoping.md (profiles, vaults, config, the command surface, and the local/remote scoping model) and docs/general-philosophy.md (the tenets); the schema is docs/data-model/schema.md. docs/README.md indexes everything.

Non-negotiable design principles

These constrain every change you make. If a proposed feature violates one of these, reject the proposal rather than working around it.

  1. ki is an index, not a document store. Never mutate user-owned source files (.md). All ki output lives in ~/.config/ki/ (config), Neo4j (the index), or .ki/vault.yaml (vault identity + optional user-authored description per vault). ki writes the uri: field on first creation and otherwise touches user-authored fields only when the user explicitly asks via a flag (ki index --description "..." writes description:; without the flag, ki is read-only). No --purge flag, no "auto-organize my notes," no rewriting frontmatter. See docs/general-philosophy.md.
  2. The backend is opaque to the user. From the user's and the agent-as-user's perspective, ki is a search tool. They don't need to know about Cypher, Neo4j, or graph traversal. Don't surface backend concepts (Cypher errors, node labels, etc.) in default output.
  3. One source of truth per concern. Config lives at ~/.config/ki/config.yaml; vault identity + per-vault user metadata live in .ki/vault.yaml; graph data lives in Neo4j. Don't introduce parallel state.
  4. Safe by default, dangerous by flag. Destructive operations (whole-vault removal) require explicit flags AND typed confirmation. Cloud-resource creation (Aura) requires explicit consent even on agent auto-mode. See docs/general-philosophy.md (safe by default) and skills/knowledge-base/SKILL.md (agent auto-mode rules).

Read the full file on GitHub · 136 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. 4d ago First seen · 136 lines · 3,921 tokens per session scan C 7c6e7a426681

Subscribe to this mod's changes

knowledge-index AGENTS.md is an instructions file published in the GitHub repository zach-blumenfeld/knowledge-index (6 stars, last pushed 10d ago), licensed Apache-2.0. It adds 3,921 tokens to every session, about $0.0196 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.