filegrc AGENTS.md

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

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/alignbase/filegrc/agents-md
Clone the repo
git clone --depth 1 https://github.com/Alignbase/filegrc

Made for: Codex, OpenCode.

Per session 4,668 This file is loaded in full into every session.
When invoked 4,668 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.04668 $0.04668
Opus 5 $0.02334 $0.02334
Sonnet 5 $0.00934 $0.00934
Haiku 4.5 $0.00467 $0.00467

Measured yesterday against content hash 7228e0278fb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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

How it starts

The opening of the file, as written. The whole thing — 195 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.
  • 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 · 195 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. yesterday 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 (21 stars, last pushed yesterday), licensed MIT. It adds 4,668 tokens to every session, about $0.0233 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.

Related

Other instructions, from other repositories

agent-governance-toolkit copilot-instructions.md

Instructions for microsoft/agent-governance-toolkit, covering copilot instructions for agent-governance-toolkit, architecture, build, test, and lint, python and install (editable, all extras).

microsoft/agent-governance-toolkit · 5,833 tokens

agent-governance-toolkit AGENTS.md

Instructions for microsoft/agent-governance-toolkit, covering agent governance toolkit - repository instructions, project overview, repository layout status, where changes belong and routing rules.

microsoft/agent-governance-toolkit · 1,640 tokens

mind-mem CLAUDE.md

Instructions for star-ga/mind-mem, covering mind-mem — persistent ai memory system, architecture, key components, mcp tools (97) and config.

star-ga/mind-mem · 4,812 tokens

compliance-trestle-skills AGENTS.md

Instructions for oscal-compass-lab/compliance-trestle-skills, covering agent instructions for compliance trestle, purpose of this repository, primary directory layout, agent safety rules and legacy ssp, pdf, and docx to oscal workflow.

oscal-compass-lab/compliance-trestle-skills · 1,133 tokens

mind-mem AGENTS.md

Instructions for star-ga/mind-mem, covering mind-mem: agent instructions (auto-written), memory context, apr 21, 2026, may 2, 2026 and may 6, 2026.

star-ga/mind-mem · 1,002 tokens

compliance-trestle-skills GEMINI.md

Instructions for oscal-compass-lab/compliance-trestle-skills, covering gemini cli instructions, repository purpose, key paths, required guardrails and legacy document to oscal quick path.

oscal-compass-lab/compliance-trestle-skills · 525 tokens