GitWand: Command for Claude Code

.claude/commands/resolve.md

resolve is a command for Claude Code from devlint/GitWand. It costs 0 tokens per session (509 once invoked), scanned A, original, MIT.

A GitWand command workflow for resolving Git merge conflicts, which happen when competing code changes affect the same parts of a file. It automatically handles simple cases and leaves complicated sections for manual review.

In plain words
What is it for?
Use it to check conflict status, preview or apply automatic resolutions, and review remaining complex conflicts before finishing a merge.
Why use it?
It identifies which conflicts can be resolved safely and explains unresolved ones with the original, current, and incoming versions. This reduces repetitive conflict work while keeping difficult decisions visible.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is devlint/GitWand's own configuration. It tells Claude Code how to work on GitWand itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GitWand configures →

Reuse

Borrowing it

Nothing to install: this file belongs to devlint/GitWand. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/devlint/GitWand/main/.claude/commands/resolve.md
Clone the repo
git clone --depth 1 https://github.com/devlint/GitWand

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 resolve

README.md
[![agentmods](https://agentmods.dev/badge/commands/devlint/gitwand/resolve/github.svg)](https://agentmods.dev/commands/devlint/gitwand/resolve)
Your own site
<a href="https://agentmods.dev/commands/devlint/gitwand/resolve"><img src="https://agentmods.dev/badge/commands/devlint/gitwand/resolve/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 resolve

Your own site · 80×15
<a href="https://agentmods.dev/commands/devlint/gitwand/resolve"><img src="https://agentmods.dev/badge/commands/devlint/gitwand/resolve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 509 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.00000 $0.00509
Opus 5.5 $0.00000 $0.00204
Sonnet 5.5 $0.00000 $0.00102
Haiku 4.5 $0.00000 $0.00051

Measured 2mo ago against content hash 7bcf67ee1033, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

resolve 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 2mo 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.

.claude/commands/resolve.md · 55 lines

How it starts

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

Resolve Git conflicts with GitWand

Use the GitWand CLI to automatically resolve trivial merge conflicts, then handle remaining complex hunks manually.

Workflow

1. Check conflict status

npx gitwand status --json

This returns a JSON report showing each conflicted file, how many conflicts it has, and how many are auto-resolvable.

2. Auto-resolve what GitWand can handle

npx gitwand resolve --json

GitWand resolves conflicts with certain or high confidence automatically (patterns: same_change, one_side_change, delete_no_change, whitespace_only, non_overlapping, value_only_change, generated_file). Files are written in-place.

Use --dry-run to analyze without modifying files.

3. Interpret the JSON output

The resolutions array in each file entry contains:

  • line: start line of the conflict in the original file
  • type: the conflict pattern detected
  • resolved: whether GitWand auto-resolved it
  • explanation: human-readable reason for the decision
  • pendingHunks (if present): unresolved hunks with ours/theirs/base content for manual review

4. Handle remaining conflicts

For hunks with "resolved": false (type complex):

  • Read the hunk content from pendingHunks if available, or open the file
  • Understand the semantic intent of both sides using the explanation field
  • Write the correct resolution considering both changes
  • Stage the resolved file with git add

5. Verify

npx gitwand status

Confirm all conflicts are resolved, then git commit to complete the merge.

Tips

  • GitWand has specialized resolvers for JSON, YAML, Markdown, Vue SFC, CSS, TypeScript imports, and lockfiles (npm/yarn/pnpm). It resolves these at the semantic level, not just line-by-line.
  • The .gitwandrc file in the repo root can configure merge policies (prefer-ours, prefer-theirs, prefer-safety, prefer-merge, strict) and per-path overrides.
  • Confidence scoring uses a composite of typeClassification, dataRisk, and scopeImpact — not just the conflict type.

Read the full file on GitHub · 55 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. 2mo ago First seen · 55 lines · 0 tokens per session scan A 7bcf67ee1033

Subscribe to this mod's changes

resolve is a command published in the GitHub repository devlint/GitWand (194 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 509 tokens. 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

resolve compared with commands from other repositories

resolve next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
resolvedevlint/GitWandCommand194yesterdayMITA0Claude Code
diff-scriptmendixlabs/mxcliCommand137yesterdayApache-2.0A10Claude Code
session-reportdamusix/atomic-claudeCommand1154d agoMITA31Claude Code
commitdamusix/atomic-claudeCommand1154d agoMITA55Claude Code
commitechoVic/blade-codeCommand18124d agoMITA8Claude Code
post-release.enfitlab-ai/agent-infraCommand87yesterdayMITA4Claude Code
commit.zh-CNfitlab-ai/agent-infraCommand87yesterdayMITA6Claude Code