yet-another-agent-harness: Instructions file for Codex

AGENTS.md

yet-another-agent-harness AGENTS.md is an instructions file for Codex, OpenCode from dirien/yet-another-agent-harness. It costs 2,368 tokens per session, scanned A, original, MIT.

A project instruction document for the Yet Another Agent Harness repository. It records verified commands, the development workflow, the file map, and reference examples for agents working on the codebase.

In plain words
What is it for?
Use it to find the right build, formatting, and test commands; locate code; follow before-and-after change checks; and use the repository's established patterns.
Why use it?
It gives an agent the repository-specific rules and commands needed to make changes and verify them correctly.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions AGENTS.md; mentions Codex.

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

Reuse

Borrowing it

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

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 yet-another-agent-harness AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dirien/yet-another-agent-harness/agents-md"><img src="https://agentmods.dev/badge/instructions/dirien/yet-another-agent-harness/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,368 This file is loaded in full into every session.
When invoked 2,368 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.02368 $0.02368
Opus 5.5 $0.00947 $0.00947
Sonnet 5.5 $0.00474 $0.00474
Haiku 4.5 $0.00237 $0.00237

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

Security

Grade A, and why

yet-another-agent-harness 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 3mo 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 · 194 lines

How it starts

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

AGENTS.md

Precedence: the closest AGENTS.md to the files you're changing wins. Root holds global defaults only.

Commands (verified)

Source: go.mod + CI (.github/workflows/ci.yaml) — CI-sourced commands are most reliable

Task Command ~Time
Typecheck go build -v ./... ~15s
Format gofmt -w . ~5s
Test (single) go test -v -race ./path/to/pkg ~2s
Test (all) go test -v -race -short ./... ~30s
Build go build -v ./cmd/yaah ~15s
Install locally go install ./cmd/yaah ~15s

If commands fail, verify against go.mod or ask user to update.

Workflow

  1. Before coding: Read nearest AGENTS.md + check Golden Samples for the area you're touching
  2. After each change: Run the smallest relevant check (typecheck → single test)
  3. Before committing: Run full test suite if changes affect >2 files or touch shared code
  4. Before claiming done: Run verification and show output as evidence — never say "try again" or "should work now" without proof

File Map

cmd/yaah/           -> CLI entry point (cobra root command)
pkg/catalog/        -> Skill catalog, bundles, discovery, and validation
pkg/harness/        -> Top-level orchestrator wiring all registries
pkg/hooks/          -> Hook registry + handler interface
pkg/hooks/handlers/ -> Built-in handlers (linter, command-guard, secret-scanner, comment-checker, session-logger)
pkg/mcp/            -> MCP server registry + provider interface
pkg/mcp/providers/  -> Built-in MCP providers (yaah, context7, pulumi)
pkg/lsp/            -> LSP registry + provider interface
pkg/lsp/providers/  -> Built-in LSP providers (gopls, pyright, typescript, csharp)
pkg/skills/         -> Skill registry + loader
pkg/skills/builtins/-> Built-in skill definitions (commit, pr, review)
pkg/agents/         -> Agent registry + loader
pkg/commands/       -> Custom CLI command registry
pkg/plugins/        -> Plugin registry
pkg/generator/      -> Per-agent config generators (claude, opencode, codex, copilot)
pkg/schema/         -> Settings types + defaults
pkg/session/        -> Session audit log store
pkg/gitcache/       -> Git-based caching for remote skills/agents
pkg/mcpserver/      -> Built-in MCP server runtime (stdio transport)
internal/cli/       -> CLI wiring (cobra commands, flag parsing)
docs/               -> Component deep-dive + configuration reference
website/            -> Static marketing site (auto-deployed to GitHub Pages)
.claude/skills/     -> Generated + remote skill definitions
.claude/agents/     -> Generated + remote agent definitions
.github/workflows/  -> CI (ci.yaml) + Pages deploy (deploy-pages.yaml)

Read the full file on GitHub · 194 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. 3mo ago First seen · 194 lines · 2,368 tokens per session scan A eaa7140161d2

Subscribe to this mod's changes

yet-another-agent-harness AGENTS.md is an instructions file published in the GitHub repository dirien/yet-another-agent-harness (19 stars, last pushed 6mo ago), licensed MIT. It adds 2,368 tokens to every session, about $0.0095 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-03.

Related

yet-another-agent-harness AGENTS.md compared with instructions from other repositories

yet-another-agent-harness AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yet-another-agent-harness AGENTS.mddirien/yet-another-agent-harnessInstructions file196mo agoMITA2,368Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291ktodayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot