agent-sop: Instructions file for Codex

AGENTS.md

agent-sop AGENTS.md is an instructions file for Codex, OpenCode from strands-agents/agent-sop. It costs 2,087 tokens per session, scanned A, original, Apache-2.0.

Project instructions for an AI assistant working on Agent SOP, a Python package for defining repeatable natural-language workflows. They explain the project structure, development patterns, and SOP format.

In plain words
What is it for?
Use them when editing the Python package, command-line entry points, MCP integration, workflow definitions, tests, specifications, or conversion to Agent Skills.
Why use it?
They give the assistant the context needed to make changes that fit the package and its workflow-definition files.

Instructions file for CodexOpenCode

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

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

About the project

Agent SOP is a collection and format for writing reusable, parameterized natural-language procedures that guide AI agents through complex multi-step work. Teams use these standard operating procedures for tasks such as codebase analysis, project planning, system design, and code implementation. The catalogue add-ons distribute or apply these workflows through agent skills, plugins, and related interfaces.

strands-agents/agent-sop · 1,214 stars · on GitHub · aws.amazon.com

Reuse

Borrowing it

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

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 agent-sop AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/strands-agents/agent-sop/agents-md"><img src="https://agentmods.dev/badge/instructions/strands-agents/agent-sop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,087 This file is loaded in full into every session.
When invoked 2,087 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.02087 $0.02087
Opus 5.5 $0.00835 $0.00835
Sonnet 5.5 $0.00417 $0.00417
Haiku 4.5 $0.00209 $0.00209

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

Security

Grade A, and why

agent-sop 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 16d 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 · 267 lines

How it starts

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

AGENTS.md - AI Assistant Context for Agent SOP Project

Project Overview

Agent SOP provides natural language workflows that enable AI agents to perform complex, multi-step tasks with consistency and reliability. This is a Python package that implements the Model Context Protocol (MCP) for AI assistant integration and supports conversion to Agent Skills format.

Directory Structure

agent-sop/
├── python/strands_agents_sops/    # Main Python package
│   ├── __main__.py               # CLI entry point (mcp|skills|rule commands)
│   ├── mcp.py                    # MCP server implementation
│   ├── skills.py                 # Agent Skills conversion
│   └── utils.py                  # Shared SOP utilities
├── agent-sops/                   # Source SOP definitions
│   ├── codebase-summary.sop.md   # Documentation generation workflow
│   ├── code-assist.sop.md        # TDD implementation workflow
│   ├── code-task-generator.sop.md # Task breakdown workflow
│   └── pdd.sop.md               # Prompt-driven development workflow
├── python/tests/                 # Comprehensive test suite
├── spec/                         # SOP format specification
└── rules/                        # SOP authoring guidelines

Development Patterns

SOP Format Structure

All SOPs follow this standardized format:

# SOP Title

## Overview
Brief description of what this SOP accomplishes and when to use it.

## Parameters
- **required_param** (required): Description of required input
- **optional_param** (optional, default: value): Description with default

## Steps
### 1. Step Name
Description of what this step accomplishes.

**Constraints:**
- You MUST perform required actions
- You SHOULD follow recommended practices
- You MAY include optional enhancements
- You MUST NOT perform prohibited actions

## Examples
Concrete usage examples showing input and expected outcomes.

## Troubleshooting
Common issues and their solutions.

RFC 2119 Constraint Keywords

  • MUST: Required actions that cannot be skipped
  • MUST NOT: Prohibited behaviors, forbidden actions
  • SHOULD: Recommended practices for optimal results
  • SHOULD NOT: Not recommended, but not forbidden
  • MAY: Optional enhancements or alternatives

Read the full file on GitHub · 267 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. 16d ago Changed · +4 tokens per session 44ddb9938516
  2. 2mo ago First seen · 267 lines · 2,083 tokens per session scan A b3ec388fb088

Subscribe to this mod's changes

agent-sop AGENTS.md is an instructions file published in the GitHub repository strands-agents/agent-sop (1,214 stars, last pushed 13d ago), licensed Apache-2.0. It adds 2,087 tokens to every session, about $0.0083 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-08-30.

Related

agent-sop AGENTS.md compared with instructions from other repositories

agent-sop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-sop AGENTS.mdstrands-agents/agent-sopInstructions file1.2k13d agoApache-2.0A2,087Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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