causal-sensitivity

causal-sensitivity is an agent for coding agents from ai-analyst-lab/ai-analyst-plugin. It costs 32 tokens per session (1,147 once invoked), scanned A, original, MIT.

A sensitivity analysis agent for causal estimates from observational data, where people were not randomly assigned to groups. It tests how much hidden bias would be needed to overturn a result.

In plain words
What is it for?
Use it with causal-analysis results to run Rosenbaum bounds, E-values, or placebo tests and explain the robustness of the findings in plain language.
Why use it?
It shows whether a reported effect remains credible when important influencing factors were not measured.

Agent

Part of the ai-analyst-plus plugin — 44 skills, 1 command, 13 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/ai-analyst-lab/ai-analyst-plugin/causal-sensitivity
Clone the repo
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin

Or install ai-analyst-plus, the plugin that ships this one along with the rest of its 44 skills, 1 command, 13 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 causal-sensitivity

README.md
[![agentmods](https://agentmods.dev/badge/agents/ai-analyst-lab/ai-analyst-plugin/causal-sensitivity.svg)](https://agentmods.dev/agents/ai-analyst-lab/ai-analyst-plugin/causal-sensitivity)
Your own site
<a href="https://agentmods.dev/agents/ai-analyst-lab/ai-analyst-plugin/causal-sensitivity"><img src="https://agentmods.dev/badge/agents/ai-analyst-lab/ai-analyst-plugin/causal-sensitivity.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,147 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.00032 $0.01147
Opus 5 $0.00016 $0.00574
Sonnet 5 $0.00006 $0.00229
Haiku 4.5 $0.00003 $0.00115

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

Security

Grade A, and why

causal-sensitivity 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

ai-analyst-plus/agents/causal-sensitivity.md · 127 lines

How it starts

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

Agent: Causal Sensitivity Analysis

Purpose

Answer the critical question: "How strong would an unmeasured confounder need to be to explain away this result?" Provides quantitative sensitivity analysis using Rosenbaum bounds and E-values, plus placebo tests for DiD. Translates technical results into plain language.

Inputs

  • {{METHOD}}: The causal method used.
  • {{ANALYSIS_RESULTS}}: Path to analysis results (for effect size, RR, etc.).
  • {{MATCHED_DATA}}: (optional) Matched pairs data (for Rosenbaum bounds with PSM).

Sensitivity Tests by Method

For PSM: Rosenbaum Bounds

from causal_stats import rosenbaum_bounds

result = rosenbaum_bounds(
    treated_outcomes=matched_treat_outcomes,
    control_outcomes=matched_control_outcomes,
    gammas=[1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0],
)

Interpretation guide:

  • gamma = 1: No hidden bias (standard test)
  • gamma = 2: Unobserved confounder doubles the odds of treatment
  • gamma = 3: Triples the odds
  • Critical gamma: Where the result first becomes non-significant

Plain language template:

"This result would be overturned if an unmeasured confounder changed the odds of treatment by a factor of [critical_gamma]x. For context, [comparison to known confounders in the domain]."

For All Methods: E-value

from causal_stats import e_value

# Convert effect to risk ratio scale if needed
result = e_value(risk_ratio=rr, ci_lower=rr_ci_lower)

Interpretation guide:

  • E-value > 3: Relatively robust. An unobserved confounder would need to be very strong.
  • E-value 2-3: Moderate robustness.
  • E-value < 2: Fragile. A moderately strong confounder could explain the result.

Plain language template:

"An unmeasured confounder would need to be associated with both the treatment and the outcome by a factor of at least [E-value] — above and beyond all measured confounders — to fully explain away this result."

For DiD: Placebo Tests

Run DiD on a pre-treatment period where NO treatment occurred:

Read the full file on GitHub · 127 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. 4d ago First seen · 127 lines · 32 tokens per session scan A bce3283d51a9

Subscribe to this mod's changes

causal-sensitivity is an agent published in the GitHub repository ai-analyst-lab/ai-analyst-plugin (32 stars, last pushed 8d ago), licensed MIT. It adds 32 tokens to every session and 1,147 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

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.

redai-infra/Relax · 37 tokens

mathodology-problem-analyst

Use for contest problem decomposition, scoring criteria, constraints, variables, assumptions, and deliverable mapping.

sweetcornna/mathodology · 29 tokens

validator

Validate molecular identifiers (SMILES strings, nucleotide sequences, amino acid sequences, CAS numbers) found in epistract extraction results. Uses RDKit for chemistry and Biopython for sequences. Domain-aware: skips validation if the current domain has no validation-scripts.

usathyan/epistract · 53 tokens

gpd-plan-checker

Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality for physics research. Spawned by the plan-phase and verify-work workflows.

psi-oss/get-physics-done · 38 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

module-creator

Helps create new nf-core modules from scratch with proper structure, containers, tests, and documentation. Use when wrapping new bioinformatics tools, creating custom modules, or contributing modules to nf-core/modules.

jonasscheid/claude-nfcore-plugin · 44 tokens