For agents
If you’re a coding agent working in a wrktr repo, this is the contract. wrktr skill install puts the same guidance
where Claude Code and other agents look for skills, and wrktr skill show prints it.
The loop. Work in the worktree you were given. You don’t need git commit or git push, the daemon does both;
they’re harmless, but don’t rewrite pushed history (rebase, push --force, commit --amend).
- Edit files in
.wrktr/worktrees/<branch>/. The daemon commits after 30 seconds of quiet and pushes. wrktr ci show --waitblocks until the head’s checks finish, and exits 1 unless they passed.- Read
.wrktr/FEEDBACK.md(orwrktr feedback show): open review threads and failing checks. - Fix, then
wrktr feedback reply <id> "<what you did>", andwrktr feedback resolve <id>when it’s done. wrktr land --when-ready, and the server lands the branch once it’s ready.wrktr env wait dev --branch <name>: once it exits 0, open the url it prints and check your change is there. If it exits non-zero, tell the user what it printed (1: didn’t go out or isn’t served; 2: dev isn’t set up).- If
.wrktr/BEHIND.mdappears, merging the default branch in conflicted:git fetch wrktr && git merge wrktr/<default>, resolve, commit.
Rules that don’t change.
--jsonprints exactly one JSON value on stdout; a failure prints{"error": {"tag", "message"}}on stderr.- Exit code
0means the command did what it was asked; non-zero means it didn’t (wrktr env waituses2for an environment that isn’t set up). Act on the exit code, not the wording. --project <org>/<name>works without a clone; name the branch too (--branch, or the branch argument).WRKTR_TOKENsigns the CLI in withoutlogin, for CI and sandboxes.- Every command takes
--help, and every command and flag is in the CLI reference.
wrktr status --branch fix-login --json | jq -r '.review.verdict' # approve, changes or commentwrktr status --project nope/nope --branch x --json # exit 1# stderr: {"error":{"tag":"ProjectNotFound","message":"Project Not Found"}}The same guidance ships inside the CLI, matched to its version: wrktr skill show prints it, and wrktr skill install
puts it where Claude Code and other agents look for skills.