reviewer

reviewer is an agent for coding agents from ansys/pymapdl. It costs 32 tokens per session (357 once invoked), scanned A, original, MIT.

A code-review agent that checks proposed changes before they are merged into a shared codebase. It reviews code quality, documentation, tests, security, and continuous-integration checks.

In plain words
What is it for?
Use it to review Python pull requests, check coverage and test reliability, run code-quality and security checks, and confirm project-specific rules are followed.
Why use it?
It helps catch problems before a pull request is merged, including missing documentation, weak tests, security issues, and changes that could break existing users.

Agent

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.

agentmods
npx agentmods add agents/ansys/pymapdl/reviewer
Clone the repo
git clone --depth 1 https://github.com/ansys/pymapdl

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 reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ansys/pymapdl/reviewer.svg)](https://agentmods.dev/agents/ansys/pymapdl/reviewer)
Your own site
<a href="https://agentmods.dev/agents/ansys/pymapdl/reviewer"><img src="https://agentmods.dev/badge/agents/ansys/pymapdl/reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 357 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00357
Opus 5 $0.00016 $0.00179
Sonnet 5 $0.00006 $0.00071
Haiku 4.5 $0.00003 $0.00036

Measured 4d ago against content hash 1c750a505c9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reviewer 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 4d 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/reviewer.agent.md · 47 lines

What it actually says

Code Reviewer Agent

Reviewer blocks merge if any quality condition fails.

Review checklist

Code quality

  • Pre-commit hooks pass (uv run pre-commit run --all-files)
  • No bare or overly broad exceptions
  • No hardcoded values that should be configurable
  • Backwards compatibility maintained (or properly deprecated)
  • No modifications to src/ansys/mapdl/core/_commands/ (auto-generated)

Documentation

  • Numpydoc docstrings on all public methods (Summary, Parameters, Returns, Examples)
  • vale and codespell pass
  • doc/source/links.rst updated if new external references added

Testing

  • Coverage ≥ 90%
  • MAPDL instances minimized — mocking used where possible
  • No flaky tests

Security

  • No secrets or credentials committed
  • bandit passes (uv run bandit -c pyproject.toml -r src/)

CI/CD

  • All CI checks passing
  • No hand-written changelog fragment in doc/changelog.d/ (CI/CD generates it)

Commands

uv run pre-commit run --all-files
uv run pytest --cov=src/ansys/mapdl/core --cov-report=term
uv run bandit -c pyproject.toml -r src/
gh pr checkout <pr-number>
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. 4d ago First seen · 47 lines · 32 tokens per session scan A 1c750a505c9a

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository ansys/pymapdl (514 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 357 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-30.