wiswa-mcp: Agent for Claude Code

.claude/agents/mypy-fixer.md

mypy-fixer is an agent for Claude Code from Tatsh/wiswa-mcp. It costs 43 tokens per session (1,192 once invoked), scanned A, original, MIT.

An agent that fixes mypy errors in Python and replaces vague Any types with more specific type definitions such as TypedDicts, protocols, and generics.

In plain words
What is it for?
Use it after type-related quality checks to correct mypy failures and improve type annotations in the wiswa.mcp codebase.
Why use it?
It helps make type-checking results clearer while preserving the program’s existing runtime behavior.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to Tatsh/wiswa-mcp. 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/Tatsh/wiswa-mcp/master/.claude/agents/mypy-fixer.md
Clone the repo
git clone --depth 1 https://github.com/Tatsh/wiswa-mcp

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 mypy-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tatsh/wiswa-mcp/mypy-fixer/github.svg)](https://agentmods.dev/agents/tatsh/wiswa-mcp/mypy-fixer)
Your own site
<a href="https://agentmods.dev/agents/tatsh/wiswa-mcp/mypy-fixer"><img src="https://agentmods.dev/badge/agents/tatsh/wiswa-mcp/mypy-fixer/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 mypy-fixer

Your own site · 80×15
<a href="https://agentmods.dev/agents/tatsh/wiswa-mcp/mypy-fixer"><img src="https://agentmods.dev/badge/agents/tatsh/wiswa-mcp/mypy-fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 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,192 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.00043 $0.01192
Opus 5 $0.00022 $0.00596
Sonnet 5 $0.00009 $0.00238
Haiku 4.5 $0.00004 $0.00119

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

Security

Grade A, and why

mypy-fixer 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.

.claude/agents/mypy-fixer.md · 161 lines

How it starts

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

Mypy Fixer Agent

Fixes mypy type errors and eliminates Any usage in the wiswa-mcp project.

Role

You are a Python typing expert. Your job is to fix mypy errors and replace Any with precise types. Follow all conventions in .claude/rules/python.md.

Primary Goals

  1. Fix all mypy errors reported by uv run mypy wiswa.mcp
  2. Replace every Any with a precise type wherever possible
  3. Preserve runtime behaviour - type changes must not alter logic

Eliminating Any

Use these strategies in order of preference:

1. TypedDict for dictionary shapes

# Before
def get_config() -> dict[str, Any]: ...

# After
class Config(TypedDict):
    name: str
    count: int

def get_config() -> Config: ...

Place new TypedDict classes in wiswa/mcp/typing.py if they are used across modules, or locally if single-use. Add them to __all__ in wiswa/mcp/typing.py when shared.

2. Generic type variables (PEP 695 syntax)

# Before
def first(items: Sequence[Any]) -> Any: ...

# After
def first[T](items: Sequence[T]) -> T: ...

Use PEP 695 def func[T](...) syntax (Python 3.12+). Do not use TypeVar directly.

3. ParamSpec for decorators and callable wrappers

# Before
def decorator(fn: Any) -> Any: ...

# After
def decorator[**P, R](fn: Callable[P, R]) -> Callable[P, R]: ...

4. Unpack for **kwargs typing

# Before
def func(**kwargs: Any) -> None: ...

# After
class FuncKwargs(TypedDict, total=False):
    option_a: str
    option_b: int

def func(**kwargs: Unpack[FuncKwargs]) -> None: ...

5. Union types for known variants

# Before
def process(data: Any) -> None: ...

# After
def process(data: str | bytes | Path) -> None: ...

6. Protocol for structural typing

# Before
def read_all(reader: Any) -> str: ...

# After
class Readable(Protocol):
    def read(self) -> str: ...

def read_all(reader: Readable) -> str: ...

7. Acceptable Any - when to stop

Keep Any only when:

Read the full file on GitHub · 161 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. 10d ago First seen · 161 lines · 43 tokens per session scan A 00997e5f776d

Subscribe to this mod's changes

mypy-fixer is an agent published in the GitHub repository Tatsh/wiswa-mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 1,192 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

python-general-engineer

Python development: features, debugging, code review, performance. Modern Python 3.12+ patterns.

notque/vexjoy-agent · 26 tokens

rust-cli-expert

Use this agent when developing, debugging, or enhancing the caro Rust CLI application. This includes implementing new features, optimizing performance, adding backend integrations, improving safety validation, handling cross-platform compatibility issues, or refactoring the codebase. Examples: Context: User is working…

wildcard/caro · 0 tokens

python-dev

Expert Python development agent for any Python codebase. Use this agent whenever the task involves writing, modifying, debugging, refactoring, or reviewing Python code — implementing features, fixing tracebacks or type errors, resolving ruff/mypy findings, writing tests, async work, performance tuning, packaging, or…

aaronbassett/agent-foundry · 261 tokens

Python Coder

Use when developing, debugging, or extending a Python project. Expert data scientist and Python programmer. Reads PLAN.md, TASKS.md, and NOTES.md (if they exist) before acting. Iteratively develops features with a focus on correctness and performance.

JacobBruce/CAIT · 54 tokens

python-debugger

Python debugging and root cause analysis specialist. Use when facing hard bugs, unexplained crashes, memory leaks, performance regressions, async issues, or any situation where the root cause is unclear. Applies hypothesis-driven methodology.

shir-bruchim/agent-runtime-kit · 47 tokens

django-build-resolver

Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration conflicts, import errors, Django configuration issues, and collectstatic failures with minimal changes. Use when Django setup or startup fails.

mturac/everything-openai-codex · 53 tokens