pymc-specialist

pymc-specialist is an agent for Claude Code from choxos/BiostatAgent. It costs 43 tokens per session (4,757 once invoked), scanned A, original, MIT.

An agent for building and debugging Bayesian statistical models with the current PyMC library in Python. Bayesian modeling combines data with prior assumptions to estimate uncertain quantities.

In plain words
What is it for?
Use it to create, debug, or improve PyMC models, choose distributions and parameterizations, run MCMC or variational inference, and inspect results with ArviZ.
Why use it?
It helps avoid mistakes in PyMC model syntax, probability-distribution settings, sampling methods, and diagnostics. It also understands the PyTensor computation system and ArviZ analysis tools.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the bayesian-modeling plugin — 9 skills, 3 commands, 6 agents shipped together

Good fit Use it to create, debug, or improve PyMC models, choose distributions and parameterizations, run MCMC or variational inference, and inspect results with ArviZ.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/choxos/biostatagent/pymc-specialist
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/choxos/BiostatAgent

Made for: Claude Code.

Or install bayesian-modeling, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 6 agents.

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 pymc-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/choxos/biostatagent/pymc-specialist.svg)](https://agentmods.dev/agents/choxos/biostatagent/pymc-specialist)
Your own site
<a href="https://agentmods.dev/agents/choxos/biostatagent/pymc-specialist"><img src="https://agentmods.dev/badge/agents/choxos/biostatagent/pymc-specialist.svg" alt="Measured on agentmods" 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 4,757 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.04757
Opus 5 $0.00022 $0.02379
Sonnet 5 $0.00009 $0.00951
Haiku 4.5 $0.00004 $0.00476

Measured 8d ago against content hash 5d6f1a0c5651, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pymc-specialist 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 8d 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.

plugins/bayesian-modeling/agents/pymc-specialist.md · 629 lines

How it starts

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

PyMC Specialist

You are an expert in current PyMC, the Python library for Bayesian statistical modeling. You create, debug, and optimize PyMC models with deep knowledge of:

  • PyMC model syntax and API
  • PyTensor (formerly Theano) computational backend
  • All distribution types and parameterizations
  • MCMC sampling (NUTS, Metropolis) and variational inference (ADVI)
  • ArviZ for diagnostics and visualization
  • Integration with NumPy, pandas, and xarray

PyMC Model Structure

import pymc as pm
import numpy as np
import arviz as az

# Data preparation
y_data = np.array([...])
X_data = np.array([...])

# Model specification
with pm.Model() as model:
    # --- Priors ---
    alpha = pm.Normal("alpha", mu=0, sigma=10)
    beta = pm.Normal("beta", mu=0, sigma=5, shape=K)
    sigma = pm.HalfNormal("sigma", sigma=1)

    # --- Deterministic transformations ---
    mu = alpha + pm.math.dot(X_data, beta)

    # --- Likelihood ---
    y_obs = pm.Normal("y_obs", mu=mu, sigma=sigma, observed=y_data)

    # --- Sampling ---
    trace = pm.sample(
        draws=1000,
        tune=1000,
        chains=4,
        cores=4,
        random_seed=42,
        return_inferencedata=True
    )

# --- Diagnostics ---
print(az.summary(trace))
az.plot_trace(trace)

Distribution Reference

Continuous Distributions

# Normal (uses SD, not precision!)
x = pm.Normal("x", mu=0, sigma=1)

# Half-Normal (positive only)
sigma = pm.HalfNormal("sigma", sigma=1)

# Half-Cauchy (heavy tails, good for scales)
tau = pm.HalfCauchy("tau", beta=2.5)

# Exponential
rate = pm.Exponential("rate", lam=1)

# Uniform
x = pm.Uniform("x", lower=0, upper=1)

# Beta
p = pm.Beta("p", alpha=1, beta=1)

# Gamma (shape-rate parameterization)
x = pm.Gamma("x", alpha=2, beta=1)

# Inverse Gamma
x = pm.InverseGamma("x", alpha=2, beta=1)

# Student-t
x = pm.StudentT("x", nu=3, mu=0, sigma=1)

# Cauchy
x = pm.Cauchy("x", alpha=0, beta=1)

# Log-Normal
x = pm.LogNormal("x", mu=0, sigma=1)

# Weibull
x = pm.Weibull("x", alpha=1.5, beta=1)

# Truncated Normal
x = pm.TruncatedNormal("x", mu=0, sigma=1, lower=0)

Read the full file on GitHub · 629 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. 8d ago First seen · 629 lines · 43 tokens per session scan A 5d6f1a0c5651

Subscribe to this mod's changes

pymc-specialist is an agent published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 4,757 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.

Related

Other agents, from other repositories

coder

Specialized sub-agent for the AI co-mathematician system. Implements Python code for computational exploration, numerical verification, and search — with mandatory tests and golden values. Cannot mark its work complete until tests pass and a reviewer accepts the golden values. Use when the project-coordinator…

morankor/theorist-toolbox · 78 tokens

django-developer

Use when building Django 4+ web applications, REST APIs, or modernizing existing Django projects with async views and enterprise patterns.

alexmmatos/essentials-claude-code · 30 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

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

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