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.
npx agentmods add instructions/codspeedhq/codspeed/agents-mdgit clone --depth 1 https://github.com/CodSpeedHQ/codspeedWhat 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 | $0.00663 | $0.00663 |
| Opus 5 | $0.00331 | $0.00331 |
| Sonnet 5 | $0.00133 | $0.00133 |
| Haiku 4.5 | $0.00066 | $0.00066 |
Grade A, and why
codspeed 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 2d 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 — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to AI coding agents when working with code in this repository.
Overview
CodSpeed Runner is a Rust CLI application for gathering performance data and uploading reports to CodSpeed. The binary is named codspeed and supports local and CI environments including GitHub Actions, GitLab CI, and Buildkite.
Common Development Commands
Building and Testing
# Build the project
cargo build
# Build in release mode
cargo build --release
# Run tests
cargo test
# Run specific test
cargo test <test_name>
# Run tests with output
cargo test -- -nocapture
Running the Application
# Build and run
cargo run -- <subcommand> <args>
# Examples:
cargo run -- auth login
cargo run -- run "cargo bench"
cargo run -- setup
Code Quality
# Check code without building
cargo check
# Format code
cargo fmt
# Run linter
cargo clippy
Architecture
The application follows a modular structure:
Core Modules
main.rs: Entry point with error handling and logging setupapp.rs: CLI definition using clap with subcommands (Run, Auth, Setup)api_client.rs: CodSpeed GraphQL API clientauth.rs: Authentication managementconfig.rs: Configuration loading and management
Run Module (src/run/)
The core functionality for running benchmarks:
run_environment/: CI provider implementations (GitHub Actions, GitLab CI, Buildkite, local)runner/: Execution modes:valgrind/: Instrumentation mode using custom Valgrindwall_time/perf/: Walltime mode with perf integration
uploader/: Results upload to CodSpeed
Key Dependencies
clap: CLI framework with derive macrostokio: Async runtime (current_thread flavor)reqwest: HTTP client with middleware/retryserde/serde_json: Serializationgql_client: Custom GraphQL clienttabled: Table formatting for CLI output (https://docs.rs/tabled/latest/tabled/index.html)- Platform-specific:
procfs(Linux),linux-perf-data
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.
- 2d ago First seen · 107 lines · 663 tokens per session scan A 8a477337e654
codspeed AGENTS.md is an instructions file published in the GitHub repository CodSpeedHQ/codspeed (280 stars, last pushed 4d ago), licensed Apache-2.0. It adds 663 tokens to every session, about $0.0033 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-30.
Other instructions, from other repositories
hotpath-rs AGENTS.md
Instructions for pawurb/hotpath-rs, covering agents.md, project overview, reference docs, development commands and profiling modes are combined via features, e.g.
hermes-skilleval AGENTS.md
Instructions for Raidriar7170/hermes-skilleval, a project described as: Verification-gated skill routing and self-improvement harness for Hermes-style agent skills.
web-performance-debugger AGENTS.md
AGENTS.md instructions for jantimon/web-performance-debugger, covering driving wpd from an agent, the loop, output, reading the numbers: three traps and exit codes and refusals: treat the refusal as the answer.
spark-history-cli AGENTS.md
Instructions for yaooqinn/spark-history-cli, covering agents.md, project overview, repository structure, key development guidelines and making changes.
hotpath-rs CLAUDE.md
Instructions for pawurb/hotpath-rs, a project described as: Quickly find bottlenecks in Rust - one profiler for CPU, memory, SQL, HTTP, I/O and async code.
web-performance-debugger CLAUDE.md
Claude Code instructions for jantimon/web-performance-debugger, covering claude.md, what this is, commands, architecture and two execution modes (this is the central design fork).