dojo.md CLAUDE.md

dojo.md CLAUDE.md is an instructions file for coding agents from edholofy/dojo.md. It costs 3,168 tokens per session, scanned A, original, MIT.

Project instructions for dojo.md, a training arena that tests AI agents with scenarios, mock services, and automated checks. It also describes the project's commands, configuration, and architecture.

In plain words
What is it for?
It helps develop, build, test, and run dojo.md, including its scenario engine, mock layer, evaluator, and skill-generation system.
Why use it?
It gives coding agents the project context and expected commands so they can work consistently and run the right checks.

Instructions file

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/edholofy/dojo.md/claude-md
Clone the repo
git clone --depth 1 https://github.com/edholofy/dojo.md

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 dojo.md CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/edholofy/dojo.md/claude-md.svg)](https://agentmods.dev/instructions/edholofy/dojo.md/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/edholofy/dojo.md/claude-md"><img src="https://agentmods.dev/badge/instructions/edholofy/dojo.md/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,168 This file is loaded in full into every session.
When invoked 3,168 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.03168 $0.03168
Opus 5 $0.01584 $0.01584
Sonnet 5 $0.00634 $0.00634
Haiku 4.5 $0.00317 $0.00317

Measured 5d ago against content hash fc9a08f7b428, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

dojo.md CLAUDE.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 5d 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.

CLAUDE.md · 272 lines

How it starts

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

CLAUDE.md

Project Overview

dojo.md — Training arena for AI agents. Scenario-based evaluation with mock services, LLM-judged assertions, and automatic skill generation. Supports any model via OpenRouter with auto-training loops.

Development Commands

npm run dev      # Run CLI via tsx (e.g., npm run dev -- train stripe-refunds)
npm run build    # Compile TypeScript
npm run test     # Run vitest
npm run start    # Run compiled CLI

Environment

Requires .env file (gitignored):

ANTHROPIC_API_KEY=sk-ant-...       # Required for Anthropic models (claude-*)
OPENROUTER_API_KEY=sk-or-...       # Required for OpenRouter models (openai/*, meta-llama/*, etc.)

The Anthropic SDK auto-reads ANTHROPIC_API_KEY from env. Load .env before running:

source .env && npx tsx src/cli/index.ts train stripe-refunds

Architecture

Scenario YAML → Loader → Engine → Mock Layer → Evaluator → Skill Generator
                                       ↕              ↕
                                   SQLite Recorder   ModelClient (Anthropic / OpenRouter)

Key Files

File Purpose
src/types/index.ts All core type definitions
src/types/schemas.ts Zod schemas for YAML validation
src/engine/loader.ts Parse + validate YAML scenarios
src/engine/runner.ts Execute single scenario against mocks
src/engine/arena-runner.ts Arena benchmarking — multi-model fair comparison
src/engine/training.ts Orchestrate full training run (levels, eval, skill gen)
src/engine/training-loop.ts Auto-training loop with convergence detection
src/engine/agent-bridge.ts Drive agent via ModelClient + skill context injection
src/engine/model-client.ts ModelClient interface + createModelClient() factory
src/engine/anthropic-client.ts Anthropic SDK implementation of ModelClient
src/engine/openrouter-client.ts OpenRouter (OpenAI SDK) implementation of ModelClient
src/engine/model-utils.ts Model string parsing, slug generation, API key validation
src/mocks/session.ts MockSession — isolated state per scenario run
src/mocks/stripe.ts Stripe mock handlers (4 tools)
src/mocks/registry.ts Tool registry + normalized tool definitions
src/evaluator/judge.ts Deterministic + LLM-judged assertions
src/generator/skill-generator.ts Produce per-model SKILL.md from failure patterns
src/recorder/db.ts SQLite persistence with model tracking
src/mcp/server.ts MCP server (6 tools)
src/cli/index.ts CLI entry point

Read the full file on GitHub · 272 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. 5d ago First seen · 272 lines · 3,168 tokens per session scan A fc9a08f7b428

Subscribe to this mod's changes

dojo.md CLAUDE.md is an instructions file published in the GitHub repository edholofy/dojo.md (9 stars, last pushed 4mo ago), licensed MIT. It adds 3,168 tokens to every session, about $0.0158 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-31.