monte-carlo-reinforce-agent

monte-carlo-reinforce-agent is a skill for Claude Code from monte-carlo-data/mc-agent-toolkit. It costs 147 tokens per session (2,359 once invoked), scanned A, original, Apache-2.0.

A workflow for improving an AI agent using Monte Carlo's daily analysis of its task traces. It turns diagnosed workflow problems into proposed code changes and can lead to a pull request after approval at each step.

In plain words
What is it for?
Use it to read reinforcement reports, rank diagnosed issues, choose fixes, and guide approved changes through to a pull request.
Why use it?
It connects evidence about an agent's failures with specific fixes, so improvements can be reviewed before code is changed. A pull request is a proposed code change submitted for team review.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to read reinforcement reports, rank diagnosed issues, choose fixes, and guide approved changes through to a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monte-carlo-data/mc-agent-toolkit/reinforce-agent
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 monte-carlo-data/mc-agent-toolkit --skill reinforce-agent
Clone the repo
git clone --depth 1 https://github.com/monte-carlo-data/mc-agent-toolkit

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 monte-carlo-reinforce-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/monte-carlo-data/mc-agent-toolkit/reinforce-agent.svg)](https://agentmods.dev/skills/monte-carlo-data/mc-agent-toolkit/reinforce-agent)
Your own site
<a href="https://agentmods.dev/skills/monte-carlo-data/mc-agent-toolkit/reinforce-agent"><img src="https://agentmods.dev/badge/skills/monte-carlo-data/mc-agent-toolkit/reinforce-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,359 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00147 $0.02359
Opus 5 $0.00073 $0.01179
Sonnet 5 $0.00029 $0.00472
Haiku 4.5 $0.00015 $0.00236

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

Security

Grade A, and why

monte-carlo-reinforce-agent 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 8d 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/reinforce-agent/SKILL.md · 165 lines

How it starts

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

Monte Carlo Reinforce Agent Skill

This skill turns Monte Carlo's reinforcement loop diagnosis into landed code fixes. Monte Carlo runs a daily reinforcement loop pipeline that analyzes an agent's traces and produces, per workflow, a report of diagnosed issues — each with supporting evidence (trace deep-links, verifier checks) and recommended fixes. This skill reads that diagnosis, ranks it, proposes what to fix, and follows through with a pull request — pausing for the user's decision at each fan-out point.

Monte Carlo tool routing (required): Always call Monte Carlo MCP tools through this plugin's bundled server, whose fully-qualified tool names are mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__<tool> (e.g. mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__get_reinforcement_loop_report). Bare tool names used in this skill (get_agent_metadata, get_reinforcement_loop_summaries, get_reinforcement_loop_report) refer to that bundled server. If the session also has a separately-configured monte-carlo-mcp server, do not route to it — it may point at a different endpoint or credentials.

When to activate this skill

Activate when the user:

  • Wants to fix or improve an AI agent based on its Monte Carlo reinforcement loop ("fix my agent", "reinforce my agent", "improve my agent's health").
  • Asks what to fix in an agent ("what are my agent's top issues", "what should I fix in ").
  • Wants a PR that addresses an agent's diagnosed problems.

When NOT to activate this skill

  • Investigating one agent alert or trace (eval-score drop, latency/token spike, a specific trace id) → use monte-carlo-troubleshoot-agent-traces. That skill investigates a single incident; this one acts on the standing reinforcement loop diagnosis across a workflow and writes code.
  • Creating or tuning agent monitorsmonte-carlo-monitoring-advisor / tune-monitor.
  • Instrumenting a new agent to emit traces → monte-carlo-instrument-agent.

Read the full file on GitHub · 165 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. 8d ago First seen · 165 lines · 147 tokens per session scan A df10086d23b4

Subscribe to this mod's changes

monte-carlo-reinforce-agent is a skill published in the GitHub repository monte-carlo-data/mc-agent-toolkit (91 stars, last pushed 14d ago), licensed Apache-2.0. It adds 147 tokens to every session and 2,359 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

systematic-debugging

A step-by-step method for finding the underlying cause of technical problems before changing code. It covers reading errors, reproducing failures, checking recent changes, and tracing data across system components.

jnMetaCode/superpowers-zh · 24 tokens

diagnose-backend-bug

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do…

QoderAI/better-harness · 87 tokens

debug-live

Guides root-cause investigations with debugging capabilities by setting breakpoints, starting a debug session, stepping through execution, inspecting variables, and tracing symptoms back to their origin. Prefer it for runtime bugs, failing tests, exceptions, crashes, hangs, wrong/null values, and unexpected output…

microsoft/DebugMCP · 84 tokens

lcx-report-bug

Create a high-signal bug issue or PR in the repo that owns the defect. Use this whenever the user asks to report, file, open, or triage a LazyCodex, lazycodex-ai, omo-codex, Codex plugin, or upstream Codex CLI bug, especially when they need source-backed root cause, reproduction steps, fix guidance, and GitHub routing.

code-yeongyu/oh-my-openagent · 85 tokens

remove-deadcode

Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits. Triggers: remove dead code, dead code, cleanup, remove unused.

code-yeongyu/oh-my-openagent · 41 tokens