agentleFS
samugit83samugit83/redamon/AGENTS.md

redamon

AGENTS.md2.9k starsChanged 9 months agoMITView on GitHub

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. When performing these actions, ALWAYS invoke the corresponding skill FIRST: - 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…

  • Reads credentials

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 6 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the samugit83/redamon repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about samugit83/redamon

The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 7

Talked about on GitHub and Bluesky (7 times).

On GitHub · 6

1 more on GitHub

On Bluesky · 1

The file

We split this AGENTS.md into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 12
  2. Very specific:

    NEVER: commit real-world target data - live hostnames, IPs, scan output, recon results, captured traffic, or credentials - in code, …

    line 33
  3. Distinctive:

    NO commented-out code: Delete it - git remembers.

    line 58
  4. Distinctive:

    Prefer a clearer name or a helper over a comment: when the comment only exists to decode the code.

    line 59
  5. Distinctive:

    Only the roots an agent needs to place a file.

    line 77
  6. Very specific:

    Read the values from .env when needed.

    line 132

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

ActionSkill
Adding a node label, relationship, or property to the graph schemagraph-db-writes
Adding or editing a test file in any sectionredamon-testing
Changing how a triage score, review or verdict is computed or writtenpriority-board-triage
Changing test tiers, conftest.py, pytest.ini, or the runner in redamon.shredamon-testing
Checking or ratcheting a coverage floorredamon-testing
Editing the Priority Board, the triage graph mixin, or the MCP triage toolspriority-board-triage
Investigating a red, skipped or xfailed testredamon-testing
Writing to the Neo4j graph or editing a graph_db mixingraph-db-writes

CRITICAL RULES - NON-NEGOTIABLE

<!-- Every line here is in context on EVERY turn. Add one only if an agent could break it while working on something else AND could not discover it from the file being edited. Component specifics belong in a scoped skill, not here. -->
  • 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.

  • DON'T restate the line below it. # CVE Lookup above 'CVE_LOOKUP_ENABLED' or // IncludeSecurity blog above { name: 'IncludeSecurity blog' } adds nothing. Delete echo comments; let the identifier speak.
  • DO explain non-obvious intent: why a value is what it is, a footgun, an ordering constraint, or the provenance of a magic constant (e.g. the source repo + byte size behind a favicon hash). These are the comments worth keeping, even when long.
  • NO changelog narration. # was 900 MB, now 1.75 GB / # renamed from X belongs in the git log. State current behavior; keep the rationale only if it still guides a future edit.
  • NO commented-out code. Delete it - git remembers.
  • Prefer a clearer name or a helper over a comment when the comment only exists to decode the code. Reach for prose (a docstring / block comment) when the reasoning genuinely needs more than a line.

LLM-facing text is exempt: tool docstrings and prompt strings the agent reads at runtime are content, not code comments - size them for the model, not this rule.


TECH STACK

Polyglot monorepo orchestrated by Docker Compose. Python 3.11 services (the agent, recon pipeline, recon orchestrator, MCP/kali-sandbox, scan tools) + a Next.js 16 / React 19 / TypeScript / Prisma webapp + Neo4j graph DB + Postgres. redamon.sh (bash) is the control plane for build/run/test.

PROJECT STRUCTURE

Only the roots an agent needs to place a file. Each component root carries its own AGENTS.md.

agentic/              Python - the LangGraph agent (baked into redamon-agent image)
recon/                Python - the recon pipeline (spawned per scan job)
recon_orchestrator/   Python - orchestrates scan containers (volume-mounted)
mcp/                  Python - MCP servers incl. kali-sandbox
graph_db/             Python - Neo4j graph layer (COPY-baked into agent image)
webapp/               TypeScript - Next.js frontend + API + Prisma
skills/               agent skills (this ruleset system)
tests/                repo-root Python tests + shell integration tests

scanners/             the 11 scan tools, each its own container image
  supply_chain_*/       malicious/vulnerable package detection (OSV offline)
  capture_proxy/        mitmproxy HTTP capture
  ai_attack_surface_scan/  LLM/AI attack-surface scanning
  gvm_scan/  github_secret_hunt/  trufflehog_scan/  baddns_scan/  wcvs/  codefix_sandbox/
