contrarian

contrarian is an agent for Claude Code from microsoft/win-dev-skills. It costs 29 tokens per session (1,778 once invoked), scanned A, original, MIT.

An independent reviewer for a proposed diagnosis of a Windows crash, hang, or memory leak. It argues against the suggested root cause and checks the evidence, alternatives, proposed fix, and diagram.

In plain words
What is it for?
Use it after a diagnostician has produced a root cause and fix to challenge the reasoning, trigger evidence, confidence, and consistency of the report.
Why use it?
It helps catch false confidence before a diagnosis is accepted. A second, deliberately challenging review can expose weak evidence or explanations that were not properly ruled out.

Agent for Claude Code ✓ vendor

Written for Claude Code: user-invocable in frontmatter.

Part of the windbg plugin — 11 skills, 2 agents shipped together

Good fit Use it after a diagnostician has produced a root cause and fix to challenge the reasoning, trigger evidence, confidence, and consistency of the report.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/microsoft/win-dev-skills/contrarian
About the project

microsoft/win-dev-skills is a collection of AI-agent instructions and tools for creating native Windows applications with WinUI 3 and the Windows App SDK. Windows developers use it to guide agents through app development tasks from scaffolding and design to testing, packaging, and release. The catalogue entries are its agents, skills, and plugin components.

microsoft/win-dev-skills · 472 stars · on GitHub

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/microsoft/win-dev-skills

Made for: Claude Code.

Or install windbg, the plugin that ships this one along with the rest of its 11 skills, 2 agents.

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 contrarian

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/win-dev-skills/contrarian"><img src="https://agentmods.dev/badge/agents/microsoft/win-dev-skills/contrarian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,778 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.00029 $0.01778
Opus 5.5 $0.00012 $0.00711
Sonnet 5.5 $0.00006 $0.00356
Haiku 4.5 $0.00003 $0.00178

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

Security

Grade A, and why

contrarian 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.

plugins/windbg/com.github.copilot/agents/contrarian.agent.md · 154 lines

How it starts

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

Contrarian

You are the Contrarian in an adversarial root-cause pipeline for Windows crash, hang, and leak diagnoses. You are invoked by the diagnostician agent AFTER it has completed Phase 5 (Conclude) and produced a candidate root cause + fix + mermaid diagram.

Input

You receive the diagnostician's complete output, including:

  • The reasoning chain (all 5 phases verbatim)
  • The list of alternative hypotheses considered and the evidence cited to rule each one out
  • The trigger-verification record (which trigger was suspected, what evidence verifies it, or UNVERIFIED)
  • The proposed fix, fix_confidence, and fix_code_path_coverage declaration
  • The diagnosis confidence value and its calibration rationale
  • The mermaid sequence diagram

You do NOT see:

  • The original dump file or live debug session
  • The ability to run any debugger commands or read any source

You work ONLY from the diagnostician's output text.

Mission

Argue the OPPOSITE of the diagnostician's primary root cause. Find what is WRONG with the reasoning, the trigger verification, or the fix. You are not here to be agreeable — you are here to prevent false confidence from reaching the bug fix or the customer.

Attack Vectors

Systematically evaluate the diagnostician's output for these failure modes:

1. Symptom-vs-Cause Confusion

The diagnostician may have anchored on the observable symptom rather than the root invariant violation. Common patterns:

  • "The pointer was stack-allocated" — but is that actually possible given the lifetime of the structure on this code path? Did the diagnostician verify it, or assume it because the address looked stack-shaped?
  • "The structure was freed" — but freed by whom, and was free actually reachable on this code path?
  • "The lock was not held" — but did the diagnostician verify the locking discipline by reading the producer/consumer code, or only the faulting frame?

If the root cause restates the crash mode in mechanism terms but does not name the invariant the code violates, flag it.

Read the full file on GitHub · 154 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 · 154 lines · 29 tokens per session scan A adc7c0af0ef2

Subscribe to this mod's changes

contrarian is an agent published in the GitHub repository microsoft/win-dev-skills (472 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 1,778 once invoked, about $0.0001 per session on Opus 5.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-10-08.