redamon AGENTS.md

Repository-wide rules for RedAmon, a codebase that combines security scanning with a graph database and a catalogue of agent skills.

In plain words
What is it for?
Use them when editing graph data or database code, changing tests or test settings, managing skills, or reviewing security-related changes.
Why use it?
They tell coding agents which specialised rules to use for graph changes and tests, and prohibit storing real-world scan data or credentials in the project.

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

Made for: Codex, OpenCode.

Per session 2,276 This file is loaded in full into every session.
When invoked 2,276 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.02276 $0.02276
Opus 5 $0.01138 $0.01138
Sonnet 5 $0.00455 $0.00455
Haiku 4.5 $0.00228 $0.00228

Measured 2d ago against content hash b1b801a1b599, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

redamon 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 · 155 lines

How it starts

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

RedAmon - Agent Ruleset (Repository Root)

Skills: on-demand rulesets live in skills/. The full list is the SKILLS CATALOGUE at the bottom of this file. The table directly below is generated by sync.sh from each skill's frontmatter - never hand-edit it.

This ruleset system is documented in docs/readmes/skills_management/SKILLS_MANAGEMENT.md.

Auto-invoke Skills

When performing these actions, ALWAYS invoke the corresponding skill FIRST:

Action Skill
Adding a node label, relationship, or property to the graph schema graph-db-writes
Adding or editing a test file in any section redamon-testing
Changing test tiers, conftest.py, pytest.ini, or the runner in redamon.sh redamon-testing
Checking or ratcheting a coverage floor redamon-testing
Investigating a red, skipped or xfailed test redamon-testing
Writing to the Neo4j graph or editing a graph_db mixin graph-db-writes

CRITICAL RULES - NON-NEGOTIABLE

  • NEVER commit real-world target data - live hostnames, IPs, scan output, recon results, captured traffic, or credentials - in code, fixtures, tests, issues, or PRs. See CONTRIBUTING.md -> "Legal and Ethical Responsibilities".
  • NEVER validate a change by running pytest on the host. The Python gate runs each section INSIDE its Docker image (redamon-agent, redamon-recon, ...) via ./redamon.sh test / ./agentic/run_tests.sh; host pytest sees the wrong dependency set and mis-collects. The unit tier must stay 100% green.

CODE COMMENTS

Comment the why, not the what. Keep them short - a comment earns its place by saying something the code cannot.

Read the full file on GitHub · 155 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 First seen · 155 lines · 2,276 tokens per session scan A b1b801a1b599

Subscribe to this mod's changes

redamon AGENTS.md is an instructions file published in the GitHub repository samugit83/redamon (2,372 stars, last pushed yesterday), licensed MIT. It adds 2,276 tokens to every session, about $0.0114 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

agentic-threat-hunting-framework AGENTS.md

Instructions for Nebulock-Inc/agentic-threat-hunting-framework, covering agents.md - context for ai assistants using athf, repository overview, 🚨 mandatory: use athf cli commands & agents, ✅ always use cli for and 🎯 cli-first policy.

Nebulock-Inc/agentic-threat-hunting-framework · 7,721 tokens

mcp-threatintel AGENTS.md

Instructions for aplaceforallmystuff/mcp-threatintel, covering agents.md - mcp-threatintel, tech stack, architecture, development commands and environment variables.

aplaceforallmystuff/mcp-threatintel · 532 tokens

project-starbeam AGENTS.md

Instructions for dkyazzentwatwa/project-starbeam, covering agents.md, quick reference commands, test compilation without hardware, monitor serial output and project overview.

dkyazzentwatwa/project-starbeam · 3,979 tokens

From-LLMs-to-Secure-Agents AGENTS.md

Instructions for RenatoMignone/From-LLMs-to-Secure-Agents, covering agent instructions, run contract, policy map and invariants.

RenatoMignone/From-LLMs-to-Secure-Agents · 478 tokens

marq CLAUDE.md

Claude Code instructions for rhaist/marq, covering claude.md, what this is, commands, kali stage installs the full tool suite + warm-up and smoke-test a wrapped binary without starting the server.

rhaist/marq · 3,553 tokens

agentic-threat-hunting-framework CLAUDE.md

Instructions for Nebulock-Inc/agentic-threat-hunting-framework, a project described as: ATHF is a framework for agentic threat hunting - building systems that can remember, learn, and act with increasing autonomy.

Nebulock-Inc/agentic-threat-hunting-framework · 4 tokens