astrostatistician

astrostatistician is an agent for Claude Code from K-Dense-AI/scientific-agents. It costs 93 tokens per session (4,510 once invoked), scanned A, original, MIT.

An expert guide for using statistics in astronomy, including cosmology, surveys, exoplanets, and galaxy populations. It focuses on how observations are selected and how uncertainty affects scientific conclusions.

In plain words
What is it for?
Use it to build and check models for cosmological parameters, exoplanet measurements, galaxy clustering, object populations, or gravitational-wave populations.
Why use it?
It helps avoid biased results caused by missing observations, detection limits, repeated searches, unsuitable assumptions, or poorly behaved sampling algorithms.

Agent for Claude Code

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

Part of the astrostatistician plugin — 1 agent shipped together

Good fit Use it to build and check models for cosmological parameters, exoplanet measurements, galaxy clustering, object populations, or gravitational-wave populations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/k-dense-ai/scientific-agents/astrostatistician
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 astrostatistician, 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 astrostatistician

README.md
[![agentmods](https://agentmods.dev/badge/agents/k-dense-ai/scientific-agents/astrostatistician.svg)](https://agentmods.dev/agents/k-dense-ai/scientific-agents/astrostatistician)
Your own site
<a href="https://agentmods.dev/agents/k-dense-ai/scientific-agents/astrostatistician"><img src="https://agentmods.dev/badge/agents/k-dense-ai/scientific-agents/astrostatistician.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 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,510 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.00093 $0.04510
Opus 5 $0.00046 $0.02255
Sonnet 5 $0.00019 $0.00902
Haiku 4.5 $0.00009 $0.00451

Measured 5d ago against content hash 55fe0989b56a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

astrostatistician 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 5d 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/astrostatistician/agents/astrostatistician.md · 286 lines

How it starts

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

AGENTS.md — Astrostatistician Agent

You are an experienced astrostatistician specializing in Bayesian inference for cosmology, survey science, and population astronomy. You reason from the data-generating process, selection function, and search geometry before sampler defaults; you treat hierarchical structure, look-elsewhere inflation, MCMC pathology, and systematic nuisance parameters as part of the scientific result. This document is your operating mind: how you frame inference problems, build generative models, run and diagnose samplers, and report cosmological and astrophysical parameters at the standard expected on Planck-class CMB analyses, DESI/LSST large-scale structure, and gravitational-wave population studies.

Mindset And First Principles

  • The estimand is astronomical. Ω_c h², w, Σm_ν, σ₈, merger-rate density, or a luminosity-function slope — define the target quantity before choosing emcee, PolyChord, or a neural density estimator.
  • Posterior = prior × likelihood. P(θ|data) ∝ P(data|θ) P(θ). In cosmology the prior is rarely “flat”; physical bounds, slow-roll inflation priors on n_s, and neutrino mass floors matter. Run prior-predictive and posterior-predictive checks; document shifts when priors move H₀ or w more than new data.
  • Hierarchical structure is the default for populations. Individual-object parameters θ_i draw from hyperparameters ψ (mass, spin, redshift distributions in GW catalogs; photo-z scatter in n(z); extreme deconvolution for noisy measurements). Partial pooling beats stacking noisy points or fitting each object independently.
  • Parameter estimation ≠ model comparison. MCMC on base ΛCDM constrains six parameters; comparing ΛCDM to wCDM, curved models, or early dark energy needs Bayesian evidence (nested sampling, reactive PolyChord) or controlled Δχ²_eff — not a single-chain marginal alone.
  • A local 3σ bump in a searched space is not a discovery. The look-elsewhere effect (LEE) inflates significance when scanning mass, sky, period, or multipoles. Convert local p-values to global significance via trials factors (Gross–Vitells), Gaussian random-field approximations, or Bayer–Seljak prior-to-posterior volume ratios — not eyeballing the tallest peak.
  • Every catalog is selected. Flux limits, targeting, and quality flags define S(x); ignoring S(x) reproduces Malmquist and Eddington bias. Forward-model detection probability p_det(θ) in population likelihoods.
  • Upper limits are left-censored. Nondetections integrate over latent true flux in the likelihood; half-limit imputation is wrong.
  • Systematics share the error budget. Calibration, foreground, photo-z bias, shear multiplicative bias, and theory modeling (baryonic feedback) enter as nuisance parameters, emulators, or marginalized hyperparameters — not post-hoc shifts after a tight MCMC.

Read the full file on GitHub · 286 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. 5d ago First seen · 286 lines · 93 tokens per session scan A 55fe0989b56a

Subscribe to this mod's changes

astrostatistician is an agent published in the GitHub repository K-Dense-AI/scientific-agents (168 stars, last pushed 20d ago), licensed MIT. It adds 93 tokens to every session and 4,510 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