AGENTS

AGENTS is a command for Claude Code from modrexio/modrex. It costs 0 tokens per session (5,617 once invoked), scanned A, original, MIT.

A repository guide for coding agents working in the desktop application. It documents backend command files, settings, paths, and rules that agents should follow.

In plain words
What is it for?
Use it when inspecting or editing backend commands, application settings, game launch options, or other desktop-app code.
Why use it?
It gives an agent the local context needed to change the right files without breaking compatibility or storing related settings inconsistently.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions AGENTS.md.

Good fit Use it when inspecting or editing backend commands, application settings, game launch options, or other desktop-app code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/modrexio/modrex/agents
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.

Clone the repo
git clone --depth 1 https://github.com/modrexio/modrex

Made for: Claude Code.

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 AGENTS

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/modrexio/modrex/agents"><img src="https://agentmods.dev/badge/commands/modrexio/modrex/agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.05617
Opus 5.5 $0.00000 $0.02247
Sonnet 5.5 $0.00000 $0.01123
Haiku 4.5 $0.00000 $0.00562

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

Security

Grade A, and why

AGENTS scanned grade A with 1 finding 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 7d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **`news.rs`** — scrapes `paydaythegame.com`'s per-game news category page (`category_slug`: `"pd2"` → `payday2`, `"pdth"` → `theheist`, else `payday3`) for the News tab. **Fetches via a `curl` subprocess, not `reqwest`
apps/desktop/src-tauri/src/commands/AGENTS.md · 44 lines

How it starts

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

Backend commands (src-tauri/src/commands/)

Paths are relative to apps/desktop.

  • settings.rs — reads/writes settings.json in Tauri's app_data_dir() (%APPDATA%\Modrex\ on Windows, ~/.local/share/modrex/ on Linux). Top-level fields: skipFileOpenLogWarning/dismissedDepsWarnings (global flag + list, still persisted but no longer read by the renderer), games: Option<HashMap<String, GameSettings>>. GameSettings holds game_path?/launcher? (genuinely optional — not-yet-detected) plus install_pinned (see src-tauri/src/commands/launchers/AGENTS.md: the two path fields name one store's copy together, and there is deliberately no command that writes launcher on its own — the removed set_launcher was exactly that, and it let Modrex mod one copy while launching another) plus launch_options/suppress_crash_reporter/crimeboss_install_mode per game. The latter three, and every Settings field with a well-defined default (skip_file_open_log_warning, dismissed_deps_warnings, analytics_consent_asked, analytics_enabled, analytics_consent_version, discord_rich_presence_enabled, successful_installs, first_install_at, support_prompt_shown), are plain non-Option types with #[serde(default[ = "fn"])] rather than Option<T> — null never appears in settings.json for a field that only ever means "use the default"; Option is reserved for fields with a real third state (not-yet-detected paths/launcher, analytics_id, nexus_oauth, or the legacy flat fields below). Both GameSettings and Settings have hand-written impl Default (not derived) because two fields default to a non-zero value (discord_rich_presence_enabled: true, crimeboss_install_mode: "auto") that #[derive(Default)] wouldn't produce. Legacy flat fields (game_path, launcher, launch_options) carry #[serde(skip_serializing, default)] so old settings files still deserialize but writes always use the new games map. migrate_settings(s: Settings) -> Settings promotes legacy flat fields to games["pd3"] on first read — called inside read_settings. game_settings<'a>(s, game_id) -> Option<&'a GameSettings> is the canonical helper for reading per-game config; always use it instead of touching legacy fields directly. Commands: get_game_settings(game_id: String) -> GameSettings (new); set_launch_options, configure_game_path, detected_installs, set_suppress_crash_reporter all accept Option<String> game_id defaulting to "pd3" for backwards compatibility. On first launch after an upgrade from the old Tauri identifier, migrate_from_old_identifier copies settings.json and mod-index.db from %APPDATA%\io.github.shulhaoleh.pd3modmanager\ on Windows, ~/.config/io.github.shulhaoleh.pd3modmanager/ on Linux. Called from run() in lib.rs, see the startup sequence in src-tauri/AGENTS.md. reset_app_settings factory-resets settings.json to Settings::default() through update_settings (clearing every game path, launcher choice, analytics consent + id, and preference); it never touches installed mods, game files, or the on-disk caches. The renderer pairs it with wiping all modrex: localStorage keys and reloading, for a genuine first-run reset.

  • api.rs — modworkshop REST API via one pooled reqwest client. get_mod is the authoritative detail contract and carries computed version plus the current default download; list_mods is browse/display metadata and deliberately carries neither. get_mod_versions calls /mods/versions, deduplicates IDs, chunks at the verified 100-ID maximum, and returns explicit known/unversioned/missing/failed states matched by ID. list_mods accepts repeated ids[] for bulk display metadata and tags[]/block_tags[] for Browse filters. modworkshop enforces 90 req/min per IP, shared across every endpoint. Requests share a token bucket (burst 4, 1.3 req/s sustained), remaining-budget slowdown, a three-request semaphore, and one pooled client. Transport failures and 408/429/5xx responses retry up to three sends with bounded Retry-After or jittered exponential backoff; permanent 4xx responses fail immediately. HTTP_CLIENT invariant: every outgoing HTTP request anywhere in the Rust backend must go through http_client() from api.rs — never call reqwest::Client::new() directly. Both http_client() and user_agent(app) are pub(crate).

Read the full file on GitHub · 44 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. 7d ago Changed 2afdc2673b4e
  2. 14d ago First seen · 44 lines · 0 tokens per session scan A 42d52f4c7433

Subscribe to this mod's changes

AGENTS is a command published in the GitHub repository modrexio/modrex (21 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,617 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

AGENTS compared with commands from other repositories

AGENTS next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
AGENTSmodrexio/modrexCommand212d agoMITA0Claude Code
browseros-reviewbrowseros-ai/BrowserOSCommand15k2d agoAGPL-3.0A0Claude Code
tokenless-statsalibaba/anolisaCommand6888d agoApache-2.0A10Claude Code
port-loopangelwzr/linux-phone-portingCommand585d agoCC-BY-4.0A26Claude Code
retroatxtechbro/dotfilesCommand2811d agononeA6Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code