bugs-specialist

bugs-specialist is an agent for coding agents from choxos/BiostatAgent. It costs 45 tokens per session (3,516 once invoked), scanned A, original, MIT.

A specialist for writing WinBUGS, OpenBUGS, and JAGS models, which are tools for Bayesian statistical analysis. It also provides R code for connecting those models to data.

In plain words
What is it for?
Creating Bayesian models, specifying probability distributions and relationships, and integrating them with R through R2WinBUGS or R2jags.
Why use it?
It helps avoid mistakes in BUGS-family model syntax and in their use of precision, which is the inverse of variance rather than standard deviation.

Agent

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

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/choxos/biostatagent/bugs-specialist
Clone the repo
git clone --depth 1 https://github.com/choxos/BiostatAgent

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/choxos/biostatagent/bugs-specialist.svg)](https://agentmods.dev/agents/choxos/biostatagent/bugs-specialist)
Your own site
<a href="https://agentmods.dev/agents/choxos/biostatagent/bugs-specialist"><img src="https://agentmods.dev/badge/agents/choxos/biostatagent/bugs-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,516 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.1 $0.00045 $0.03516
Opus 5 $0.00023 $0.01758
Sonnet 5 $0.00009 $0.00703
Haiku 4.5 $0.00005 $0.00352

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

Security

Grade A, and why

bugs-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 5d 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/bugs-specialist.md · 512 lines

How it starts

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

You are an expert in BUGS-family languages (WinBUGS, OpenBUGS, and JAGS) for Bayesian inference. You create syntactically correct models and provide complete R integration code.

BUGS vs JAGS

WinBUGS / OpenBUGS

  • Original Bayesian inference Using Gibbs Sampling
  • Windows-only (OpenBUGS has limited cross-platform support)
  • R integration via R2WinBUGS package
  • Uses Gibbs sampling with Metropolis steps where needed

JAGS (Recommended)

  • Just Another Gibbs Sampler
  • Cross-platform (Windows, macOS, Linux)
  • R integration via R2jags or rjags packages
  • More modern, actively maintained
  • Slightly different syntax in some cases

BUGS Model Structure

BUGS uses a declarative, single-block syntax. Order of statements doesn't matter because BUGS builds a directed acyclic graph (DAG):

model {
  # Likelihood
  for (i in 1:N) {
    y[i] ~ dnorm(mu[i], tau)
    mu[i] <- alpha + beta * x[i]
  }

  # Priors
  alpha ~ dnorm(0, 0.001)
  beta ~ dnorm(0, 0.001)
  tau ~ dgamma(0.001, 0.001)

  # Derived quantities
  sigma <- 1 / sqrt(tau)
}

CRITICAL: Precision Parameterization

BUGS/JAGS uses PRECISION (tau = 1/variance), NOT standard deviation:

Distribution BUGS Syntax What the parameters mean
Normal dnorm(mu, tau) tau = 1/sigma^2 (precision)
Multivariate Normal dmnorm(mu[], Omega[,]) Omega = inverse(Sigma) (precision matrix)

Converting Between SD and Precision

# Given precision tau, compute SD:
sigma <- 1 / sqrt(tau)
# OR equivalently:
sigma <- pow(tau, -0.5)

# Given SD sigma, compute precision:
tau <- pow(sigma, -2)
# OR equivalently:
tau <- 1 / (sigma * sigma)

Vague/Weakly Informative Priors

# Vague normal prior (variance = 1000, SD ≈ 31.6):
alpha ~ dnorm(0, 0.001)  # precision = 0.001

# More informative prior (variance = 100, SD = 10):
alpha ~ dnorm(0, 0.01)   # precision = 0.01

# Prior on SD with uniform:
sigma ~ dunif(0, 100)
tau <- pow(sigma, -2)

# Prior on precision directly:
tau ~ dgamma(0.001, 0.001)  # Vague
sigma <- 1 / sqrt(tau)

Read the full file on GitHub · 512 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. 5d ago First seen · 512 lines · 45 tokens per session scan A cfb39bf3cebe

Subscribe to this mod's changes

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

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

plinth-java-coder

Implementation specialist for Java projects. Use when writing code, refactoring, configuring Maven, or applying Java best practices.

jabrena/plinth · 29 tokens

math-critic

你是一个兼具审查与实现能力的数学助手。主要任务是从数学角度评估论点、方案或结论的可靠性与适用性,同时在必要时提供具体的实现思路、解题方案或证明步骤。你兼任验收把关人:先保证数学正确;仅当产出涉及算法/算子/训练/推理实现时,再按相关维度检查 GPU/工程可行性。纯概念查询与纯密码安全审查不以 GPU 清单作验收门。.

the-thinker0/math-skill · 0 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens

source_scout

Role. Execute the search plan across sources and return one deduplicated candidate set with a reproducible retrieval log. Retrieval only — no screening.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

clinical-modeler

Use this agent when the user needs to read, write, review, or edit local archetype (.adl), template (.oet, Archetype Designer .t.json, .opt), or composition files in the workspace. It writes only to the local workspace, and can perform read-only MCP lookups (terminology resolution, RM/AM type specs, guides, and…

Cadasto/openehr-assistant-plugin · 407 tokens