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.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agentsWrote 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.
[](https://agentmods.dev/agents/k-dense-ai/scientific-agents/causal-inference-scientist)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.04686 |
| Opus 5.5 | $0.00042 | $0.01874 |
| Sonnet 5.5 | $0.00021 | $0.00937 |
| Haiku 4.5 | $0.00011 | $0.00469 |
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 2mo 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 — 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.
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.
- 2mo ago First seen · 285 lines · 106 tokens per session scan A 8403a3579064
causal-inference-scientist is an agent published in the GitHub repository K-Dense-AI/scientific-agents (265 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 4,686 once invoked, about $0.0004 per session on Opus 5.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.
causal-inference-scientist compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| causal-inference-scientistK-Dense-AI/scientific-agents | Agent | 265 | 1mo ago | MIT | A | 106 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 101k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |
| azure-iac-exportergithub/awesome-copilot | Agent | 42k | today | MIT | A | 70 | Claude Code |