gza AGENTS.md

gza AGENTS.md is an instructions file for Codex, OpenCode from mhawthorne/gza. It costs 1,834 tokens per session, scanned A, original, MIT.

A repository instruction file for gza, a command-line tool that lets coding agents add and run development tasks. It records essential commands and rules for how the agent should work.

In plain words
What is it for?
Use it to define task commands, documentation locations, merge rules, migration steps, and guidance for handling pytest hangs and other project-specific constraints.
Why use it?
It gives the agent the project’s critical operating rules in one small file, while keeping detailed documentation elsewhere. This reduces incorrect commands and behavior such as running the wrong gza entry point.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mhawthorne/gza/agents-md.svg)](https://agentmods.dev/instructions/mhawthorne/gza/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mhawthorne/gza/agents-md"><img src="https://agentmods.dev/badge/instructions/mhawthorne/gza/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,834 This file is loaded in full into every session.
When invoked 1,834 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.01834 $0.01834
Opus 5 $0.00917 $0.00917
Sonnet 5 $0.00367 $0.00367
Haiku 4.5 $0.00183 $0.00183

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

Security

Grade A, and why

gza 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 4d 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 · 100 lines

How it starts

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

Gza

A coding AI agent runner for Claude Code. Keep AGENTS.md under 100 lines. Move details to docs/. This file is for critical agent behavioral rules only.

Essential Commands

Always use uv run gza (not gza directly or python -m gza).

gza add "prompt"          # Add a task (default type: implement)
gza work [-b]             # Run next pending task (-b for background)
gza next                  # List pending tasks
gza history               # List recent completed/failed tasks
gza advance               # Progress unmerged tasks through lifecycle
gza lineage <id>          # Show task's ancestor/descendant tree
gza migrate [--status]    # Run manual DB migrations (e.g. v25/v26 task-ID migrations)

See docs/ for detailed documentation:

Critical Rules

Task management: When the user mentions "task", "add a task", or asks to track something for later, use uv run gza add "...". NEVER edit etc/todo.txt or other files manually.

Default to filing a gza task: When the user asks for a substantive code change (a feature, fix, or refactor), file it with uv run gza add rather than editing inline — do NOT start editing right away. Work in-line only when the user explicitly says to, or for trivial edits. If unsure which way they want it, ask before implementing.

Config example artifacts: If you change any discoverable config key/default, regenerate src/gza/gza.yaml.example and src/gza/gza.local.yaml.example via uv run gza config example --write and uv run gza config example --local --write, then commit them.

Read the full file on GitHub · 100 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. 4d ago First seen · 100 lines · 1,834 tokens per session scan A d46b82d4f642

Subscribe to this mod's changes

gza AGENTS.md is an instructions file published in the GitHub repository mhawthorne/gza (12 stars, last pushed today), licensed MIT. It adds 1,834 tokens to every session, about $0.0092 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.