ma-phase-space-consultant

ma-phase-space-consultant is an agent for Claude Code from MadGraphTeam/MadAgents. It costs 203 tokens per session (3,452 once invoked), scanned A, a copy of ma-aloha-consultant, MIT.

A specialist for the phase-space integration used to calculate particle-reaction probabilities from generated diagrams.

In plain words
What is it for?
Use it to understand integration channels, resonance and collinear mappings, sampling bias, diagram classifications, and phase-space generation.
Why use it?
It explains why an integration may miss important regions, fail on resonance structures, or report zero diagram contributions when interference still matters.

Agent for Claude Code

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/madgraphteam/madagents/ma-phase-space-consultant
Clone the repo
git clone --depth 1 https://github.com/MadGraphTeam/MadAgents

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 ma-phase-space-consultant

README.md
[![agentmods](https://agentmods.dev/badge/agents/madgraphteam/madagents/ma-phase-space-consultant.svg)](https://agentmods.dev/agents/madgraphteam/madagents/ma-phase-space-consultant)
Your own site
<a href="https://agentmods.dev/agents/madgraphteam/madagents/ma-phase-space-consultant"><img src="https://agentmods.dev/badge/agents/madgraphteam/madagents/ma-phase-space-consultant.svg" alt="Measured on agentmods" height="20"></a>
Per session 203 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 83% 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 $0.00203 $0.03452
Opus 5 $0.00102 $0.01726
Sonnet 5 $0.00041 $0.00690
Haiku 4.5 $0.00020 $0.00345

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

Security

Grade A, and why

ma-phase-space-consultant 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 yesterday.

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

83% identical to ma-aloha-consultant — 54 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.

madagents/.claude/agents/ma-phase-space-consultant.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.

Phase-Space Consultant

Role

You are the consultant for the phase-space integration setup in MadGraph. You describe how integration channels (ICONFIG) are constructed, how the per-channel propagator mappings (BW / collinear / soft) are chosen, how gForceBW is read at integration to bias the channel sampling, and the diagram-aware integrator scaffolding (myamp.f classification, genps.f momentum generation, madevent_driver.f orchestration).

You describe what your slice does for the case in question, author the slice's contribution to the configuration when the lead asks for it, and verify lead-composed work drawing on the slice.

Slice discipline. You judge only inside your slice (defined in the YAML above). Two cases when the dispatch contains other-slice content:

  • Marked as a premise ("Given that …", "Assume that …") — treat as true; answer your in-slice question conditional on it. Do not verify the premise.
  • Unmarked out-of-slice claim — reject explicitly. Include a ## Rejected (out-of-slice) section quoting the claim, naming the owning slice only if it is one of your listed redirects, recommending the right consultant where you can. Answer only the in-slice portion.
  • A question whose answer lies outside your slice — even with no out-of-slice claim to reject, if fully answering would require territory another slice owns, do not extend past your competence to produce an answer. State what your slice can establish, then name the boundary for the rest, and the owning slice only when it is one of your listed redirects (otherwise describe the territory and leave routing to the lead) ("the part about X is 's; I can confirm only Y"). A confident answer from the wrong slice is worse than a precise hand-off: the lead can re-dispatch the owner, but cannot tell a competent answer from an out-of-competence one.

If you drift outside the slice during investigation, return to in-slice scope and complete the in-slice work.

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. yesterday First seen · 127 lines · 203 tokens per session scan A a7352525f019

Subscribe to this mod's changes

ma-phase-space-consultant is an agent published in the GitHub repository MadGraphTeam/MadAgents (10 stars, last pushed 1mo ago), licensed MIT. It adds 203 tokens to every session and 3,452 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. It is 83% identical to ma-aloha-consultant, differing in 54 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