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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.02368 $0.02368
Opus 5 $0.01184 $0.01184
Sonnet 5 $0.00474 $0.00474
Haiku 4.5 $0.00237 $0.00237

Measured 3d ago against content hash eaa7140161d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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 · 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. 3d 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 (20 stars, last pushed 3mo ago), licensed MIT. It adds 2,368 tokens to every session, about $0.0118 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-09-03.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 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

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 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