hol-guard: Instructions file for Codex

AGENTS.md

hol-guard AGENTS.md is an instructions file for Codex, OpenCode from hashgraph-online/hol-guard. It costs 1,814 tokens per session, scanned A, original, Apache-2.0.

A code-review instruction for the hol-guard repository. It explains how to apply the 500-line guideline and how to review large JSON files.

In plain words
What is it for?
Use it when reviewing source files and declarative JSON such as fixtures, schemas, manifests, and generated data. It helps distinguish maintainability concerns in code from validity and trust-boundary concerns in data.
Why use it?
It prevents reviewers from requesting that JSON files be split merely because they are long, while still directing them to check those files for correctness, security, and schema problems.

Instructions file for CodexOpenCode

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

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

About the project

HOL Guard is a local security layer that reviews AI-agent actions before they run, including shell commands, file access, package installs, and MCP tool calls. AI-agent users use it to detect secret exposure, destructive operations, prompt injection, and supply-chain risks, then allow, block, or require approval according to policy. The catalogue contains skills, an MCP integration, a plugin, and an instruction for using it.

hashgraph-online/hol-guard · 1,135 stars · on GitHub · hol.org

Reuse

Borrowing it

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

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 hol-guard AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hashgraph-online/hol-guard/agents-md"><img src="https://agentmods.dev/badge/instructions/hashgraph-online/hol-guard/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,814 This file is loaded in full into every session.
When invoked 1,814 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.01814 $0.01814
Opus 5.5 $0.00726 $0.00726
Sonnet 5.5 $0.00363 $0.00363
Haiku 4.5 $0.00181 $0.00181

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

Security

Grade A, and why

hol-guard 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 · 119 lines

How it starts

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

Repository guidance for agents

Public GitHub surface security

This repository is public. Treat every pull-request title, description, comment, review reply, workflow note, and linked artifact as an externally visible security boundary.

  • Before creating or editing any public PR text or comment, inspect the complete outgoing content, including Markdown links, URLs, code blocks, quoted logs, generated summaries, and bot prompts.
  • Never publish private or identifying details. This includes private hostnames, IP addresses, machine names, SSH or VPN routes, Tailscale identities, usernames, home-directory paths, local checkout paths, browser-session or approval-center state, credentials, keys, tokens, request IDs, internal environment names, deployment topology, or details that reveal how to reach private systems. Use generic terms such as “live-agent validation was unavailable” when a limitation must be recorded.
  • Describe only the target-repository change and reproducible public validation. Do not paste agent transcripts, shell history, private issue context, internal handoff notes, or cross-repository details into GitHub.
  • Before every public mutation, run a focused scan over the exact outgoing text for local paths, home directories, IP or hostname patterns, SSH/Tailscale/VPN terms, secret or credential names, and internal infrastructure keywords. Rewrite matches before publishing.
  • If a disclosure is found, remove the affected comment or review reply and sanitize the current PR body. Inspect the PR's edit history and use GitHub's revision-deletion control for every affected revision. Editing the current body alone does not remove an older public revision.
  • After cleanup, re-read the public PR body, comments, review threads, and retained edit history. Report any inaccessible revision or uneditable comment instead of claiming complete removal.
  • Never use a public cleanup reply to repeat the sensitive detail. Keep the cleanup itself generic.

Read the full file on GitHub · 119 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 · +11 lines · +146 tokens per session 80b8e3a24a07
  2. 4d ago Changed · +9 lines · +119 tokens per session db717a804253
  3. 10d ago Changed · +34 lines · +500 tokens per session 50ffa86712c3
  4. 17d ago Changed · +8 lines · +104 tokens per session 4eed996f30f8
  5. 27d ago Changed · +31 lines · +429 tokens per session 884a22824a44
  6. 1mo ago Changed · +10 lines · +230 tokens per session ac20bc4ce0a3
  7. 1mo ago Changed · +4 lines · +115 tokens per session 3beabcf3bada
  8. 1mo ago First seen · 12 lines · 171 tokens per session scan A 335b923529f0

Subscribe to this mod's changes

hol-guard AGENTS.md is an instructions file published in the GitHub repository hashgraph-online/hol-guard (1,135 stars, last pushed today), licensed Apache-2.0. It adds 1,814 tokens to every session, about $0.0073 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-10-05.

Related

hol-guard AGENTS.md compared with instructions from other repositories

hol-guard AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hol-guard AGENTS.mdhashgraph-online/hol-guardInstructions file1.1ktodayApache-2.0A1,814Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot