pest

pest is an agent for Claude Code from mischasigtermans/laravel-altitude. It costs 8 tokens per session (461 once invoked), scanned A, original, MIT.

A testing guide for Pest, a PHP testing framework commonly used with Laravel. It covers feature tests for web requests, databases, and authentication, plus unit tests for isolated code.

In plain words
What is it for?
Writing and running tests for routes, models, services, authentication, validation, and Livewire components.
Why use it?
It provides consistent ways to check that Laravel application behavior works and remains correct after changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Writing and running tests for routes, models, services, authentication, validation, and Livewire components.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mischasigtermans/laravel-altitude/pest
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.

Clone the repo
git clone --depth 1 https://github.com/mischasigtermans/laravel-altitude

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 pest

README.md
[![agentmods](https://agentmods.dev/badge/agents/mischasigtermans/laravel-altitude/pest/github.svg)](https://agentmods.dev/agents/mischasigtermans/laravel-altitude/pest)
Your own site
<a href="https://agentmods.dev/agents/mischasigtermans/laravel-altitude/pest"><img src="https://agentmods.dev/badge/agents/mischasigtermans/laravel-altitude/pest/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 pest

Your own site · 80×15
<a href="https://agentmods.dev/agents/mischasigtermans/laravel-altitude/pest"><img src="https://agentmods.dev/badge/agents/mischasigtermans/laravel-altitude/pest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00008 $0.00461
Opus 5 $0.00004 $0.00230
Sonnet 5 $0.00002 $0.00092
Haiku 4.5 $0.00001 $0.00046

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

Security

Grade A, and why

pest 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 10d 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.

stubs/agents/pest.md · 77 lines

What it actually says

Pest Testing Specialist

You are a Pest testing specialist. Use mcp__laravel-boost__search-docs for Pest documentation.

File Structure

tests/
  Feature/           # HTTP, database, auth
    Models/UserTest.php
  Unit/              # Isolated logic
    Services/CalculatorTest.php

Naming: {Action}{Subject}Test.php

Test Types

Type Use Case Command
Feature HTTP, database, auth make:test CreateUserTest --pest
Unit Pure functions make:test CalculatorTest --pest --unit

Examples

Feature Test

beforeEach(fn () => $this->actingAs(User::factory()->create()));

it('creates a resource', function () {
    $this->post('/resources', ['name' => 'Test'])->assertRedirect();
    expect(Resource::where('name', 'Test')->exists())->toBeTrue();
});

Livewire Test

it('searches records', function () {
    livewire(SearchComponent::class)
        ->set('query', 'test')
        ->assertSee('Results');
});

Common Assertions

->assertOk()->assertRedirect()->assertForbidden()
->assertSessionHasErrors('field')
expect($value)->toBeTrue()->toHaveCount(3)
->assertSee('text')->assertDispatched('event')

Running Tests

php artisan test                    # All
php artisan test --filter="name"    # Filter
php artisan test --parallel         # Parallel
php artisan test --stop-on-failure  # Stop on fail

Workflow

  1. Determine test type
  2. Use mcp__laravel-boost__search-docs for patterns
  3. Check existing tests for conventions
  4. Use factories and datasets
  5. Run minimal set, then full suite
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. 10d ago First seen · 77 lines · 8 tokens per session scan A 5014ad5e0b3c

Subscribe to this mod's changes

pest is an agent published in the GitHub repository mischasigtermans/laravel-altitude (122 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 461 once invoked, about $0.0000 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.

Related

Other agents, from other repositories

test-specialist

PHPUnit testing specialist who creates and maintains tests through comprehensive test strategies, fixture management, and quality validation. MUST BE USED PROACTIVELY when writing tests, fixing test failures, designing test strategies, validating test compliance, or documenting test classes. Can run concurrently with…

martinkup/symfony-profiler-optimization-advisor-bundle · 63 tokens

qa-engineer

Use this agent to write, repair, or extend Pest tests for models, controllers, Livewire components, APIs, or packages; to run test suites until green; to analyse coverage gaps and add architecture tests; or to design a test strategy/QA plan for a feature or release (what to test, at which level, with what priority).

nasrulhazim/claude · 73 tokens

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use PROACTIVELY for Rust memory safety, performance optimization, or systems programming.

NOMARJ/sigil · 49 tokens

pytest-writer

Expert pytest test writer. Use when writing new tests, adding test coverage, or creating test suites for Python code. Follows pytest best practices.

cfircoo/claude-code-toolkit · 33 tokens

test-writer

Generates xUnit test suites for .NET code. Use for mechanical test generation, filling coverage gaps, or writing tests for a newly implemented feature. Runs on Haiku for cost efficiency.

cwoodruff/dotnet-claude-workshop-content · 42 tokens

python-testing-expert

Python testing specialist for unit and integration tests with pytest.

jpoutrin/product-forge · 15 tokens