services/             supporting services (docker_broker, knowledge_base, postgres_db)
testing/              e2e/ (Playwright) + guinea_pigs/ (vulnerable targets)
tooling/              scripts/ (e.g. pytest_isolated.py), hooks/, deploy/
docs/                 readmes/ (prose docs) + assets/ (media)

A scanner's container-side paths stay /app/<scanner>; only host-side paths carry the scanners/ prefix.

Prose docs live in docs/readmes/ (architecture, README.<SUBSYSTEM>.md, and docs/readmes/coding_agent_prompts/ "how to add X" guides) and redamon.wiki/ (the published GitHub wiki). This ruleset system and its templates live in docs/readmes/skills_management/.

COMMANDS

# Build & run the stack (always via Docker; never local npx/node/pip)
# There is no `build` subcommand: building happens inside install/update, which
# wrap it in the adaptive, memory-safe batching (compose_build).
./redamon.sh install          # first run (add --gvm / --kbase)
./redamon.sh update           # pull + smart-rebuild only what changed
./redamon.sh up               # start what is already built

# Test - runs each section inside its Docker image, per-file isolated
./redamon.sh test unit        # the gate; must be 100% green
./agentic/run_tests.sh        # agent-image unit gate (alias: focused)

# Webapp (needs the webapp image or `npm ci` in webapp/)
cd webapp && npm run test     # vitest run --no-file-parallelism
cd webapp && npm run type-check && npm run lint

Credentials for the local stack live in the repo-root .env (gitignored). To sign in to the UI in a browser, use UI_LOGIN_USERNAME / UI_LOGIN_PASSWORD. To call the MCP server, send MCP_SERVER_TOKEN as Authorization: Bearer to http://localhost:3000/api/mcp-server (the port is WEBAPP_PORT if changed). Read the values from .env when needed; never print them.

QA CHECKLIST

  • ./redamon.sh test unit is green (Docker gate, not host pytest).
  • Changed a component? Its AGENTS.md QA checklist also satisfied.
  • Rebuilt/restarted the right container for the files you touched.
  • No real-world target data added anywhere.
  • Commit follows Conventional Commits; branch is feature|fix|refactor|docs/*.

SKILLS CATALOGUE

Maintained by hand (not touched by sync.sh). One row per skill.

SkillDescriptionURL
redamon-testingHow tests run + how to author them: the per-file Docker gate, tiers, and green-run-that-lies failure modesSKILL.md
agentic-tool-integrationWiring a new tool the agent can call: registry, phase map, dispatch chokepoint, duplicated exec pathsSKILL.md
builtin-agent-skillAdding a built-in attack skill across its 9 layers (incl. the KNOWN_ATTACK_PATHS gate + silent drawer layers)SKILL.md
project-settings-cascadeChanging/adding a project default across Prisma + two Python modules + /defaults + frontend + existing rowsSKILL.md
graph-db-writesWriting the Neo4j graph: the tenant-isolation MERGE key, mixin placement, schema-syncSKILL.md
recon-ai-enrichmentWiring an LLM into a recon tool: never-raise, per-target cache, full+partial, two toggles one fieldSKILL.md
recon-tool-integrationAdding a recon pipeline tool: the enrichment _isolated contract, graph completeness, preset catalogSKILL.md
llm-provider-integrationAdding an LLM provider: keys never reach scan containers, prefix-routed model ids, the registrySKILL.md
orchestrator-container-spawnSpawning/hardening scan containers: the cap_drop / no-new-privileges footgun, sibling bind mountsSKILL.md
traffic-captureCapture proxy + replay/fuzz: the egress guard (resolved-IP SSRF denylist), off the scan's critical pathSKILL.md
supply-chain-scanSupply-chain scanner: offline OSV DB (not scan-bootstrapped), world-readable DB, soft-error markersSKILL.md
add-community-skillImportable .md attack workflow: real tool names only, no rebuild, stay classifiable, per-userSKILL.md
add-partial-reconPartial-recon support: graph-sourced inputs, MERGE dedup, the input-node modal, mirror the right ref implSKILL.md
mcp-server-toolsInbound MCP server tools: regenerate the wiki API reference, spec-accurate destructiveHint, runnable example callsSKILL.md
priority-board-triagePriority Board layers: nobody writes a score (combine_layers only), one layer per writer, never updated_at, legacy-tolerant readersSKILL.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.