swarmux 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

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.

agentmods
npx agentmods add instructions/soolaxx/swarmux/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00346 $0.00346
Opus 5 $0.00173 $0.00173
Sonnet 5 $0.00069 $0.00069
Haiku 4.5 $0.00035 $0.00035

Measured 3d ago against content hash 0390c4cc9a5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 4d ago), licensed MIT. It adds 346 tokens to every session, about $0.0017 per session on Opus 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.