filegrc: Instructions file for Codex

AGENTS.md

filegrc AGENTS.md is an instructions file for Codex, OpenCode from Alignbase/filegrc. It costs 4,998 tokens per session, scanned A, original, MIT.

Repository instructions for filegrc, a Git-based system for managing compliance records and preparing for SOC 2 audits. A monorepo is one repository containing multiple related software packages.

In plain words
What is it for?
Use them when working on filegrc or its scaffolder, especially to inspect, create, update, validate, and verify compliance records.
Why use it?
They keep the repository and generated compliance records understandable and help agents follow consistent validation, editing, and audit workflows.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alignbase/filegrc/agents-md"><img src="https://agentmods.dev/badge/instructions/alignbase/filegrc/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,998 This file is loaded in full into every session.
When invoked 4,998 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.04998 $0.04998
Opus 5.5 $0.01999 $0.01999
Sonnet 5.5 $0.01000 $0.01000
Haiku 4.5 $0.00500 $0.00500

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

Security

Grade A, and why

filegrc 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 5d 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 · 201 lines

How it starts

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

FileGRC Repository Instructions

Purpose

This monorepo builds FileGRC, a Git-native GRC system for SOC 2 work. It has two Node.js packages:

  • filegrc: the zero-dependency FileGRC engine, which validates, searches, edits, and renders GRC data.
  • create-filegrc: the FileGRC scaffolder, which creates a standalone SOC 2 repository.

The generated repository is the product. Keep it understandable to an engineer who opens it without prior context.

Agent-facing product surface

Treat headless use as a first-class interface. An agent with no FileGRC context must be able to discover the right record type, inspect current relationship candidates, create or update JSON and Markdown through one validated payload, complete scheduled and event work, prepare an audit, and verify the result without opening the renderer.

  • Keep the generated root AGENTS.md as the program and Git guide.
  • Keep data/AGENTS.md as the universal record workflow. Add collection-level AGENTS.md files only where a wrong action has material compliance, privacy, or audit consequences.
  • Keep filegrc guide, types, list, get, references, scaffold, CRUD, content, obligations, events, program readiness, audit readiness, and evidence packets model-driven.
  • Scaffold files are prompts, not compliance facts. They must keep incomplete work in a non-final state and make missing required values obvious.
  • Browser and CLI mutations must use the same domain functions and the same { record, content } shape.
  • Every resource type must pass automated guide and scaffold coverage. Test first-class multi-record workflows through the CLI as well as their domain functions.

Product principles

  • Git is the system of record. GRC records live as plain, reviewable files under data/.
  • Git exclusively supplies version-control facts: file history, authors, commit timestamps, diffs, commit messages, revisions, renames, and prior file versions. Do not mirror them in FileGRC records or maintain a parallel change log.
  • Domain events still need explicit dates. Do not replace dates such as occurredOn, approvedOn, or completedOn with Git metadata.
  • Do not store a second change log or duplicate Git-derived fields such as createdAt, updatedAt, createdBy, or updatedBy.
  • Store each mutable program fact or decision in one authoritative record and reference it by ID. Policies state durable rules, categories, and required outcomes; they do not copy current people, vendors, systems, reporting addresses, schedules, recovery targets, or other inventories that have their own resource.
  • Roll up an Obligation occurrence when one queue-level owner, window, population rule, and reconciliation conclusion govern the work. Keep member-level operating records, evidence, completion, exception, and non-applicability facts inside that occurrence. Split work into separate Obligations or Action Items only when a member needs its own queue owner, deadline, conclusion, or follow-up lifecycle.
  • The engine must work locally, in CI, and in a basic server environment with only a supported Node.js release and Git.
  • The current repository state must remain useful without a network connection.
  • Data files are authoritative. Rendered pages, indexes, caches, and reports are derived output.
  • Derive next actions from the model, source records, relationships, and Git state before proposing setup or a new record. Reuse existing workflows. Distinguish documented design, configured implementation, and dated proof of operation. Ask users only for facts or decisions available sources cannot verify. Use the same conclusion across browser, HTTP API, and CLI; show plain checks to people and record context to agents.
  • Human Control guidance names the real systems, people, vendors, or work to inspect and the condition to check. Put FileGRC record updates after that practical check.
  • Never fetch external references automatically. A user may open or import one explicitly.
  • Keep the model generic. Organization-specific fields belong in namespaced extensions.
  • Keep the default starter Security-only and as simple as the Security Common Criteria permit. Do not turn optional Trust Services Categories or common implementation choices into default records or readiness gates. Require category-specific details, including numeric recovery objectives, only when management selects that category or an approved commitment or risk decision requires them.
  • Prefer explicit, inspectable behavior over automation that changes audit records without review.
  • UI, HTTP, and CLI workflows must call the same domain functions so headless agents receive the same calculations, validation, and output as browser users.

Read the full file on GitHub · 201 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. 5d ago Changed · +23 tokens per session 449a6dd24bad
  2. 24d ago Changed fc07427b6b59
  3. 25d ago Changed 60667ba8df0e
  4. 29d ago Changed · +2 lines · +70 tokens per session 7e54474fe078
  5. 1mo ago Changed · +1 tokens per session a82c9afc7cb8
  6. 1mo ago Changed · +2 lines · +115 tokens per session 37ae614996b0
  7. 1mo ago Changed · -12 tokens per session 4da852738755
  8. 2mo ago Changed · +2 lines · +133 tokens per session 262bbe403fc3
  9. 2mo ago First seen · 195 lines · 4,668 tokens per session scan A 7228e0278fb1

Subscribe to this mod's changes

filegrc AGENTS.md is an instructions file published in the GitHub repository Alignbase/filegrc (26 stars, last pushed yesterday), licensed MIT. It adds 4,998 tokens to every session, about $0.0200 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

filegrc AGENTS.md compared with instructions from other repositories

filegrc AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
filegrc AGENTS.mdAlignbase/filegrcInstructions file26yesterdayMITA4,998Codex, 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