Inspect and query
help · version · inspect · inventory
stw inventory . --query dirty \
--scope disk --scope untracked --jsonLocal observations; no fetch or snapshot. Known false queries exit 0; unknown evidence exits 1.
FOR HUMANS & AI AGENTS
Know where you are. Understand what changes.
Keep control of what happens next.
A small, explainable toolkit for everyday version control.
Familiar in your terminal. Predictable for your agents.
PRE-RELEASE · IMPLEMENTED Native Git/jj inspection, task workspaces, local tidy and GitHub reads.
Human output or versioned JSON; explicit authorization for local changes.
$ stw inspect . --json
Native Git or jj identity
$ stw inventory . --json
Workspaces, references and qualified state
$ stw hosting repo . --json
Local GitHub repository candidates · no network
ONE TOOLKIT.
RESPECT EACH WORKFLOW.
IMPLEMENTED TODAY
Every data command offers human output and --json. Git and jj retain their native identities and limits. Check your installed version and command help.
help · version · inspect · inventory
stw inventory . --query dirty \
--scope disk --scope untracked --jsonLocal observations; no fetch or snapshot. Known false queries exit 0; unknown evidence exits 1.
workspace plan · workspace apply
stw workspace plan /path/to/source --base HEAD \
--destination /path/to/task --task issue-42 \
--owner developer --state-dir /path/to/state --jsonUse an unused destination and existing private mode0700 state directory. jj may use @ as its base. Planning stores state; reviewed apply needs --authorize.
workspace handoff · workspace retire-plan
stw workspace handoff /path/to/task \
--state-dir /path/to/state --jsonDescribe owned work and retention evidence. Preparation does not delete registrations or files.
tidy plan · tidy apply
stw tidy plan . --base main \
--ref finished-task --jsonSelect an explicit native base/reference. Uncertain work retains. Apply needs a stored plan; owned retirement has separate registration and exact-path file selections.
hosting repo · hosting pr · hosting ci
stw hosting ci 42 . \
--repo owner/project --jsonrepo is offline. PR/CI uses gh 2.102.0+ authentication and bounded HTTPS reads. No push, PR edit, merge or CI rerun.
gh jj repo · gh jj pr · gh jj ci
gh jj pr 42 /path/to/jj-workspace \
--repo owner/project --jsonShares SourceSteward operations; requires jj ownership and explicit extension installation. No replacement of an existing extension.
Worked examples, effects and prerequisites → · Generated CLI reference →
THE APPROACH
Small commands. Clear outcomes. The same facts for the person
reviewing the work and the agent doing it.
Concise human output and versioned structured results, without parsing a wall of terminal text.
Review stored plans, targets and declared effects. Apply requires explicit authorization and fresh checks.
Preserve worktree ownership and backend semantics. No silent migration, reset or raw-Git write fallback.
PLANNED · NOT AVAILABLE YET
Stack inspection/diffs, checkpoint/resume and integration preflight.
Work transfer, amend/fixup/split editing, local restacking and upstream synchronization.
Forge writes and native GitButler integration have separate future contracts.
Current tidy recovery evidence is bounded; automatic restoration is not implemented.
Explore native backend capabilities and limits →
Go + Cobra. Specification-led. Local workflows need no model or cloud account; GitHub reads need authentication.