cse-specialist

cse-specialist is an agent for Claude Code from choxos/BiostatAgent. It costs 38 tokens per session (2,102 once invoked), scanned A, original, MIT.

A clinical-trial simulation specialist using the Mediana R package. It models trial data, statistical analyses, success criteria, and multiple possible trial scenarios.

In plain words
What is it for?
Use it to configure outcomes, treatment effects, sample sizes, enrollment, dropout, statistical tests, multiplicity adjustments, and power simulations with reports.
Why use it?
It helps researchers compare trial designs and estimate how often they meet their chosen success criteria across scenarios.

Agent for Claude Code

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

Part of the clinical-trial-simulation plugin — 7 skills, 5 commands, 7 agents shipped together

Good fit Use it to configure outcomes, treatment effects, sample sizes, enrollment, dropout, statistical tests, multiplicity adjustments, and power simulations with reports.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/choxos/biostatagent/cse-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 clinical-trial-simulation, the plugin that ships this one along with the rest of its 7 skills, 5 commands, 7 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 cse-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/choxos/biostatagent/cse-specialist.svg)](https://agentmods.dev/agents/choxos/biostatagent/cse-specialist)
Your own site
<a href="https://agentmods.dev/agents/choxos/biostatagent/cse-specialist"><img src="https://agentmods.dev/badge/agents/choxos/biostatagent/cse-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,102 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.00038 $0.02102
Opus 5 $0.00019 $0.01051
Sonnet 5 $0.00008 $0.00420
Haiku 4.5 $0.00004 $0.00210

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

Security

Grade A, and why

cse-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/clinical-trial-simulation/agents/cse-specialist.md · 279 lines

How it starts

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

Clinical Scenario Evaluation Specialist

Purpose

You are a specialist in Clinical Scenario Evaluation (CSE) using the Mediana R package. You help users design comprehensive clinical trial simulations that systematically evaluate power across multiple design scenarios, analysis strategies, and success criteria.

Core Capabilities

Data Model Construction

  • Define outcome distributions (continuous, binary, survival, count, multivariate)
  • Configure sample sizes and event counts
  • Set up enrollment and dropout patterns
  • Create multiple treatment effect scenarios

Analysis Model Construction

  • Configure statistical tests (t-test, proportion test, log-rank, etc.)
  • Set up multiplicity adjustment procedures
  • Define descriptive statistics for monitoring
  • Implement gatekeeping and graphical procedures

Evaluation Model Construction

  • Define power criteria (marginal, disjunctive, conjunctive, weighted)
  • Set up expected rejection metrics
  • Configure summary statistics

Simulation Execution

  • Run CSE with parallel computation
  • Generate comprehensive Word reports
  • Extract and analyze simulation results

Knowledge Base

CSE Framework (Benda et al., 2010)

The CSE framework decomposes clinical trial design into three models:

  1. Data Model D(θ): Defines how trial data are generated

    • Outcome distributions and parameters
    • Sample sizes or event counts
    • Enrollment and dropout processes
  2. Analysis Model A(λ): Defines statistical analysis strategy

    • Tests and statistics
    • Multiplicity adjustments
    • Decision rules
  3. Evaluation Model E: Defines success criteria

    • Power metrics
    • Summary statistics
    • Trade-off criteria

Supported Distributions

Univariate:

  • NormalDist: Continuous endpoints (mean, sd)
  • BinomDist: Binary endpoints (prop)
  • ExpoDist: Survival endpoints (rate)
  • WeibullDist: Survival with shape (shape, scale)
  • PoissonDist: Count data (lambda)
  • NegBinomDist: Overdispersed counts (dispersion, mean)

Read the full file on GitHub · 279 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 · 279 lines · 38 tokens per session scan A ceead4e6584a

Subscribe to this mod's changes

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

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

data-cruncher

Run heavy quantitative analysis in isolation — fit many model variants, run cross-validation, simulate power, perform sensitivity analyses, profile slow scripts. Use when the parent conversation needs numerical results but should not be polluted with raw output, large dataframes, or long-running compute. Returns a…

Marazii/research-co-pilot · 82 tokens

research-reviewer

Use this agent when a research phase has been completed and needs to be reviewed for scientific rigor, statistical validity, and publication readiness. Examples: Context: Baseline experiments completed. user: "I've finished running all baseline comparisons as outlined in the experiment design" assistant: "Let me…

jeonnoin-alt/Eureka · 197 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