ministack: Instructions file for Codex

AGENTS.md

ministack AGENTS.md is an instructions file for Codex, OpenCode from ministackorg/ministack. It costs 1,200 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding agents working on MiniStack, including where services and tests belong and what to check before changing behavior.

In plain words
What is it for?
It guides work on MiniStack services, tests, service contracts, contribution requirements, and validation.
Why use it?
It gives coding agents the project's local rules, reducing misplaced changes and unvalidated or out-of-scope work.

Instructions file for CodexOpenCode

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

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

About the project

MiniStack is a local emulator of Amazon Web Services that lets software use AWS-like services on a developer's own machine instead of connecting to AWS. It supports more than 60 services and works with tools such as Terraform, AWS CLI, and SDKs, while using actual database containers for some services.

ministackorg/ministack · 5,106 stars · on GitHub · ministack.org

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ministackorg/ministack/agents-md"><img src="https://agentmods.dev/badge/instructions/ministackorg/ministack/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,200 This file is loaded in full into every session.
When invoked 1,200 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 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.01200 $0.01200
Opus 5.5 $0.00480 $0.00480
Sonnet 5.5 $0.00240 $0.00240
Haiku 4.5 $0.00120 $0.00120

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

Security

Grade A, and why

ministack 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 13d 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.

AGENTS.md · 93 lines

How it starts

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

AGENTS.md

Instructions for AI coding agents working in MiniStack. Read CONTRIBUTING.md before changing a service; it has the contribution process and examples.

Where to work

  • ministack/app.py owns service registration, dispatch, and reset.
  • ministack/core/router.py detects services; ministack/core/responses.py contains shared response and account/region helpers.
  • ministack/services/ contains service implementations. Start with the existing service module or package and its neighboring code.
  • tests/test_<service>.py is the usual test location; established services may have several test files. tests/conftest.py holds client fixtures and the _SERIAL_TESTS list.

Before changing behavior

  • New AWS services and infrastructure changes (Dockerfiles, CI workflows, pyproject.toml, dependencies) need a scoped GitHub issue before code is written. Check for overlapping work. Follow the scope agreed in the issue.
  • Keep additions focused on operations needed by a real use case. Do not add speculative API coverage or operations that return placeholder results.
  • Check the behavior and wire format against available evidence. Never claim behavior was validated against AWS unless it was actually run against a real AWS account. Label the evidence precisely as a real AWS observation (record region and account context when relevant), official AWS documentation, botocore service model inspection, existing tests or code, or inference; documentation, model inspection, and tests are not AWS validation. Match errors, status codes, and retry behavior.
  • If AWS has one fixed behavior, implement that behavior directly rather than adding a MiniStack setting. Add configuration only for choices MiniStack itself must make.

Service contracts

  • For routing and response formats, inspect the existing handler, core/router.py, and the relevant botocore model. Some services support multiple protocols. Preserve the wire format used by the operation being changed; see CONTRIBUTING.md for examples.
  • A new service needs an entry in SERVICE_REGISTRY in app.py and the routing needed in core/router.py. Follow an established service's module layout when extending it; not every helper or submodule needs its own routing pattern.
  • Every registered service module, including registered submodules, must define get_state(), load_persisted_state(data), and reset(). The registry and tests/test_persistence.py enforce this contract.
  • Keep resources isolated by account and region where AWS does. Follow the existing scoped-state helpers and check that persistence saves all tenants, not only the current request's tenant.
  • Keep AWS SDK clients out of service implementations. Use them in tests or for shape inspection during development. Follow nearby code for blocking Docker calls and avoid adding service locks without checking reentrant calls.

Read the full file on GitHub · 93 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. 13d ago Changed · +10 lines · +165 tokens per session aab5456d8839
  2. 21d ago Changed · +7 lines · +120 tokens per session 1ece18996c30
  3. 1mo ago First seen · 76 lines · 915 tokens per session scan A 60dc36f04775

Subscribe to this mod's changes

ministack AGENTS.md is an instructions file published in the GitHub repository ministackorg/ministack (5,106 stars, last pushed yesterday), licensed MIT. It adds 1,200 tokens to every session, about $0.0048 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.

Related

ministack AGENTS.md compared with instructions from other repositories

ministack AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ministack AGENTS.mdministackorg/ministackInstructions file5.1kyesterdayMITA1,200Codex, 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