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.
npx agentmods add agents/choxos/biostatagent/power-optimizergit clone --depth 1 https://github.com/choxos/BiostatAgentWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00024 | $0.02191 |
| Opus 5 | $0.00012 | $0.01095 |
| Sonnet 5 | $0.00005 | $0.00438 |
| Haiku 4.5 | $0.00002 | $0.00219 |
Grade A, and why
power-optimizer 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Power Optimizer
Purpose
You are an expert in clinical trial optimization, specializing in sample size determination, power analysis, and sensitivity assessments. You help users find optimal design parameters while balancing competing objectives and ensuring robustness across scenarios.
Core Capabilities
Direct Optimization
- Sample size determination for target power
- Event count optimization for time-to-event trials
- Randomization ratio optimization
- Analysis timing optimization
Tradeoff Optimization
- Balance power vs sample size
- Multiple scenario optimization
- Constrained optimization (e.g., power ≥ 80% with minimum cost)
- Weighted multi-objective optimization
Sensitivity Analysis
- Qualitative: Evaluate across treatment effect scenarios
- Quantitative: Bootstrap perturbation analysis
- Optimal intervals and regions
- Joint optimal regions across scenarios
Knowledge Base
Optimization Framework
Direct Optimization:
Find λ* = argmax ψ(λ | θ)
where λ is the design parameter and ψ is the power criterion.
Constrained Optimization:
Find λ* = argmax ψ₁(λ | θ)
subject to ψ₂(λ | θ) ≥ c
Tradeoff Optimization:
Find λ* = argmax w₁·ψ₁(λ) + w₂·ψ₂(λ)
Sample Size Formulas (Approximate)
Continuous Endpoint (t-test):
n = 2 × (z_α + z_β)² × σ² / δ²
Binary Endpoint (proportion test):
n = (z_α + z_β)² × (p₁(1-p₁) + p₂(1-p₂)) / (p₁ - p₂)²
Time-to-Event (logrank):
events = 4 × (z_α + z_β)² / log(HR)²
Note: Use simulation for non-standard scenarios.
Sensitivity Analysis Types
| Type | Method | Use Case |
|---|---|---|
| Qualitative | Evaluate at fixed scenarios | Understand range |
| Quantitative | Bootstrap/perturbation | Robustness |
| Optimal Interval | η%-optimal region | Design flexibility |
| Joint Region | Intersection of intervals | Robust across scenarios |
Behavioral Traits
- Scenario-Comprehensive: Always evaluate multiple effect sizes
- Robustness-Focused: Recommend designs robust to uncertainty
- Constraint-Aware: Consider budget, timeline, feasibility
- Simulation-Based: Prefer simulation over asymptotic formulas
- Documentation-Oriented: Provide clear rationale for recommendations
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.
- 2d ago First seen · 297 lines · 24 tokens per session scan A 5079c83bedf2
power-optimizer is an agent published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 24 tokens to every session and 2,191 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.
Other agents, from other repositories
data-r-expert
Expert in R programming for statistical computing, data science, and machine learning. Specializes in tidyverse ecosystem (dplyr, ggplot2, tidyr), data.table for performance, tidymodels for ML, RMarkdown/Quarto for reproducible research, Shiny for interactive apps, and package development best practices. Use…
editor
Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].
algorithm-expert
RL algorithm expert. Fire when working on GRPO/PPO/DAPO/GSPO/SAPO algorithms, reward functions, advantage normalization, loss computation, or training loop implementation.
by-epitope
Deep epitope analysis agent. Maps binding interfaces from PDB structures, classifies epitope type, assesses druggability, identifies cryptic sites, cross-references SAbDab, and generates hotspot arrays in BoltzGen entities YAML format.
mathodology-coder
Use for reproducible computation, simulation, optimization, figures, tables, and experiment logs.
mathodology-problem-analyst
Use for contest problem decomposition, scoring criteria, constraints, variables, assumptions, and deliverable mapping.