guardian-mcp

guardian-mcp is a skill for Claude Code, Codex from Washington5533/guarftrain. It costs 65 tokens per session (2,114 once invoked), scanned A, original, MIT.

A set of agent instructions for Guardian, a sidecar program that watches machine-learning training while it runs. It covers monitoring, anomaly detection, checkpoint analysis, recovery, dashboards, and comparisons across experiments.

In plain words
What is it for?
Use it to inspect training runs, detect or analyze anomalies, review checkpoints, recover training, configure the dashboard, and compare experiments.
Why use it?
It helps an agent understand training status and investigate problems using Guardian's monitoring data and tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to inspect training runs, detect or analyze anomalies, review checkpoints, recover training, configure the dashboard, and compare experiments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/washington5533/guarftrain/guardian-mcp
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.

Any agent
npx skills add Washington5533/guarftrain --skill guardian-mcp
Clone the repo
git clone --depth 1 https://github.com/Washington5533/guarftrain

Made for: Claude Code, Codex.

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 guardian-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/washington5533/guarftrain/guardian-mcp/github.svg)](https://agentmods.dev/skills/washington5533/guarftrain/guardian-mcp)
Your own site
<a href="https://agentmods.dev/skills/washington5533/guarftrain/guardian-mcp"><img src="https://agentmods.dev/badge/skills/washington5533/guarftrain/guardian-mcp/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 guardian-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/washington5533/guarftrain/guardian-mcp"><img src="https://agentmods.dev/badge/skills/washington5533/guarftrain/guardian-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,114 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.00065 $0.02114
Opus 5 $0.00032 $0.01057
Sonnet 5 $0.00013 $0.00423
Haiku 4.5 $0.00006 $0.00211

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

Security

Grade A, and why

guardian-mcp 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 10d 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.

skills/guardian-mcp/SKILL.md · 241 lines

How it starts

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

Guardian MCP — Agent Skill

Guardian is a sidecar daemon for ML training. It monitors, detects anomalies, makes LLM-guided recovery decisions, and exposes everything through 35 MCP tools. Training scripts need zero changes.


Setup & Configuration

Prerequisites

  • Python 3.10+
  • pip install guarftrain (or clone + pip install -e .)
  • MCP SDK: pip install guarftrain[mcp]
  • For LLM-powered agent decisions: pip install guarftrain[agent] + set ANTHROPIC_API_KEY

Start Guardian MCP Server

Three modes, pick one based on your scenario:

A. Co-located with training (best real-time, recommended)

guarftrain watch --with-mcp -- python train.py --epochs 20

MCP server runs in the same process as guardian watchdog. Shares memory state directly.

B. Standalone stdio (Claude Code subprocess model)

guarftrain serve --transport stdio

Reads checkpoint/log files from disk. Suitable when training is already running separately.

C. One-click: Dashboard + MCP + browser

guarftrain start

Launches Dashboard (port 8765) + MCP SSE server (port 8766) + opens browser.

Connect Your Agent Client

Claude Code / Qoder — stdio mode:

Add to .claude/mcp.json or .claude/settings.local.json:

{
  "mcpServers": {
    "guardian": {
      "command": "guarftrain",
      "args": ["serve", "--transport", "stdio"],
      "cwd": "/path/to/your/project"
    }
  }
}

Remote server — SSE mode:

# On remote machine:
guarftrain serve --transport sse --port 8766

# SSH tunnel from local:
ssh -L 8766:127.0.0.1:8766 user@server

# Local client config:
{
  "mcpServers": {
    "guardian-remote": {
      "type": "http",
      "url": "http://127.0.0.1:8766/sse"
    }
  }
}

Enable Write Tools (optional)

Write tools (intervention, restart, stop) require explicit opt-in:

  1. In configs/guardian.yaml:
mcp:
  enabled: true
  enable_write_tools: true
  1. Set auth token:
export GUARDIAN_MCP_TOKEN=your-secret-token

Read the full file on GitHub · 241 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. 10d ago First seen · 241 lines · 65 tokens per session scan A 27a1df9dd3d2

Subscribe to this mod's changes

guardian-mcp is a skill published in the GitHub repository Washington5533/guarftrain (1 stars, last pushed 15d ago), licensed MIT. It adds 65 tokens to every session and 2,114 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

ito-compute

Query live GPU inventory, submit an authenticated Itô fixed-rate RFQ, inspect RFQ or procurement status, revoke device credentials, and run explicitly gated node qualification through the separately installed canonical CLI. Use when a user asks to find H100/H200 capacity, request a fixed compute rate, check Itô…

gongyijie85/dsh-ecc · 90 tokens

ito-inference

Inspect the availability of model serving on a completed Itô compute booking and, when the canonical backend becomes available, hand off an explicitly confirmed serving manifest. Use after ito-compute has booked GPU nodes and the user asks for an OpenAI-compatible endpoint, ito-serve, hosted Kimi, or self-hosted…

gongyijie85/dsh-ecc · 80 tokens

ito-training

Inspect the availability of ML training on a completed Itô compute booking and, when the canonical backend becomes available, hand off an explicitly confirmed training manifest. Use after ito-compute has booked GPU nodes and the user wants pre-training, fine-tuning, or RL on that metal. ECC implements no training…

gongyijie85/dsh-ecc · 68 tokens

bio-workbench

A set of rules for running reproducible bioinformatics analyses, which study biological data with software. It uses small self-contained scripts, recorded inputs and outputs, environment details, and version history so results can be repeated.

poplarity/dsh-science-workbench · 116 tokens

mle-workflow

Production ML engineering workflow — data contracts, reproducible training, evaluation gates, deployment, and monitoring. Use when building, reviewing, or hardening ML systems beyond notebooks.

chandrudp29/skillhub · 39 tokens

short-drama-image-prompts

A method for writing reusable image prompts for short dramas, covering characters, costumes, places, props, and visible states. A prompt is text that tells an image-generation tool what to create.

zenstory-ai/oh-story-dsh · 86 tokens