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.
curl -O https://raw.githubusercontent.com/devlint/GitWand/main/.claude/commands/preview.mdgit clone --depth 1 https://github.com/devlint/GitWandWrote 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.
[](https://agentmods.dev/commands/devlint/gitwand/preview)<a href="https://agentmods.dev/commands/devlint/gitwand/preview"><img src="https://agentmods.dev/badge/commands/devlint/gitwand/preview/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.
<a href="https://agentmods.dev/commands/devlint/gitwand/preview"><img src="https://agentmods.dev/badge/commands/devlint/gitwand/preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00581 |
| Opus 5.5 | $0.00000 | $0.00232 |
| Sonnet 5.5 | $0.00000 | $0.00116 |
| Haiku 4.5 | $0.00000 | $0.00058 |
Grade A, and why
preview 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Preview merge conflicts before merging
Use this workflow to assess merge risk BEFORE actually merging a branch. This avoids surprises and lets you plan conflict resolution in advance.
Workflow
1. Identify the source branch
Determine which branch you want to merge into the current branch. Example: merging feature/auth into main.
2. Simulate the merge (without modifying the working tree)
git merge --no-commit --no-ff <source-branch> 2>&1 || true
If conflicts arise, Git leaves conflict markers in the working tree without committing.
3. Analyze with GitWand
npx gitwand resolve --json --dry-run
The --dry-run flag ensures no files are modified. The JSON output shows:
- Total conflict count per file
- How many GitWand can auto-resolve (and with what confidence)
- Which hunks are
complexand need human/LLM attention
4. Assess the risk
From the JSON output, evaluate:
| Metric | Low risk | Medium risk | High risk |
|---|---|---|---|
| Auto-resolvable % | > 80% | 50-80% | < 50% |
| Complex hunks | 0-1 | 2-5 | > 5 |
| Files affected | 1-3 | 4-10 | > 10 |
5. Decision
If low risk: proceed with npx gitwand resolve to auto-resolve, then handle remaining hunks.
If medium/high risk: review the complex hunks first. The explanation field in each unresolved hunk describes WHY it's complex (overlapping edits, both sides modified the same function, etc.).
6. Abort if needed
git merge --abort
This cleanly restores the working tree to its pre-merge state.
Example: full preview flow
# Start the merge simulation
git merge --no-commit --no-ff feature/auth
# Analyze conflicts
npx gitwand resolve --json --dry-run | jq '.summary'
# If acceptable, resolve for real
npx gitwand resolve
# Handle remaining conflicts manually, then
git add -A && git commit
# If not acceptable, abort
git merge --abort
Notes
- This workflow works for both
git mergeandgit rebaseconflicts - GitWand's format-aware resolvers (JSON, YAML, lockfiles, imports) often resolve conflicts that look complex at the text level but are trivial at the semantic level
- The
.gitwandrcconfig file controls resolution policies — check it before previewing if the repo has one
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.
- 2mo ago First seen · 78 lines · 0 tokens per session scan A 09fb9245dda8
preview 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 581 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.
preview compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| previewdevlint/GitWand | Command | 194 | yesterday | MIT | A | 0 | Claude Code |
| diff-scriptmendixlabs/mxcli | Command | 137 | yesterday | Apache-2.0 | A | 10 | Claude Code |
| session-reportdamusix/atomic-claude | Command | 115 | 4d ago | MIT | A | 31 | Claude Code |
| commitdamusix/atomic-claude | Command | 115 | 4d ago | MIT | A | 55 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 24d ago | MIT | A | 8 | Claude Code |
| post-release.enfitlab-ai/agent-infra | Command | 87 | yesterday | MIT | A | 4 | Claude Code |
| commit.zh-CNfitlab-ai/agent-infra | Command | 87 | yesterday | MIT | A | 6 | Claude Code |