Warrior
git status does not show you most of the ways you can lose work.
A scan of 415 real repositories on one developer's machine — a decade of
accumulated projects, no different from what's probably sitting on yours —
found:
- a JetBrains shelf 403 days old, another 706 days old, both invisible
to
git status, invisible to git stash list, hidden by .gitignore
- 58 stash entries across 27 repositories, most of them automatic
safety-net stashes from 2014–2019 — the oldest is eleven years old
- 4 files that existed only in
.git/index — one git reset away from
gone, with no reflog entry to recover them
- 37 commits with no branch or tag pointing at them, sitting on git's
default two-week garbage-collection clock
- 50 repositories with no remote at all — no mirror, no backup, nothing
but the one copy on disk
None of that is carelessness. It's what happens when a tool hides state and
only ever shows you one slice of it at a time.
Warrior is two things married into one plugin: preservation-first git
tooling that finds what's at risk before you touch anything, and a set of
real-engineering practice skills — TDD, code review, spec/ticket flows,
domain modelling — sourced from
mattpocock/skills (MIT, see
NOTICES/). Neither half is complete without the other: practising good
engineering on a machine that's quietly losing work isn't safety, and never
losing anything is worthless if what you keep was never any good.
Quick start
Read-only, no configuration required, no network access:
git clone [email protected]:deanhowe/warrior.git
cd warrior
warrior-scan ~/code
It prints what it found, ranked by how bad it would be to lose:
CRITICAL — only copy of real work, and Git will not show it to you
HIGH — single copy: no mirror, ahead of every mirror, or shelved off to the side
MEDIUM — recoverable today, but on an expiry clock
INFO — structural: understand it before you move or clean anything
Install as a Claude Code plugin
/plugin marketplace add [email protected]:deanhowe/warrior.git
/plugin install warrior
.claude-plugin/marketplace.json makes this repo its own single-plugin
marketplace, the same pattern upstream uses. Run
claude plugin validate . --strict after touching either manifest file.
What's here
Preservation — the layer everything else sits on
Thirteen tools in bin/, all read-only, additive, or plan-first:
| Tool command (copy/paste) | What it does |
|---|
warrior-scan | Finds the eleven ways work can be invisible to git — shelves, stashes, index-only content, unreachable commits, unmirrored repos, and more |
warrior-facts | Answers questions about your machine: where is this repo, what exists under this root, what's unprotected |
warrior-protect | Gives an unprotected repository a real, verified home on a git server — verified by checking the server's own refs, never by trusting an exit code |
warrior-classify | Works out what each repository on your server is for — your own code, a mirror of someone else's, an archive — and records it |
warrior-credits | Live credit/quota balance across every AI harness you run, at zero token cost, without spending a prompt to ask |
warrior-agents | Validates and safely installs native Guardian, Wayfinder, and lease-bound Builder profiles for Kiro, Claude, and Copilot; Codex uses the matching native skills |
warrior-server-status | Is your git forge actually healthy right now — reachability, disk headroom, mirror staleness, backup freshness — not just whether it answers HTTP 200 |
warrior-sidecar | Give a project a named, versioned space beside it that its own history never sees — goals, tmp, wiki — instead of a gitignored directory with zero protection |
warrior-knowledge | Read-only health check for a Git-backed knowledge source: identity, dirt, remote symbolic HEAD, and exact local/remote commit equality; no harness or forge assumptions |
warrior-history | History doctor and public-export gate: explains risky history, removes files or whole directories in disconnected candidates, scans one selected branch for secret/personal-data patterns, and builds a fail-closed public projection without rewriting the source |
warrior-upstream | Proves a vendored source relationship from a manifest: exact commit, byte-identical files, renames, declared adaptations, omissions, and undeclared drift—without fetching or updating anything |
warrior-project | Builds a read-only import dossier, then turns current dirty state into a pinned checkpoint closure plan with one verdict per repository, sensitive names withheld, and no automatic checkpoint writes |