swarmux: Instructions file for Codex

AGENTS.md

swarmux AGENTS.md is an instructions file for Codex, OpenCode from soolaxx/swarmux. It costs 346 tokens per session, scanned A, a copy of swarmux AGENTS.md, MIT.

A set of repository instructions for designing command-line tools that are predictable for both people and software. It defines rules for JSON output, stable interfaces, explicit inputs, and clear errors.

In plain words
What is it for?
Use it when building or changing command-line commands, flags, output fields, validation, exit codes, and machine-readable responses.
Why use it?
It prevents scripts and coding agents from breaking when command output or options change. It also reduces problems caused by prompts, hidden defaults, ambiguous parsing, and mixed data formats.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is soolaxx/swarmux's own configuration. It tells Codex and OpenCode how to work on swarmux itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything swarmux configures →

Reuse

Borrowing it

Nothing to install: this file belongs to soolaxx/swarmux. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/soolaxx/swarmux/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/soolaxx/swarmux

Made for: Codex, OpenCode.

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 swarmux AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/soolaxx/swarmux/agents-md"><img src="https://agentmods.dev/badge/instructions/soolaxx/swarmux/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 346 This file is loaded in full into every session.
When invoked 346 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00346 $0.00346
Opus 5.5 $0.00138 $0.00138
Sonnet 5.5 $0.00069 $0.00069
Haiku 4.5 $0.00035 $0.00035

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

Security

Grade A, and why

swarmux 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 2mo 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.

Origin

This is a copy

100% identical to swarmux AGENTS.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 42 lines

What it actually says

Agent Instructions

All CLI implementation and CLI UX decisions in this repo must follow these rules:

  1. JSON-first contract
  • Every command must support machine-readable output.
  • Prefer JSON as the default for agent-facing paths.
  • Human-friendly text output is secondary and must not change machine semantics.
  1. Deterministic interfaces
  • Keep flags, field names, and output shapes stable.
  • Avoid ambiguous parsing and context-dependent behavior.
  • Treat CLI output as an API contract.
  1. Non-interactive by default
  • No prompts for normal execution paths.
  • No hidden defaults that require human interpretation.
  • Everything required for execution must be explicit in flags or JSON payloads.
  1. Separation of data and presentation
  • Do not encode presentation-only strings into machine fields.
  • Keep structured data in structured fields; render formatting only in text mode.
  1. Script/agent safety
  • Commands should be composable, predictable, and idempotent where possible.
  • Provide clear exit codes and actionable errors.
  • Prefer explicit validation errors over silent coercion.
  1. Verb-based task model
  • Use clear, action-oriented subcommands (submit, start, show, etc.).
  • Keep command behavior narrow and single-purpose.
  1. Validation and simulation
  • Validate inputs defensively (agents hallucinate malformed values).
  • Support dry-run/preview for mutating operations whenever feasible.
  1. Runtime semantics
  • tui is a first-class runtime beside headless and mirrored.
  • Runtime controls task/session execution only. Popup/window presentation belongs in tmux bindings or operator workflow, not in the core CLI contract.

If there is a conflict with existing CLI patterns, align with this rule set.

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. 2mo ago First seen · 42 lines · 346 tokens per session scan A 0390c4cc9a5d

Subscribe to this mod's changes

swarmux AGENTS.md is an instructions file published in the GitHub repository soolaxx/swarmux (1 stars, last pushed 25d ago), licensed MIT. It adds 346 tokens to every session, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to swarmux AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

swarmux AGENTS.md compared with instructions from other repositories

swarmux AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swarmux AGENTS.mdsoolaxx/swarmuxInstructions file125d agoMITA346Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode