gs-design

gs-design is a command for coding agents from choxos/BiostatAgent. It costs 19 tokens per session (689 once invoked), scanned A, original, MIT.

A workflow for planning group sequential clinical trials, which review results at planned interim points and may stop early for success or lack of benefit.

In plain words
What is it for?
Use it to specify a trial, simulate interim analyses, calculate stopping boundaries, and document error rates, power, and other operating characteristics.
Why use it?
It helps set stopping rules while controlling the chance of a false positive result and checking whether the trial has enough statistical power.

Command

Part of the clinical-trial-simulation plugin — 7 skills, 5 commands, 7 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 commands/choxos/biostatagent/gs-design
Clone the repo
git clone --depth 1 https://github.com/choxos/BiostatAgent

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 gs-design

README.md
[![agentmods](https://agentmods.dev/badge/commands/choxos/biostatagent/gs-design.svg)](https://agentmods.dev/commands/choxos/biostatagent/gs-design)
Your own site
<a href="https://agentmods.dev/commands/choxos/biostatagent/gs-design"><img src="https://agentmods.dev/badge/commands/choxos/biostatagent/gs-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 689 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.00019 $0.00689
Opus 5 $0.00010 $0.00345
Sonnet 5 $0.00004 $0.00138
Haiku 4.5 $0.00002 $0.00069

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

Security

Grade A, and why

gs-design 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/clinical-trial-simulation/commands/gs-design.md · 99 lines

How it starts

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

Group Sequential Design Workflow

Overview

Design and simulate group sequential trials with interim analyses for early stopping due to efficacy or futility.

Workflow Phases

Phase 1: Design Specification

Phase 2: Simulation Setup

Phase 3: Boundary Calculation

Phase 4: Operating Characteristics

Success Criteria

  • Boundaries derived and documented
  • Type I error controlled at alpha
  • Power meets target under alternative
  • Operating characteristics fully characterized
  • Design integrates with gsDesign2

Read the full file on GitHub · 99 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 · 99 lines · 19 tokens per session scan A a990199a683c

Subscribe to this mod's changes

gs-design is a command published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 19 tokens to every session and 689 once invoked, about $0.0001 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.