faf-cli: Instructions file for Codex

AGENTS.md

faf-cli AGENTS.md is an instructions file for Codex, OpenCode from Wolfe-Jam/faf-cli. It costs 1,159 tokens per session, scanned A, original, MIT.

A set of instructions for developing faf-cli, a TypeScript and Bun-based command-line tool for versioned AI project context files.

In plain words
What is it for?
It helps agents work in the right source directories and run the build, test, lint, and hardcoded-path checks.
Why use it?
It tells coding agents how to build, test, lint, and check the project before considering a change complete.

Instructions file for CodexOpenCode

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

This is Wolfe-Jam/faf-cli's own configuration. It tells Codex and OpenCode how to work on faf-cli 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 faf-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Wolfe-Jam/faf-cli. 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/Wolfe-Jam/faf-cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Wolfe-Jam/faf-cli

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 faf-cli AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wolfe-jam/faf-cli/agents-md/github.svg)](https://agentmods.dev/instructions/wolfe-jam/faf-cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wolfe-jam/faf-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/wolfe-jam/faf-cli/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 faf-cli AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wolfe-jam/faf-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/wolfe-jam/faf-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,159 This file is loaded in full into every session.
When invoked 1,159 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.01159 $0.01159
Opus 5.5 $0.00464 $0.00464
Sonnet 5.5 $0.00232 $0.00232
Haiku 4.5 $0.00116 $0.00116

Measured 2d ago against content hash 071f00799f26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

faf-cli 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 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.

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 · 95 lines

How it starts

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

AGENTS.md — faf-cli

CLI for IANA-registered .faf + .fafm — context DNA and portable agent memory. TypeScript, Bun-native since v6. package faf-cli v8.3.2 The Business Card Edition — scored by the always-33 engine. — TypeScript · type: cli · v8.1.0

Authored by faf — do not edit the managed block; refresh with faf export --agents. Hand-written content outside the managed block is preserved.

Setup & build

bun install    # install
bun run build    # clean, bundle src/cli.ts to dist, then tsc
bun run dev    # run the CLI from source, no build

Run the tests

bun run test    # must pass before a change is done
bun run lint    # eslint over src
bun run check:no-hardcode    # fail if a build-machine path leaked into dist

Where things live

Path Role
src/cli.ts CLI entry (Commander); builds to the faf / faf-cli bin
src/index.ts library entry; builds to main, plus the ./pack export
src/commands/ one file per faf subcommand (39)
src/commands/memory.ts faf memory, the .fafm surface
src/core/ domain engines (drift, faf-dna, faf-source, cwd-guard)
src/detect/ stack and project detection, per language
src/fafm/ the .fafm library (soul, from-claude-dir, types)
src/interop/ the context authors (agents, claude, gemini, cards, copilot)
src/interrogate/ extractors that read a repo's own files for facts (readme, cargo, compose, env)
src/ui/ terminal output (colors, display, progress, star-nudge)
src/wasm/ bridge to faf-scoring-kernel; scoring lives there, not in TS
package.json scripts, and the bin that maps faf to dist/cli.js
project.faf this file; the DNA every author reads from

Read the full file on GitHub · 95 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 Changed 071f00799f26
  2. 4d ago Changed · +2 tokens per session 02f30618b0d0
  3. 12d ago Changed 220eb8819ee0
  4. 14d ago Changed · -4 tokens per session 745b9a87a622
  5. 15d ago Changed 3b057aefd152
  6. 17d ago Changed · +2 tokens per session 76c487a0ab59
  7. 19d ago Changed 0494d286be7a
  8. 23d ago Changed · +20 lines · +159 tokens per session cb4880bab863
  9. 25d ago Changed · +1 tokens per session 52519d66f826
  10. 1mo ago First seen · 75 lines · 999 tokens per session scan A 8aa6e3ff1d9a

Subscribe to this mod's changes

faf-cli AGENTS.md is an instructions file published in the GitHub repository Wolfe-Jam/faf-cli (42 stars, last pushed yesterday), licensed MIT. It adds 1,159 tokens to every session, about $0.0046 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-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens