fkf: Instructions file for Codex

AGENTS.md

fkf AGENTS.md is an instructions file for Codex, OpenCode from fmind/fkf. It costs 1,274 tokens per session, scanned A, original, MIT.

Project instructions for fkf, a Go tool that collects JSON and Markdown files from Git repositories and makes them available to coding agents.

In plain words
What is it for?
Use them when changing collection, linking, retrieval, configuration, evidence records, or contributor workflows in fkf.
Why use it?
They define the project’s data format, workflow, testing rules, and boundaries, reducing the risk of incompatible changes or untrusted tests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is fmind/fkf's own configuration. It tells Codex and OpenCode how to work on fkf itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fkf configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fmind/fkf. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fmind/fkf/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/fmind/fkf

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 fkf AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fmind/fkf/agents-md/github.svg)](https://agentmods.dev/instructions/fmind/fkf/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/fmind/fkf/agents-md"><img src="https://agentmods.dev/badge/instructions/fmind/fkf/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fkf AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fmind/fkf/agents-md"><img src="https://agentmods.dev/badge/instructions/fmind/fkf/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,274 This file is loaded in full into every session.
When invoked 1,274 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01274 $0.01274
Opus 5.5 $0.00510 $0.00510
Sonnet 5.5 $0.00255 $0.00255
Haiku 4.5 $0.00127 $0.00127

Measured 1mo ago against content hash 166c0d39ba0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fkf AGENTS.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 1mo 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.

AGENTS.md · 55 lines

How it starts

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

AGENTS.md

FKF is one typed Python package and one console command. Its purpose is to keep a person's or team's knowledge in plain files (Markdown notes, JSON Lines records) and let agents search and read it offline. The README describes the product; this file defines implementation boundaries.

Scope

  • Keep only the current configuration and base format. Do not add legacy code, migration tooling, provider SDKs or compatibility command surfaces.
  • projects/, tasks/ and wiki/ contain authored Markdown; wiki concepts follow OKF v0.2. Tasks use tasks/YYYY-MM-DD_slug/TASK.md plus inputs/ and outputs/. records/<source>/<YYYY-MM>.jsonl holds one line per source item, upserted by id (undated.jsonl, snapshot.jsonl for snapshot sources). .fkf/ is a disposable SQLite cache. sources/ holds collectors, scripts/, configs/ and tests/ base maintenance, skills/ workflow packages. One fkf.yaml (version 2) defines the base; ~/.config/fkf/config.yaml registers bases per user and grants collection trust per machine.
  • Records have id, title, optional text, time, url, links, aliases and attributes. Provider-specific projection belongs in base-owned collectors. Reserved attributes updated, observed and partial describe revision provenance. No provider SDK, model, embedding, scheduler, harness installer or plugin framework belongs in the core.
  • CLI and MCP call the same services. MCP exposes exactly search and read, with no execution or write operation.

Invariants

  • Search and read never run collectors or contact the network. They may refresh the disposable cache incrementally; a file that fails to parse is skipped and reported, never fatal. FTS uses quoted literal terms; SQL uses parameters.
  • Every result carries a readable ref that resolves to a file: path, path#section or source:id. The cache may locate a record, but the answer always comes from the record file.
  • Explicit aliases and links provide identity and relationship evidence; prose and name similarity never create relations.
  • Use the confined Store for base access. Refuse symlinks and special files below the base, bound traversal and bytes, write atomically, and serialize writers by physical base identity. Private lock, run state, usage counts and collector logs stay outside the base; usage never records queries or refs.
  • Collection is explicit, uses direct configured argv from the base root, and requires per-machine trust in the user configuration. Remove loader-injection variables, kill process groups on timeout, cancellation or output overflow, write nothing on provider failure and recover interrupted commits from records/.pending/, and keep provider stdout/stderr out of errors (stderr goes to a bounded private log).
  • Files are the only source of truth. Deleting .fkf/ or the state directory loses nothing but convenience.

Read the full file on GitHub · 55 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. 1mo ago Changed · +4 lines · +52 tokens per session 166c0d39ba0c
  2. 1mo ago Changed · +1 lines · +94 tokens per session e71dd51d8bb9
  3. 1mo ago Changed · -28 lines · -1,613 tokens per session 986494f0d643
  4. 1mo ago Changed · +4 lines · +132 tokens per session caf8c1e3faf4
  5. 2mo ago Changed · +1 lines · +150 tokens per session 9fc0652d7198
  6. 2mo ago Changed · +3 lines · +328 tokens per session 0e11648fb780
  7. 2mo ago First seen · 70 lines · 2,131 tokens per session scan A 5c8904a2ec7f

Subscribe to this mod's changes

fkf AGENTS.md is an instructions file published in the GitHub repository fmind/fkf (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,274 tokens to every session, about $0.0051 per session on Opus 5.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-31.

Related

fkf AGENTS.md compared with instructions from other repositories

fkf AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fkf AGENTS.mdfmind/fkfInstructions file31mo agoMITA1,274Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode