kin GEMINI.md

kin GEMINI.md is an instructions file for Gemini CLI from firelock-ai/kin. It costs 695 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Kin that explain how to query its code graph, a structured map of code entities and their relationships. They describe which search or graph operation to choose for symbols, behavior, callers, dependencies, and data flow.

In plain words
What is it for?
Use them to locate symbols, rank code by behavior, inspect an entity and its imports, find references, explore dependencies, and trace how data moves through the repository.
Why use it?
They help agents find and understand code through Kin’s modeled relationships instead of defaulting to text search or reading whole files.

Instructions file for Gemini CLI

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/firelock-ai/kin/gemini-md
Clone the repo
git clone --depth 1 https://github.com/firelock-ai/kin

Made for: Gemini CLI.

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 kin GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/firelock-ai/kin/gemini-md.svg)](https://agentmods.dev/instructions/firelock-ai/kin/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/firelock-ai/kin/gemini-md"><img src="https://agentmods.dev/badge/instructions/firelock-ai/kin/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 695 This file is loaded in full into every session.
When invoked 695 The same file — it is already loaded in full.
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.00695 $0.00695
Opus 5 $0.00347 $0.00347
Sonnet 5 $0.00139 $0.00139
Haiku 4.5 $0.00069 $0.00069

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

Security

Grade A, and why

kin GEMINI.md 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 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.

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.

GEMINI.md · 53 lines

How it starts

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

Kin: read the repository from the graph

Kin parses a repository into entities, relationships, changes, and provenance, and answers from that graph. Prefer these tools over grep and whole-file reads. Fall back to raw search only for what the graph does not model, such as prose in comments and unparsed file types.

Pick the tool by what you know

  • You know the symbol name. semantic_search matches parsed declarations by name, kind, and language, and returns each hit's path, line range, signature, and entity id. It is a metadata matcher, not a vector ranker.
  • You only know the behavior. semantic_locate ranks code against a natural-language query using the vector index. It needs the running daemon and an embedded graph, and it reports its own coverage.
  • You need to understand an entity. get_context_pack bundles it with its caller and import neighborhood. get_entity_source returns just the body.
  • You need callers. find_references returns everything that imports, calls, or references a symbol. graph_neighborhood walks the dependency structure, with direction of out, in, or both.
  • You need the path a value travels. trace_data_flow returns the ordered call and data-flow chain from a focal entity.
  • You are changing shared code. impact_analysis walks the relation graph to the downstream entities the change can reach.
  • You need history. kin_provenance_query reports an entity's changes, its latest change, and recorded approvals.
  • You need repository contents. kin_artifact_list and kin_artifact_read cover every tracked object by artifact id, including lockfiles, configuration, and binary assets.

Trust the envelope, not the emptiness

Every response carries a _kin envelope naming the runtime that answered, the graph generation, embedding coverage, and any degraded flags. A semantic answer is never quietly backfilled from raw file search.

An empty result carries a negative object whose safe_to_conclude_absent field says whether the absence can be trusted. Semantic tools report semantic_authoritative only under complete embedding coverage with no degraded signals. Structural tools report structural_authoritative only with the graph initialized and loaded. Any other verdict means ask again when the graph is ready, not that the thing is missing.

Read the full file on GitHub · 53 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 · 53 lines · 695 tokens per session scan A 849ee2005d4f

Subscribe to this mod's changes

kin GEMINI.md is an instructions file published in the GitHub repository firelock-ai/kin (47 stars, last pushed today), licensed Apache-2.0. It adds 695 tokens to every session, about $0.0035 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-30.