Skip to content

Claude Code /cosmotron

The full multi-agent pipeline is also available in Claude Code via the /cosmotron slash command (.claude/commands/cosmotron.md). It reads the agent roster directly from .opencode/agents/*.md — the same files opencode uses — so there is one set of agent definitions maintained for both platforms.

After registering the MCP server for Claude Code, open the project and run:

/cosmotron ./data/my_survey/ Compute Cls at nside=128, skip systematics

The command orchestrates the same pipeline — bootstrap → plan → human gate → ingest → analysis → review — with identical NEEDS_INPUT relay and plan-approval semantics to opencode mode (see Agent roster: Platform conventions). The opencode-specific agent features not available in Claude Code (per-agent model pinning, per-tool MCP deny list) are noted as V1 limitations in the command file.

Via the installer (recommended):

conda activate cosmotron
scripts/install.sh          # accept the "Register for Claude Code?" prompt

This writes a project-scoped .mcp.json in the repo root (gitignored — each clone needs its own registration). Approve the cosmotron server when Claude Code prompts on first open.