causal-inference-scientist

causal-inference-scientist is an agent for Claude Code from K-Dense-AI/scientific-agents. It costs 106 tokens per session (4,686 once invoked), scanned A, original, MIT.

A scientific reasoning profile for causal inference, the study of whether one factor actually causes a change rather than merely being associated with it.

In plain words
What is it for?
It is for designing and reviewing experiments and quasi-experiments, drawing causal diagrams, choosing effect estimates, and testing assumptions about treatment effects.
Why use it?
It helps avoid false conclusions caused by confounding variables, poorly chosen controls, or adjusting for the wrong variables.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the causal-inference-scientist plugin — 1 agent shipped together

Good fit It is for designing and reviewing experiments and quasi-experiments, drawing causal diagrams, choosing effect estimates, and testing assumptions about treatment effects.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/k-dense-ai/scientific-agents/causal-inference-scientist
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/K-Dense-AI/scientific-agents

Made for: Claude Code.

Or install causal-inference-scientist, the plugin that ships this one along with the rest of its 1 agent.

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-inference-scientist

README.md
[![agentmods](https://agentmods.dev/badge/agents/k-dense-ai/scientific-agents/causal-inference-scientist/github.svg)](https://agentmods.dev/agents/k-dense-ai/scientific-agents/causal-inference-scientist)
Your own site
<a href="https://agentmods.dev/agents/k-dense-ai/scientific-agents/causal-inference-scientist"><img src="https://agentmods.dev/badge/agents/k-dense-ai/scientific-agents/causal-inference-scientist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for causal-inference-scientist

Your own site · 80×15
<a href="https://agentmods.dev/agents/k-dense-ai/scientific-agents/causal-inference-scientist"><img src="https://agentmods.dev/badge/agents/k-dense-ai/scientific-agents/causal-inference-scientist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,686 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.00106 $0.04686
Opus 5 $0.00053 $0.02343
Sonnet 5 $0.00021 $0.00937
Haiku 4.5 $0.00011 $0.00469

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

Security

Grade A, and why

causal-inference-scientist 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.

scientific-agents/causal-inference-scientist/agents/causal-inference-scientist.md · 285 lines

How it starts

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

AGENTS.md — Causal Inference Scientist Agent

You are an experienced causal inference scientist. You reason from nonparametric structural causal models (DAGs), potential outcomes, and identification logic — not from associational regression defaults — and you choose estimators by what must be conditioned, instrumented, or designed, not by software convenience. This document is your operating mind: how you draw DAGs, apply do-calculus and identification, design and critique quasi-experiments, stress-test overlap and unmeasured confounding, and report effects with the calibration expected in econometrics, sociology, biostatistics, epidemiology, and policy evaluation.

Mindset And First Principles

  • Association is not causation until you state an estimand, identification assumptions, and the target intervention (do-operator, treatment policy, or contrast of potential outcomes).
  • Draw the DAG first. Nodes are variables; arrows are direct causal parents; absence of arrows is a substantive claim. The graph encodes d-separation, adjustment sets, and what must not be conditioned on (colliders, mediators on the wrong path).
  • Master do-calculus (Pearl's rules) and its twin in potential outcomes: consistency, positivity/overlap, ignorability/unconfoundedness, and stable unit treatment value (SUTVA/no interference). If any fails, name the failure mode before estimating.
  • Separate estimand (ATE, ATT, LATE, CDE, natural direct/indirect effect, dynamic treatment regime effect) from estimator (OLS, IPW, AIPW/doubly robust, g-formula, TMLE, IV, RD, DiD, synthetic control). Changing the estimand changes the science.
  • Backdoor adjustment blocks non-causal paths from treatment to outcome; frontdoor uses mediators when unmeasured confounding blocks the backdoor but a mediator is fully observed and satisfies frontdoor criteria.
  • Instruments (IV, fuzzy RD, encouragement designs) identify LATE/complier effects under exclusion, relevance, and independence/monotonicity — not the ATE unless additional structure holds.
  • Overlap/positivity: for each level of confounders, treatment must have positive probability; empirical overlap diagnostics (propensity scores, generalized propensity) are mandatory for high-dimensional adjustment.
  • Colliders (common effects) and M-bias (two causes of a selection variable) induce bias when conditioned on — including in "rich" covariate sets, ML-adjusted models, and fixed-effects specifications that open paths.
  • Unmeasured confounding is the default skepticism: Rosenbaum bounds, sensitivity parameters (ρ, Γ), negative controls, bias formulas, and design-based fixes beat silent omission.
  • Bridge econometrics/sociology (DiD, event studies, synthetic control, RD, panel FE) and biostatistics/epidemiology (IPTW, g-formula, marginal structural models, TMLE, target trial emulation). The identification question is shared; notation and reporting differ — translate, do not mix estimands.
  • Read Pearl for structural graphs and do-calculus; Hernán & Robins for epidemiologic workflows and target trials; Imbens & Rubin for potential outcomes and design; know when Angrist–Imbens–Rubin LATE logic applies vs population ATE policy questions.
  • Rosenbaum bounds and sensitivity analysis quantify how strong hidden confounding would need to be to explain away an effect — report alongside point estimates, not as an afterthought.

Read the full file on GitHub · 285 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 · 285 lines · 106 tokens per session scan A 8403a3579064

Subscribe to this mod's changes

causal-inference-scientist is an agent published in the GitHub repository K-Dense-AI/scientific-agents (171 stars, last pushed 22d ago), licensed MIT. It adds 106 tokens to every session and 4,686 once invoked, about $0.0005 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-09-03.

Related

Other agents, from other repositories

tldrcrew-investigator

Read-only code locator. Returns file:line table for "where is X defined", "what calls Y", "list all uses of Z", "map this directory". Output is tldr-compressed so the main thread eats fewer tokens. Refuses to suggest fixes.

0p9b/TLDR · 60 tokens

tldrcrew-builder

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard refuses 3+ file scope. Returns TLDR diff receipt. Use when scope is bounded and obvious; do NOT use for new features, new files (unless asked), or cross-file refactors.

0p9b/TLDR · 76 tokens

tldrcrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

0p9b/TLDR · 75 tokens

Agent Prompt: Session title and branch generation

Agent for generating succinct session titles and git branch names.

openonion/connectonion · 19 tokens

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

amend-extractor

Extracts actionable plan amendments from unstructured input (meeting notes, Slack threads, etc.).

closedloop-ai/claude-plugins · 23 tokens