causal-sensitivity

causal-sensitivity is an agent for Claude Code from ai-analyst-lab/ai-analyst-plus. It costs 0 tokens per session (1,280 once invoked), scanned A, a copy of causal-sensitivity, MIT.

A check of how much an unseen factor would need to affect the data to change a causal result. A confounder is an outside factor that influences both the treatment and the outcome.

In plain words
What is it for?
For running Rosenbaum bounds and E-values, which quantify hidden bias, and placebo tests for difference-in-differences analyses. It also explains the results in plain language.
Why use it?
It tests whether an apparently causal finding could reasonably be explained by something the analysis did not measure.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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-plus/causal-sensitivity
Clone the repo
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plus

Made for: Claude Code.

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-plus/causal-sensitivity.svg)](https://agentmods.dev/agents/ai-analyst-lab/ai-analyst-plus/causal-sensitivity)
Your own site
<a href="https://agentmods.dev/agents/ai-analyst-lab/ai-analyst-plus/causal-sensitivity"><img src="https://agentmods.dev/badge/agents/ai-analyst-lab/ai-analyst-plus/causal-sensitivity.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,280 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00000 $0.01280
Opus 5 $0.00000 $0.00640
Sonnet 5 $0.00000 $0.00256
Haiku 4.5 $0.00000 $0.00128

Measured 6d ago against content hash c591f63e1b6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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

This is a copy

91% identical to causal-sensitivity — 31 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/causal-sensitivity.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 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 helpers.experiment_stats.causal 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 helpers.experiment_stats.causal import e_value

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

Read the full file on GitHub · 146 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. 6d ago First seen · 146 lines · 0 tokens per session scan A c591f63e1b6f

Subscribe to this mod's changes

causal-sensitivity is an agent published in the GitHub repository ai-analyst-lab/ai-analyst-plus (19 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,280 tokens. A static security scan graded it A with 0 findings. It is 91% identical to causal-sensitivity, differing in 31 lines, and is treated as a copy.

Related

Other agents, from other repositories

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].

pedrohcgs/claude-code-my-workflow · 64 tokens

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

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

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

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens