agentleFS
GoogleKnown publishergoogle/mantis/AGENTS.md

mantis

AGENTS.md2.3k starsChanged 3 months agoApache-2.0View on GitHub

Always run pre-commit run --all-files before creating or amending a commit. This ensures all markdown files conform to the pinned mdformat 0.7.21 formatter (--number --wrap 80 with gfm + frontmatter plugins). The hook installs its own isolated venv — do not run local mdformat directly. If the hook modifies files, stage the changes and amend your commit. Security invariants (INV-1 through INV-6) are enforced deterministically by the Google ADK Python runtime, Pydantic schemas, and tool wrappers rather than prompt fences:

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 7 mentionsOct 2026: 14 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the google/mantis repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about google/mantis

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

See all 24

Talked about on GitHub and Bluesky (24 times).

On GitHub · 19

14 more on GitHub

On Bluesky · 5

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the hook modifies files, stage the changes and amend your commit.

    line 12

≈ “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

Agent Rules

Before committing

Always run pre-commit run --all-files before creating or amending a commit.

This ensures all markdown files conform to the pinned mdformat 0.7.21 formatter (--number --wrap 80 with gfm + frontmatter plugins). The hook installs its own isolated venv — do not run local mdformat directly.

If the hook modifies files, stage the changes and amend your commit.

ADK Invariant Architecture & Deterministic Gates

Security invariants (INV-1 through INV-6) are enforced deterministically by the Google ADK Python runtime, Pydantic schemas, and tool wrappers rather than prompt fences:

  • INV-1 & INV-2 (Evidence & Re-attack): Enforced by sandbox_tools.py reached-sink sentinel verification and schemas.py validation. Objective third-party re-attack and strict separation-of-duties role separation are orchestrated by mantis-patch to eliminate self-grading confirmation bias.
  • INV-3 (Regression Tracking): Enforced by finding lineage schemas and snapshot-match rules.
  • INV-4 (Target Immutability & Host Boundary): Enforced by research_tools.py path bounds checks (strictly read-only on the host target checkout; all mutations constrained to workspace/ or isolated guest sandboxes).
  • INV-5 (State Resumption & Monotonic Lineage): Enforced by BudgetController checkpointing and database.py monotonic status preservation across process restarts via --resume <run_id>. Upstream repository synchronization and environment provisioning are managed externally before resuming Mantis.
  • INV-6 (Fail-Safe Backward Compatibility): Enforced by schema defaults and fail-closed degradation gates.

Skills must remain clean, dense domain guides focused on vulnerability analysis, attack vectors, and remediation. Do not re-embed bash Git commands, manual file locking, or ASCII block fences in skill prompts. All invariants are verified by reference/tests/test_adk_invariants.py.

Reference files

Skills may split on-demand content into references/ subdirectories (e.g. mantis-calibrate/references/calibration_rules.md). Before committing, verify that every references/*.md link target in a SKILL.md file exists on disk and is tracked by git (git ls-files --error-unmatch <path>).

Extraction criteria

Extract a block into a references/ file only if ALL three hold:

  1. Off the fail-closed safety-critical path — the extracted content is not the sole authority for a security-critical invariant (e.g. the VERIFIED_SECURE => reattack_status = failed_to_bypass gate).
  2. Restates no invariant — the extracted content does not restate any rule that is also stated in the SKILL.md (no invariant may appear in both a SKILL.md and its reference; if a rule must be referenced, state it once and point to it).
  3. Clean fail-safe fallback — if the reference cannot be loaded, the skill falls back to safe behavior without the reference (e.g. patch rebasing falls back to fresh patch generation, verified by re-attack verification).

mantis-patch/references/patch_rebasing.md qualifies (pure mechanics, no invariant restated, fails safe to Phase-1). Do not extract content that restates a crown-jewel invariant — trim it inline instead.

Structural index spec

The structural index spec lives in one canonical location: mantis-structural-index/SKILL.md. Locator resolution instructions and semantic unit definitions appear only in this canonical skill.

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.