kivgraph AGENTS.md

Repository guidance for Kivgraph, a tool that builds and displays a graph of code relationships. It explains which rules apply to each folder and how the Go, Rust, TypeScript, and web parts fit together.

In plain words
What is it for?
Use it when changing project indexing, graph data, language loaders, MCP tools, the command-line program, or the web viewer.
Why use it?
It helps coding agents follow the right instructions for each part of a multi-language codebase and avoid using unsuitable search or indexing methods.

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/luqueee/kivgraph/agents-md
Clone the repo
git clone --depth 1 https://github.com/Luqueee/kivgraph

Made for: Codex, OpenCode.

Per session 9,652 This file is loaded in full into every session.
When invoked 9,652 The same file — it is already loaded in full.
Security scan B 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.09652 $0.09652
Opus 5 $0.04826 $0.04826
Sonnet 5 $0.01930 $0.01930
Haiku 4.5 $0.00965 $0.00965

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

Security

Grade B, and why

kivgraph AGENTS.md scanned grade B 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`~/.claude/settings.json`: comparte fichero con `claude-code` e instalar uno

Makes network callslowCapability

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

escriben `curl` ni `tar`.
AGENTS.md · 672 lines

How it starts

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

Instrucciones de desarrollo de Kivgraph

Estas reglas aplican a todo el repositorio. Una instrucción más cercana a un archivo puede añadir restricciones, pero no puede relajar los contratos de integridad, compatibilidad o verificación descritos aquí.

Mapa de instrucciones

Este archivo se lee siempre. Los demás cubren un directorio y se leen al trabajar en él; ninguno repite lo que ya está aquí ni lo contradice.

directorio archivo qué cubre
internal/ internal/AGENTS.md carga de Go, la pasada, caché de hechos, grafo canónico, generaciones, configuración, procesos
internal/mcp/ internal/mcp/AGENTS.md superficie de tools, index_project, la skill, coste en tokens
internal/rustloader/ internal/rustloader/AGENTS.md rust-analyzer scip, identidad SCIP, sysroot, descubrimiento Cargo
cmd/kivgraph/ cmd/kivgraph/AGENTS.md ayuda, registro, index [--full], clean, stop, ui
ts-worker/ ts-worker/AGENTS.md worker TypeScript e identidad cross-repository
web/ web/AGENTS.md el visor: layout, dibujo, coste por fotograma
landing/ landing/AGENTS.md landing y documentación de usuario: capas, paleta, SEO, iconos
benchmarks/ benchmarks/AGENTS.md informes, corpus y auditorías

Un invariante que se infringe desde otro directorio vive aquí, no en el archivo del directorio que nombra: que landing/ no entre en ningún bundle se rompe editando scripts/build-bundle.sh.

Identidad del proyecto

  • Proyecto: Kivgraph.
  • Módulo Go: github.com/Luqueee/kivgraph.
  • Ejecutable principal: cmd/kivgraph.
  • Worker TypeScript: ts-worker/, paquete privado @kivgraph/ts-worker.
  • LadybugDB es el almacenamiento canónico; el HotSnapshot es una proyección derivada y no una fuente alternativa de hechos.
  • Los identificadores históricos LUQUE-#### del backlog no se renombran.

Qué pregunta contesta cada tool de Kivgraph

Este bloque es el canal de enrutado portable: CLAUDE.md es un enlace a este fichero, así que Oh My Pi y Claude Code lo cargan los dos sin que nadie lo pida. El campo instructions del servidor dice lo mismo, y Zed no lo lee.

Read the full file on GitHub · 672 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. 2d ago First seen · 672 lines · 9,652 tokens per session scan B 8f41d1419615

Subscribe to this mod's changes

kivgraph AGENTS.md is an instructions file published in the GitHub repository Luqueee/kivgraph (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 9,652 tokens to every session, about $0.0483 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.