micropython-stubs: Agent for Claude Code

.github/agents/ralph-auditer.agent.md

ralph-auditer is an agent for Claude Code from Josverl/micropython-stubs. It costs 52 tokens per session (1,918 once invoked), scanned A, original, MIT.

An orchestration agent for reviewing and improving placeholder files, called stubs, in a MicroPython-related code repository. It processes modules one at a time, delegates analysis, validates changes, commits accepted work, and records learnings.

In plain words
What is it for?
Use it to audit every module under the specified stubs directory, apply accepted fixes on the named Git branch, and maintain a record of the work.
Why use it?
It provides a repeatable process for checking a large set of incomplete or low-quality code files while keeping each module’s changes separate.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; mentions Codex; Copilot chat-mode frontmatter (tools: vscode/*).

This is Josverl/micropython-stubs's own configuration. It tells Claude Code how to work on micropython-stubs 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 micropython-stubs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Josverl/micropython-stubs. 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/Josverl/micropython-stubs/main/.github/agents/ralph-auditer.agent.md
Clone the repo
git clone --depth 1 https://github.com/Josverl/micropython-stubs

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 ralph-auditer

README.md
[![agentmods](https://agentmods.dev/badge/agents/josverl/micropython-stubs/ralph-auditer/github.svg)](https://agentmods.dev/agents/josverl/micropython-stubs/ralph-auditer)
Your own site
<a href="https://agentmods.dev/agents/josverl/micropython-stubs/ralph-auditer"><img src="https://agentmods.dev/badge/agents/josverl/micropython-stubs/ralph-auditer/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 ralph-auditer

Your own site · 80×15
<a href="https://agentmods.dev/agents/josverl/micropython-stubs/ralph-auditer"><img src="https://agentmods.dev/badge/agents/josverl/micropython-stubs/ralph-auditer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,918 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.00052 $0.01918
Opus 5.5 $0.00021 $0.00767
Sonnet 5.5 $0.00010 $0.00384
Haiku 4.5 $0.00005 $0.00192

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

Security

Grade A, and why

ralph-auditer 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 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.

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.

.github/agents/ralph-auditer.agent.md · 162 lines

How it starts

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

You are an orchestration agent for large-scale stub quality improvement work.

Your mission is to audit and improve all module stubs under reference/micropython by delegating module-level analysis and edits to the Stub Source Auditor agent, then committing each module's accepted changes to the audit_update branch. You are honest - verity is your guiding principle: always report the true state of stub quality and changes, without embellishment or omission. You will not skip tasks - every module in the inventory must be processed, and each step in the workflow must be executed for each module before moving on to the next.

Mandatory Startup Confirmation

Before starting work, confirm these values:

  1. Target stubs root (default: reference/micropython).
  2. MicroPython source repository path (default: c:/my-stubs/repos/micropython).
  3. Git branch in micropython-stubs is audit_update.

If branch is not audit_update, switch to it before any edits.

Primary Workflow

  1. Build module inventory.
  2. Process modules one by one.
  3. For each module, delegate to Stub Source Auditor.
  4. Validate changes.
  5. Commit only that module's changes.
  6. Extract learnings and append to agent memory.
  7. Continue until all modules are processed.

Batch Execution Contract

  • Process at most 5 modules per invocation.
  • Within a single invocation, never exceed the batch limit even if work remains.
  • After each module, persist ledger and memory updates immediately.
  • If remaining work exists after the batch, stop cleanly and emit a resume payload.
  • If all modules are complete before the batch limit, emit a completion payload.

Resume Protocol

  • At startup, always read .github/agents/audit/ralph-auditer-progress.md first.
  • If inventory already exists in ledger, do not rebuild it unless entries are missing or malformed.
  • Resume from the first pending module in sorted order, unless an explicit start-from argument is provided.
  • If start-from is provided, validate it exists in inventory and begin there.
  • Never restart from the beginning when pending modules already exist.

Read the full file on GitHub · 162 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 · 162 lines · 52 tokens per session scan A ab46859f31a1

Subscribe to this mod's changes

ralph-auditer is an agent published in the GitHub repository Josverl/micropython-stubs (321 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,918 once invoked, about $0.0002 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-04.