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.
git clone --depth 1 https://github.com/modrexio/modrexWrote 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.
[](https://agentmods.dev/commands/modrexio/modrex/agents)<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.
<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>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.
| Model | Per session | Once 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 |
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` 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/writessettings.jsonin Tauri'sapp_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>>.GameSettingsholdsgame_path?/launcher?(genuinely optional — not-yet-detected) plusinstall_pinned(seesrc-tauri/src/commands/launchers/AGENTS.md: the two path fields name one store's copy together, and there is deliberately no command that writeslauncheron its own — the removedset_launcherwas exactly that, and it let Modrex mod one copy while launching another) pluslaunch_options/suppress_crash_reporter/crimeboss_install_modeper game. The latter three, and everySettingsfield 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-Optiontypes with#[serde(default[ = "fn"])]rather thanOption<T>—nullnever appears in settings.json for a field that only ever means "use the default";Optionis reserved for fields with a real third state (not-yet-detected paths/launcher,analytics_id,nexus_oauth, or the legacy flat fields below). BothGameSettingsandSettingshave hand-writtenimpl 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 newgamesmap.migrate_settings(s: Settings) -> Settingspromotes legacy flat fields togames["pd3"]on first read — called insideread_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_reporterall acceptOption<String> game_iddefaulting to"pd3"for backwards compatibility. On first launch after an upgrade from the old Tauri identifier,migrate_from_old_identifiercopiessettings.jsonandmod-index.dbfrom%APPDATA%\io.github.shulhaoleh.pd3modmanager\on Windows,~/.config/io.github.shulhaoleh.pd3modmanager/on Linux. Called fromrun()inlib.rs, see the startup sequence insrc-tauri/AGENTS.md.reset_app_settingsfactory-resets settings.json toSettings::default()throughupdate_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 allmodrex:localStorage keys and reloading, for a genuine first-run reset. -
api.rs— modworkshop REST API via one pooledreqwestclient.get_modis the authoritative detail contract and carries computedversionplus the current defaultdownload;list_modsis browse/display metadata and deliberately carries neither.get_mod_versionscalls/mods/versions, deduplicates IDs, chunks at the verified 100-ID maximum, and returns explicit known/unversioned/missing/failed states matched by ID.list_modsaccepts repeatedids[]for bulk display metadata andtags[]/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 boundedRetry-Afteror jittered exponential backoff; permanent 4xx responses fail immediately. HTTP_CLIENT invariant: every outgoing HTTP request anywhere in the Rust backend must go throughhttp_client()fromapi.rs— never callreqwest::Client::new()directly. Bothhttp_client()anduser_agent(app)arepub(crate).
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.
- 7d ago Changed 2afdc2673b4e
- 14d ago First seen · 44 lines · 0 tokens per session scan A 42d52f4c7433
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.
AGENTS compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| AGENTSmodrexio/modrex | Command | 21 | 2d ago | MIT | A | 0 | Claude Code |
| browseros-reviewbrowseros-ai/BrowserOS | Command | 15k | 2d ago | AGPL-3.0 | A | 0 | Claude Code |
| tokenless-statsalibaba/anolisa | Command | 688 | 8d ago | Apache-2.0 | A | 10 | Claude Code |
| port-loopangelwzr/linux-phone-porting | Command | 58 | 5d ago | CC-BY-4.0 | A | 26 | Claude Code |
| retroatxtechbro/dotfiles | Command | 28 | 11d ago | none | A | 6 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 27 | Claude Code |