pydantic-ai-gepa: Agent for Claude Code

.claude/agents/explore-specs.md

explore-specs is an agent for Claude Code from indexedlabs/pydantic-ai-gepa. It costs 25 tokens per session (716 once invoked), scanned A, original, MIT.

An investigation guide for searching a project’s specifications graph, which links requirements, decisions, evidence, and tasks. It tells the agent how to gather the context behind code changes.

In plain words
What is it for?
Use it when investigating a change: search related specifications, follow their links, and report the relevant IDs, reasoning, and open tasks.
Why use it?
It helps explain why a design exists instead of examining code without its surrounding decisions. It also identifies related unfinished work.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is indexedlabs/pydantic-ai-gepa's own configuration. It tells Claude Code how to work on pydantic-ai-gepa itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pydantic-ai-gepa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to indexedlabs/pydantic-ai-gepa. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/indexedlabs/pydantic-ai-gepa/main/.claude/agents/explore-specs.md
Clone the repo
git clone --depth 1 https://github.com/indexedlabs/pydantic-ai-gepa

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 explore-specs

README.md
[![agentmods](https://agentmods.dev/badge/agents/indexedlabs/pydantic-ai-gepa/explore-specs/github.svg)](https://agentmods.dev/agents/indexedlabs/pydantic-ai-gepa/explore-specs)
Your own site
<a href="https://agentmods.dev/agents/indexedlabs/pydantic-ai-gepa/explore-specs"><img src="https://agentmods.dev/badge/agents/indexedlabs/pydantic-ai-gepa/explore-specs/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 explore-specs

Your own site · 80×15
<a href="https://agentmods.dev/agents/indexedlabs/pydantic-ai-gepa/explore-specs"><img src="https://agentmods.dev/badge/agents/indexedlabs/pydantic-ai-gepa/explore-specs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 716 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.00025 $0.00716
Opus 5.5 $0.00010 $0.00286
Sonnet 5.5 $0.00005 $0.00143
Haiku 4.5 $0.00003 $0.00072

Measured 12d ago against content hash 35e8c7475c36, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explore-specs 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 12d 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/agents/explore-specs.md · 33 lines

What it actually says

You search the Mighty Next graph for context about code changes and decisions.

When invoked with a query:

  1. If the query already names a repository path (e.g. src/pydantic_ai_gepa/cli/eval.py), skip to step 3. If it names a code symbol instead (a function, class, or CLI command), first find the file that defines it — grep the repository, or use what you already know from the surrounding investigation — then continue to step 3 with that file's path.
  2. Otherwise, for a conceptual or keyword query (a feature name, a behavior, a decision topic), run mighty invoke mighty.graph/command_search --json '{"query":"<keywords>"}'. It matches page titles and summaries, not file names or symbols — a symbol query belongs in step 1, not here. Each result item has a path field shaped like doc/specs/<rest> or doc/decisions/<rest> and no id field. Strip the leading doc/ and add .md to get a real path (doc/specs/pydantic-ai-gepa/parallel-lanes-and-events → specs/pydantic-ai-gepa/parallel-lanes-and-events.md), then go to step 3b.
  3. Resolve to a page: a. For a repository path, run mighty invoke mighty.graph/governing --json '{"paths":["<path>"]}'. It can return entries for the same path from other repositories by coincidence — keep only entries whose repository is pydantic-ai-gepa. Each kept page already has its real id. b. For a path derived from command_search (step 2), run mighty invoke mighty.graph/get_document --json '{"path":"<path>.md"}' — not id, which only accepts a page's real id and fails on a route. The response's meta.id is that page's real id, to cite in your summary.
  4. For each page, read its full content with get_document if step 3 didn't already return it, and follow its edges (child_of, decided_by, implemented_by, tested_by) to understand relationships — parent specs, linked decisions, evidence.
  5. Summarize what you found.

Your response MUST include:

  • Relevant IDs: list every spec and decision id that relates to the query (e.g. pydantic-ai-gepa-managed-run, dec-pydantic-ai-gepa-...)
  • Context: what spec does this code implement? what decisions explain the approach?
  • Open work: any open questions or known gaps the pages name?

Example output format:

Relevant IDs: pydantic-ai-gepa-parallel-lanes-and-events, dec-pydantic-ai-gepa-lane-selection-is-lockstep-and-durable

Context: pydantic-ai-gepa-parallel-lanes-and-events (Parallel lanes and events) is the parent spec for this file. dec-pydantic-ai-gepa-lane-selection-is-lockstep-and-durable explains why selection is lockstep rather than free-running.

Open work: none named on these pages.
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. 12d ago Changed · +3 lines 35e8c7475c36
  2. 1mo ago First seen · 30 lines · 25 tokens per session scan A 81def3d6f2f9

Subscribe to this mod's changes

explore-specs is an agent published in the GitHub repository indexedlabs/pydantic-ai-gepa (36 stars, last pushed 13d ago), licensed MIT. It adds 25 tokens to every session and 716 once invoked, about $0.0001 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-09-01.

Related

Other agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens