agent-tests

agent-tests is a skill for Claude Code from dylanroscover/Embody. It costs 56 tokens per session (1,465 once invoked), scanned B, original, MIT.

A guide for running tests that use real AI clients, such as Claude Code and Codex, to check an MCP connection from start to finish.

In plain words
What is it for?
Use it when checking that AI clients can connect to Envoy's MCP tools, complete a handshake, see the expected tools, and perform selected calls.
Why use it?
These tests can use paid AI subscription capacity, so running them accidentally is costly. The guide keeps them separate from normal test runs and explains how to run them safely.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Claude Code; reads ~/.codex paths.

Good fit Use it when checking that AI clients can connect to Envoy's MCP tools, complete a handshake, see the expected tools, and perform selected calls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dylanroscover/embody/agent-tests
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.

Any agent
npx skills add dylanroscover/Embody --skill agent-tests
Clone the repo
git clone --depth 1 https://github.com/dylanroscover/Embody

Made for: Claude Code.

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-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/dylanroscover/embody/agent-tests/github.svg)](https://agentmods.dev/skills/dylanroscover/embody/agent-tests)
Your own site
<a href="https://agentmods.dev/skills/dylanroscover/embody/agent-tests"><img src="https://agentmods.dev/badge/skills/dylanroscover/embody/agent-tests/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 agent-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/dylanroscover/embody/agent-tests"><img src="https://agentmods.dev/badge/skills/dylanroscover/embody/agent-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,465 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 68
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
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.00056 $0.01465
Opus 5.5 $0.00022 $0.00586
Sonnet 5.5 $0.00011 $0.00293
Haiku 4.5 $0.00006 $0.00146

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

Security

Grade B, and why

agent-tests scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`.mcp.json`; the user's `~/.codex/config.toml` is never touched), with
.claude/skills/agent-tests/SKILL.md · 105 lines

How it starts

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

Agent-Tier Tests (AI-client connectivity)

The AGENT tier verifies that real AI clients -- Claude Code, Codex, and a deterministic MCP contract client -- can reach and correctly use Envoy's MCP tools end to end. Like destructive-tests.md, this is a dev-only convention for the Embody test harness -- it has NO shipped template counterpart.

The tier model

  • Suites inherit AgentTestCase (which carries AGENT = True). They are EXCLUDED from RunTests / RunTestsSync / RunTestsDeferred* AND from RunDestructiveTests by _discoverTestSuites' tier filter. Do not remove that guard: a normal full run must never spawn AI clients or burn subscription usage silently.
  • They run ONLY via op.unit_tests.RunAgentTests(suite_name=None, test_name=None, delay_frames=30) -- fire-and-forget; poll GetResults().
  • Two layers:
    • Tier 1 (test_agent_contract): no LLM. An out-of-process stdlib MCP client (agent_clients/mcp_contract_client.py) spawns the EXACT bridge command from .mcp.json and checks handshake, tool inventory vs the EXPECTED_ENVOY_TOOLS manifest, and a curated call sequence. This is the cheap, deterministic half -- run it first when diagnosing.
    • Tier 2 (test_agent_smoke_claude / test_agent_smoke_codex): a real agent on scripted micro-tasks, verified against LIVE TD state (probe op exists with the exact run token), never the agent's prose alone.

Why the runner is async (do not "simplify" it)

Envoy drains MCP requests on TD's MAIN thread (max 5 per frame). A test that blocks the main thread while an agent subprocess makes MCP calls deadlocks the very tools under test until every call times out. So RunAgentTests launches subprocesses non-blocking (stdout/stderr to temp FILES -- an unread PIPE deadlocks the child at ~64KB; stdin always DEVNULL -- codex exec hangs probing a silent stdin pipe on Windows, openai/codex#20919) and polls them via a run(delayFrames=N) chain using the STRING-EXPRESSION form, so a mid-run extension reinit cannot strand the state machine on a stale instance. Timeouts kill the whole process TREE (the CLIs spawn the bridge as a child).

Read the full file on GitHub · 105 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. 1mo ago First seen · 105 lines · 56 tokens per session scan B 5001c371c7e3

Subscribe to this mod's changes

agent-tests is a skill published in the GitHub repository dylanroscover/Embody (208 stars, last pushed 3d ago), licensed MIT. It adds 56 tokens to every session and 1,465 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent, tool-using workflow, multi-turn chatbot, RAG pipeline, or LLM app; add evals; generate datasets or goldens; use deepeval generate; use deepeval test run; send results to Confident AI…

confident-ai/deepeval · 229 tokens

llm-patterns

AI-first application patterns, LLM testing, prompt management.

alinaqi/maggy · 16 tokens

creating-online-evaluations

Author continuously-running online evaluations in PostHog AI observability, grounded in real failure modes you've identified. Use when the user wants evaluations that automatically score new generations or whole traces going forward — "create an eval to catch X", "continuously check that responses do Y", "turn these…

PostHog/posthog · 205 tokens

opik-test

Turn a failing Opik trace (or a described failure) into a repeatable regression check — a test-suite item with the trace's input and one or two binary assertions — so a fix can be verified by the compare skill. Works over the SDK; uses the MCP write tool when connected. Returns the suite, the item, and the assertion.…

comet-ml/opik-mcp · 141 tokens

python-api

This skill should be used when writing, editing, or debugging Python code that runs inside TouchDesigner — scripts, expressions, DAT callbacks, Extensions, or one-off snippets passed to executepythonscript — or whenever there is uncertainty about a td class's methods, members, or module-level API. Trigger phrases…

8beeeaaat/touchdesigner-mcp · 117 tokens

guardrails-developer-create-guardrails

Helps developers create a NeMo Guardrails configuration for an LLM application. Use when users want to build, scaffold, configure, test, or iterate on input, output, retrieval, dialog, execution, Colang, or catalog-based guardrails. Trigger keywords - create guardrails, build guardrails, scaffold config, write rails…

NVIDIA-NeMo/Guardrails · 101 tokens