batty: Instructions file for Codex

AGENTS.md

batty AGENTS.md is an instructions file for Codex, OpenCode from jeffton/batty. It costs 664 tokens per session, scanned B, original, MIT.

Project-specific instructions for coding agents working in the batty repository. They cover repository guidance, dependency updates, and deployment tasks performed from inside batty.

In plain words
What is it for?
Following batty’s coding instructions, updating pi dependencies, and deploying batty from within the project.
Why use it?
They explain the project’s required workflow and help prevent unsafe or incorrect changes during development and deployment.

Instructions file for CodexOpenCode

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

This is jeffton/batty's own configuration. It tells Codex and OpenCode how to work on batty 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 batty configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jeffton/batty. 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/jeffton/batty/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/jeffton/batty

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jeffton/batty/agents-md"><img src="https://agentmods.dev/badge/instructions/jeffton/batty/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 664 This file is loaded in full into every session.
When invoked 664 The same file — it is already loaded in full.
Security scan B 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.00664 $0.00664
Opus 5.5 $0.00266 $0.00266
Sonnet 5.5 $0.00133 $0.00133
Haiku 4.5 $0.00066 $0.00066

Measured today against content hash eacbc46487cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

batty AGENTS.md scanned grade B 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 today.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Install the selected test-only Chromium and WebKit revisions before the full test suite; on Linux run `sudo -n bash scripts/setup-browser-isolation.sh --test` for pinned Chromium and `sudo -n bash scripts/setup-browser-i
AGENTS.md · 32 lines

How it starts

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

Development and deployment

Pull changes before starting work. Preserve concurrent changes.

Before pushing, validate the source:

pnpm check
pnpm test:all
bash scripts/deploy.test.sh
bash scripts/deploy-privileges.test.sh
pnpm build
node scripts/verify-startup.mjs
node scripts/verify-offline.mjs

Run Linux deployment regression checks on Linux. Get an independent review and address findings before pushing. During development, pnpm test runs the non-browser groups; it does not replace the full pre-push gate. On Arch, use pnpm test:all:isolated for that gate: it runs every group with WebKit in the pinned Ubuntu container. pnpm test:webkit runs the browser groups only; see the isolated WebKit setup in docs/operations.md.

Installations deploy validated commits. Deployment installs locked dependencies, builds and verifies service health and the expected build ID; do not rerun source checks, test suites or fixture-based offline tests there. The offline browser gate belongs before push.

Native cloud-browser viewing (H.264 capture/streaming) is intentionally Linux-only. macOS and Windows deployments must not add support, port it, or introduce a fallback unless the user explicitly requests that work. This restriction does not apply to ordinary headless browser tools, which remain cross-platform.

Browser dependency maintenance

Check current stable Patchright and Playwright releases together on every dependency review. Select Playwright Core using Patchright's upstream Playwright release and verify their installed browsers.json revisions agree; package version numbers need not match. Missing release notes or a GitHub release page alone do not justify a hold: inspect upstream commits/PRs, registry publication provenance and published package diffs, and document the actual changes and compatibility. Keep release-age and explicit migration holds. Dated reviews in docs/dependencies.md record past decisions, not ongoing holds. Reassess any hold against current releases rather than carrying it forward.

Read the full file on GitHub · 32 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. today Changed · +1 lines · +73 tokens per session scan A → B eacbc46487cf
  2. 5d ago Changed · +48 tokens per session 17c5ecda83d4
  3. 9d ago Changed · +2 lines · +124 tokens per session c6fff29b5045
  4. 10d ago Changed · +38 tokens per session 6491931eebfa
  5. 16d ago Changed · +6 lines · +149 tokens per session 3de987cfc63a
  6. 20d ago Changed · +2 lines · +60 tokens per session 3e1c00f4f09c
  7. 21d ago Changed · +1 lines · +9 tokens per session f0391d511cb4
  8. 26d ago Changed · -58 lines · -731 tokens per session bc230ce74505
  9. 1mo ago Changed · +1 lines · +86 tokens per session a62a1b2bf4a8
  10. 2mo ago First seen · 77 lines · 808 tokens per session scan A 7ccd343d3597

Subscribe to this mod's changes

batty AGENTS.md is an instructions file published in the GitHub repository jeffton/batty (41 stars, last pushed today), licensed MIT. It adds 664 tokens to every session, about $0.0027 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

batty AGENTS.md compared with instructions from other repositories

batty AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
batty AGENTS.mdjeffton/battyInstructions file41todayMITB664Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot