Give an agent a task
This walks one change through the starter: clicking a color copies its hex code. It assumes you’ve
forked the starter and are in ./starter.
1. A branch for the agent
Section titled “1. A branch for the agent”wrktr branch new copy-hexThe branch has its own worktree at .wrktr/worktrees/copy-hex, with npm ci already run there. Open a coding agent
in that directory and give it the task:
Clicking a color copies its hex code, with a short “Copied” toast. Then land it.
2. The agent edits; wrktr does the rest
Section titled “2. The agent edits; wrktr does the rest”The agent edits files and nothing else.
- The daemon commits after 30 seconds of quiet and pushes.
- CI runs
testandtypecheck, then the review agent reads the diff and the results. - Review threads and failing checks appear in
.wrktr/FEEDBACK.mdin the worktree. The agent reads them, fixes the code, and replies withwrktr feedback reply <id> "...". wrktr land --when-readylands the branch once the checks pass, the review approves and no thread is open.
The agent skill that wrktr setup installs teaches agents this loop, and the starter’s AGENTS.md repeats it.
3. Watch it
Section titled “3. Watch it”From your terminal:
wrktr status --branch copy-hex # checks, the review, open threads, conflictswrktr branch ls # every branch here, and where it standswrktr diff copy-hex # what it changesOr in the browser, on your fork’s page at wrktr.com: the branch’s description, diff, threads, checks and a chat with the change.
4. Two agents at once
Section titled “4. Two agents at once”Start a second branch and a second agent at the same time:
wrktr branch new lock-colorsEach has its own worktree, so they never share a checkout. If both change the same files, wrktr flags the overlap on each branch before they conflict; whichever lands second gets the first merged in by the daemon.
5. After it lands
Section titled “5. After it lands”The branch lands as a merge commit on main, and wrktr land --rm (or wrktr branch rm copy-hex) removes the
worktree. Once your fork’s environments are set up, the landing deploys to dev:
wrktr env ls # what's live wherewrktr status --branch copy-hex # where the landing is deployedNext: deploy your fork.