agent-manager AGENTS.md

agent-manager AGENTS.md is an instructions file for Codex, OpenCode from YoanWai/agent-manager. It costs 1,092 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for coding agents working on the agent-manager Go project, including project notes, testing, concurrent work, and releases.

In plain words
What is it for?
Use it when building, testing, reviewing, or releasing this project. A worktree is a separate working copy of a Git repository, and tmux is a tool for running multiple terminal sessions.
Why use it?
It reduces mistakes when several agents share the same code checkout, especially around Git worktrees, tmux-based tests, formatting, and release preparation.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yoanwai/agent-manager/agents-md.svg)](https://agentmods.dev/instructions/yoanwai/agent-manager/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yoanwai/agent-manager/agents-md"><img src="https://agentmods.dev/badge/instructions/yoanwai/agent-manager/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,092 This file is loaded in full into every session.
When invoked 1,092 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.01092 $0.01092
Opus 5 $0.00546 $0.00546
Sonnet 5 $0.00218 $0.00218
Haiku 4.5 $0.00109 $0.00109

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

Security

Grade A, and why

agent-manager 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 · 98 lines

How it starts

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

Agent notes

Project context for coding agents. Human setup and PR conventions live in .github/CONTRIBUTING.md.

Build and test

go run .                                        # run the TUI
go build ./...
env -u TMUX TMUX_TMPDIR=/tmp/amtest go test ./...

The suite drives a real tmux server. When your own shell already runs inside tmux, $TMUX overrides TMUX_TMPDIR and the tests land on the live socket, so env -u TMUX is mandatory, never a bare go test. Keep the socket dir short: TMUX_TMPDIR/tmux-<uid>/default must stay under 104 characters or tmux silently falls back to the default socket. Never run tmux kill-server or kill-session against the default socket; kill stray processes by PID.

Before finishing: gofmt -l . prints nothing, go vet ./... is clean.

Concurrent sessions

Multiple agent sessions share this checkout. Do feature work in an isolated git worktree (git worktree add), or your edits get swept into someone else's commit. Branch from origin/main after a fetch, not from the local main ref.

Releases

Cut from a clean worktree at the tag, with goreleaser run locally; there is no release workflow in CI.

tag=v0.30.0                       # the release being cut
git tag "$tag" && git push origin "$tag"
git worktree add /tmp/amrel "$tag"
cd /tmp/amrel && GITHUB_TOKEN="$(gh auth token)" AUR_KEY="$HOME/.ssh/aur_agent_manager" \
  goreleaser release --clean

AUR_KEY is what publishes the Arch package: without it git_url templates to empty, goreleaser skips that step, and the release still reports success while the AUR package goes stale.

The notes carry more than the generated list of pull requests:

  • A summary in your own words, at the top, saying what the release gives someone who installs it. Two or three sentences, the change first and the mechanism second. The generated list says which pull requests landed; it does not say what is different now.
  • A ## Highlights section above ## What's Changed, holding short bullets, one per thing the release gives someone. The manager reads exactly those bullets into its messages panel, so write them for a modal: a sentence each, feature and fix language, no pull request numbers. Prose in that section stays on the web page; only bullets travel. A release without the section falls back to the generated list, filtered to feat, fix and perf.
  • Thanks to every contributor in the range, by handle. Read the merged pull requests, not only the generated list, and name what each one did.
  • Thanks to whoever reported what got fixed, by handle. A bug someone took the time to write up is why the fix exists, and the reporter is usually not the author. Credit the release a feature builds on, too, when it extends someone else's work.

Read the full file on GitHub · 98 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 · 98 lines · 1,092 tokens per session scan A d8b90c350c59

Subscribe to this mod's changes

agent-manager AGENTS.md is an instructions file published in the GitHub repository YoanWai/agent-manager (374 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,092 tokens to every session, about $0.0055 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.