Borrowing it
Nothing to install: this file belongs to paultyng/testagent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/paultyng/testagent/main/AGENTS.mdgit clone --depth 1 https://github.com/paultyng/testagentWrote 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.
[](https://agentmods.dev/instructions/paultyng/testagent/agents-md)<a href="https://agentmods.dev/instructions/paultyng/testagent/agents-md"><img src="https://agentmods.dev/badge/instructions/paultyng/testagent/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.
<a href="https://agentmods.dev/instructions/paultyng/testagent/agents-md"><img src="https://agentmods.dev/badge/instructions/paultyng/testagent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02165 | $0.02165 |
| Opus 5.5 | $0.00866 | $0.00866 |
| Sonnet 5.5 | $0.00433 | $0.00433 |
| Haiku 4.5 | $0.00216 | $0.00216 |
Grade A, and why
testagent 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Context for AI agents working on this repo. (Cursor, Claude Code, and others read this file.)
What is testagent?
A fake CLI agent for testing orchestration tooling that drives real coding agents (Claude Code, Codex, Gemini, GitHub Copilot CLI, etc.). Runs as an interactive PTY process; emits the same kinds of terminal artifacts (boxed tool-use blocks, streaming text, in-place updates) and the same protocol traffic (HTTP hooks, MCP JSON-RPC) as a real agent — without calling any LLM.
The product framing is deterministic output for tests, not "no LLM" as a virtue. Wiring a local LLM into a test harness is a valid choice for some workflows; testagent is explicitly not that. Every assertion-relevant byte (slash dispatch, hook payloads, MCP frames, stream-json shapes) is scripted by the user, not generated, so tests stay stable across runs.
v1 ships a drop-in fake for Claude Code: argv compatibility for the flags orchestrators commonly emit, HTTP and command hooks (UserPromptSubmit / PreToolUse / PostToolUse / Stop / SessionStart / SessionEnd / PreCompact / PostCompact), an MCP HTTP client that handshakes and dispatches tools/call, --print --output-format stream-json for non-interactive callers, a slash-command grammar for driving UI primitives interactively (including /clear and /compact which fire the corresponding hook lifecycles without restarting the process), and lipgloss-rendered plausible-shape output.
Future phases
| Phase | What |
|---|---|
| 3+ | Vendor-neutral refactor; per-agent-type subcommands + packages (see Future conventions); adapters for codex, gemini, copilot, plus tier-2 (aider, amp, q, goose, crush); conformance tests against captured real-vendor traffic |
| release | goreleaser cross-OS binaries (darwin/linux/windows × amd64/arm64) + signed releases |
Design conventions
- Schema types are duplicated, not imported.
SettingsandMCPConfigmirror Claude Code's on-disk shapes and live incmd/claude/settings.go(vendor-specific, not shared with the engine). - Stdlib-first; deps are deliberate. Each non-stdlib dep is justified in the commit message that adds it (
mark3labs/mcp-go,lipgloss,bubbletea,bubbles,go-isatty,spf13/cobra). - Interactive vs non-interactive split. TTY stdin → bubbletea TUI (
internal/engine/tui.go, inline rendering with native terminal scrollback, concurrent input during the thinking spinner). Piped stdin → scanner loop (internal/engine/scanner.go, line-based, inline rendering).--print/-pis a third path (cmd/claude/print.go, one-shot output formatter). Themattn/go-isattycheck onos.Stdinis the TUI/scanner gate; e2e tests pipe stdin so they always hit the scanner path. - Conventional Commits. One commit per phase. Each phase's commit leaves the tree buildable and tested.
- Tests:
t.Parallel(), table-driven, realhttptest/exec-driven integration over mocks where possible (seee2e_test.go). Fixtures intestdata/. Time-dependent helpers (anything that callstime.Sleep/time.NewTimer/tea.Tickoutside real network IO) usetesting/synctestso virtual time advances without real wall-clock waits — seeinternal/engine/{spinner,stream}_test.gofor the pattern. - Debug output goes to stderr. Verbose / debug logging (e.g.
--verbosehook traces) is plain text, one event per line, never ANSI-styled — it gets grepped and piped. Stdout stays reserved for stream-json frames and TUI rendering. COMPATIBILITY.mdis the contract artifact. It is the per-vendor source of record for which flags, slash commands, and REPL behaviors testagent implements, accepts, or omits. Update it when adding vendor-facing features. Use theupdate-compatibilityskill (one skill, dispatches by vendor —claude,codex, orcursor) to refresh a section after an upstream release or when drift is detected. Per-vendor source URLs, probing recipes, and matrix templates live under the skill'svendors/<name>/subdirectories. Cursor adapter is in early-stage planning — the template is ready; vendor wiring lands in a future phase.RELEASING.mdis the release-policy doc (semver scope, bump table, runbooks). When cutting a release, drive it through thepublish-releaseskill, which executes RELEASING.md step by step and gates on the two human decisions (version number, release-notes copy).
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.
- 1mo ago First seen · 94 lines · 2,165 tokens per session scan A 64a998e412fe
testagent AGENTS.md is an instructions file published in the GitHub repository paultyng/testagent (7 stars, last pushed 1mo ago), licensed MIT. It adds 2,165 tokens to every session, about $0.0087 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-08-31.
Other instructions, from other repositories
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.