footPrint: Instructions file for Codex

AGENTS.md

footPrint AGENTS.md is an instructions file for Codex, OpenCode from footprintjs/footPrint. It costs 17,452 tokens per session, scanned A, original, MIT.

Coding instructions for footprint.js, a JavaScript library that represents backend code as flowcharts. They describe its architecture, APIs, and rules for collecting information during one tree traversal.

In plain words
What is it for?
Use them when modifying or extending footprint.js, especially its traversal, memory, validation, builder, scope, reactive, decision, and recording code.
Why use it?
They give a coding agent repository-specific rules so changes match the library’s design and avoid incorrect extra processing.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/footprintjs/footprint/agents-md"><img src="https://agentmods.dev/badge/instructions/footprintjs/footprint/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17,452 This file is loaded in full into every session.
When invoked 17,452 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.17452 $0.17452
Opus 5.5 $0.06981 $0.06981
Sonnet 5.5 $0.03490 $0.03490
Haiku 4.5 $0.01745 $0.01745

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

Security

Grade A, and why

footPrint 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 7d 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 · 1,130 lines

How it starts

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

footprint.js — AI Coding Instructions

This is the footprint.js library — the flowchart pattern for backend code. Self-explainable systems that AI can reason about.

Every TypeScript block in this file is type-checked (strict) and run against the built package (footprintjs 9.32.0); the // … lines under a console.log are that run's real output.

Core Principle

Collect during traversal, never post-process. All data collection (narrative, metrics, manifest, topology, in/out boundaries) happens as side effects of the single DFS traversal pass. Never walk the tree again after execution.

Architecture — Library of Libraries

FootPrint 10 has six engine doors; the record has three separate foottrace doors. Import from the package that owns the declaration; FootPrint does not re-export record declarations.

Import What it is for
footprintjs The main door: flowChart, FlowChartExecutor, decide / select, narrative, the built-in recorder classes, interrupt, and the public types
footprintjs/recorders Recorder factories — narrative(), metrics(), debug(), manifest(), adaptive(), milestone(), windowed() — and CompositeRecorder
footprintjs/trace Engine tracing: recorder stores (KeyedStore, SequenceStore, BoundaryStateStore), walkSubflowSpec, topologyRecorder() / inOutRecorder(), control-dependency and quality recorders
foottrace Record shapes (CommitBundle, TraceEntry, MemoryPatch), runtime-ID helpers, commit queries, causal/variable slices, stateAt, timeTravel, CommitRangeIndex, HONESTY_CODES
foottrace/write Writing a record yourself: the record layer the engine writes with — SharedMemory (the heap), EventLog (the log), RecordFrame (one step's frame) and their option types
foottrace/paths Record-path encoding/decoding, safe nested access, setNestedValue / updateNestedValue for diagnostic bags
footprintjs/advanced Engine internals (StageContext, FlowchartTraverser, ScopeFacade, scope providers, SCOPE_METHOD_NAMES, ArrayMergeMode, run policy and RedactionRule). No record declarations are exported here.
footprintjs/detach Fire-and-forget child charts and their drivers
footprintjs/zod Opt-in zod bridge (defineScopeFromZod, …) — the core never imports zod
footprintjs/sinks NODE ONLY — fileSink(path) / readRecordFile(path): the crash-safe record as JSON lines (the executor's sink option; read back with foottrace's readStoredRecord)

Read the full file on GitHub · 1,130 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. 7d ago Changed · +1 lines · +53 tokens per session 2e2b8187f625
  2. 8d ago Changed · +19 tokens per session 5a04f6643095
  3. 13d ago Changed · +2 lines · -63 tokens per session 932f27fac233
  4. 14d ago Changed · +1 lines · +135 tokens per session 0df392e2cc85
  5. 17d ago Changed · +42 tokens per session 6f01f2224459
  6. 18d ago Changed · +26 tokens per session 76f5859db2ec
  7. 19d ago Changed · +4 lines · +296 tokens per session 6c4710f91367
  8. 20d ago Changed · +476 lines · +7,465 tokens per session ce0c268b4374
  9. 21d ago Changed · +159 tokens per session 77bb65e86a58
  10. 25d ago First seen · 646 lines · 9,320 tokens per session scan A bd132baf99fb

Subscribe to this mod's changes

footPrint AGENTS.md is an instructions file published in the GitHub repository footprintjs/footPrint (21 stars, last pushed yesterday), licensed MIT. It adds 17,452 tokens to every session, about $0.0698 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

vibetags com-example-service-TransactionalPaymentService.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for transactionalpaymentservice and strict exception handling.

PIsberg/vibetags · 104 tokens

vibetags com-example-gmm-platform-FeatureGate.md

Instructions for PIsberg/vibetags, covering amazon kiro steering: featuregate and feature flag gate.

PIsberg/vibetags · 72 tokens

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,715 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,581 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