agent-guides AGENTS.md

agent-guides AGENTS.md is an instructions file for Codex, OpenCode from sawrus/agent-guides. It costs 1,027 tokens per session, scanned A, original, MIT.

A repository instruction file for agent-guides that explains how coding agents should work in the project. It covers loading project-specific guidance, development practices, Git workflow, and Makefile conventions.

In plain words
What is it for?
Use it when working on the agent-guides repository, especially before editing files or using its Git and Makefile workflows. It directs agents to inspect .agent guidance files when present.
Why use it?
It helps an agent find the right local rules before changing code. It also reduces inconsistent Git and project-command practices.

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/sawrus/agent-guides/agents-md
Clone the repo
git clone --depth 1 https://github.com/sawrus/agent-guides

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sawrus/agent-guides/agents-md.svg)](https://agentmods.dev/instructions/sawrus/agent-guides/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sawrus/agent-guides/agents-md"><img src="https://agentmods.dev/badge/instructions/sawrus/agent-guides/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,027 This file is loaded in full into every session.
When invoked 1,027 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01027 $0.01027
Opus 5 $0.00513 $0.00513
Sonnet 5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

Measured 3d ago against content hash 358859d35958, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-guides 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.

AGENTS.md · 121 lines

How it starts

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

AGENTS — root guidance

Dynamic guidance loading

The loaded guidance set is project-specific and may change per task. Do not assume the statically listed files are complete; first discover optional guidance under the target project's .agent/ directory.

Discover and load guidance in this order:

  1. .agent/*.md — project baseline files, when present
  2. .agent/rules/*.md — all project rules
  3. .agent/skills/*/SKILL.md — only the skill matching the current task
  4. .agent/workflows/*.md — only the workflow matching the triggered command
  5. .agent/prompts/*.md — only when explicitly requested or referenced by loaded guidance

Prefer relative paths in references inside markdown files.


General Development Practices

Cross-cutting practices that apply to every project regardless of area.

Git Workflow

  • Use feature branches with task IDs in branch names (e.g., feat/TASK-123-add-auth).
  • Commit messages include context: what changed, why, and any relevant ticket reference.
  • No direct commits to main or protected branches — all changes via reviewed PRs.

Makefile Conventions

  • Use Makefile for common development tasks accessible to all contributors.
  • Include a help target listing available commands with descriptions.
  • Standard targets: install, dev, test, lint, fmt, clean, build.

Docker Compose

  • Use docker-compose for local multi-service development.
  • Configure health checks for all dependent services before marking ready.
  • Drive configuration via environment variables; no hardcoded values.

Linting and Formatting

  • Configure language-appropriate linters for every project.
  • Enforce standards via pre-commit hooks — CI is a safety net, not the primary check.
  • Apply consistent formatting across all files on every commit.

SDLC Methodology

  • Follow phases in order: Requirements → Design → Implementation → Verification → Deployment → Maintenance.
  • Document requirements before implementation — "we'll figure it out" is not a requirement.
  • Conduct design reviews for any change with architectural, security, or data model impact.
  • Before changing project logic, read the relevant design and behavior documents under docs/**.
  • Run validation, tests, coverage, and CI-style checks through Makefile targets only.

Read the full file on GitHub · 121 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. 3d ago First seen · 121 lines · 1,027 tokens per session scan A 358859d35958

Subscribe to this mod's changes

agent-guides AGENTS.md is an instructions file published in the GitHub repository sawrus/agent-guides (17 stars, last pushed 3d ago), licensed MIT. It adds 1,027 tokens to every session, about $0.0051 per session on Opus 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

Other instructions, from other repositories

agent-skills AGENTS.md

AGENTS.md instructions for tech-leads-club/agent-skills, covering agents.md, workflow orchestration, 1. plan mode default, 2. subagent strategy and 3. verification before done.

tech-leads-club/agent-skills · 1,570 tokens

free-ai-gateway AGENTS.md

Instructions for zaber-dev/free-ai-gateway, covering 🤖 free-ai gateway - agentic development guidelines, 🏛️ monorepo architecture & package boundaries, 🛑 strict architectural rules for agents, 💻 essential developer commands and build all packages across monorepo.

zaber-dev/free-ai-gateway · 955 tokens

addyosmani-agent-skills-zh CLAUDE.md

Claude Code instructions for vinvcn/addyosmani-agent-skills-zh, covering agent-skills, 项目结构, 按阶段划分的 skills, 约定 and 命令.

vinvcn/addyosmani-agent-skills-zh · 476 tokens

agentforge CLAUDE.md

Instructions for mrzroot/agentforge, covering claude.md - project directives for claude code, project overview: agentforge, commands & environment, code architecture & philosophy and architectural conventions.

mrzroot/agentforge · 305 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens