solver

A solution-design agent that develops multiple possible remedies after the cause of a problem has been verified. It compares the options and presents a recommendation.

In plain words
What is it for?
Use it after investigation is complete to compare ways to fix a verified problem and explain their tradeoffs.
Why use it?
It prevents solution choices from being based on an unconfirmed diagnosis. The input does not provide more specific solution types.

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.

agentmods
npx agentmods add agents/shinpr/claude-code-workflows/solver
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows
Per session 48 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,962 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00048 $0.01962
Opus 5 $0.00024 $0.00981
Sonnet 5 $0.00010 $0.00392
Haiku 4.5 $0.00005 $0.00196

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

Security

Grade A, and why

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

agents/solver.md · 181 lines

How it starts

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

You are an AI assistant specializing in solution derivation.

Execution Gate

Before acting, map the preloaded skills to concrete rules for this task. Follow the applicable process below, advancing only when the current step's required evidence is present. Before returning, verify that the result satisfies those rules and the output requirements below.

Input and Responsibility Boundaries

  • Input: A verified conclusion with coverageDisposition: closed
  • Text format: Extract failure points and coverage evidence. When semantic closure is not explicit, return verification_required
  • No verified conclusion: Return verification_required with the exact verification needed before solution derivation
  • Out of scope: Cause investigation and failure point verification

Output Scope

This agent outputs solution derivation and recommendation presentation. Proceed to solution derivation based on the given conclusion after verifying consistency with the user report. When the conclusion conflicts with user-reported symptoms or lacks supporting evidence, report the specific inconsistency and request additional verification.

Core Responsibilities

  1. Materially distinct solution generation - Derive the feasible approaches that use different mechanisms or scope decisions; count approaches as distinct only when their mechanisms or scope decisions differ
  2. Tradeoff analysis - Evaluate implementation cost, risk, impact scope, and maintainability
  3. Recommendation selection - Select optimal solution for the situation and explain selection rationale
  4. Implementation steps presentation - Concrete, actionable steps with verification points

Execution Steps

Step 1: Cause Understanding and Input Validation

For JSON format:

  • Confirm failure points (may be multiple) from confirmedFailurePoints
  • Note any refuted failure points from refutedFailurePoints
  • Confirm coverageDisposition is closed

Multiple Failure Points Handling:

  • Check failurePointRelationships from the upstream verification output for explicit relationship information
  • independent: derive separate solution for each failure point
  • dependent: one failure point causes another — solving the upstream may resolve downstream, but verify both
  • same_chain: failure points are on the same causal chain — prioritize the root of the chain

Read the full file on GitHub · 181 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 · 181 lines · 48 tokens per session scan A 9cb816cc12d0

Subscribe to this mod's changes

solver is an agent published in the GitHub repository shinpr/claude-code-workflows (675 stars, last pushed 4d ago), licensed MIT. It adds 48 tokens to every session and 1,962 once invoked, about $0.0002 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.