Budget-Aware Multi-Agent Coding Harness for git-native worktrees
Project description
wtcraft
Budget-Aware Multi-Agent Harness
npm install -g wtcraft
wtcraft is a lightweight, git-native harness for solo developers orchestrating multiple coding agents on a limited budget.
Keywords: Solo Dev · Budget-Aware · Agent Handoff · Boundaries · Lightweight
The goal is simple:
- keep agent work isolated with
git worktree - make agent handoffs explicit with a task contract
- keep file and task boundaries easy to verify
- stay usable from CLI + any IDE
No hosted platform is required. No custom runtime is required.
Why
Parallel agents are useful, but raw parallelism creates four common problems:
- unclear handoff between planner and executor agents
- context pollution across tasks
- file ownership collisions
- review overload from too many noisy PRs
wtcraft focuses on handoff, boundaries, and budget-aware sequencing, not maximum concurrency.
For the design story behind this project, read: wtcraft — Budget-Aware Multi-Agent Harness.
Core Model
- Planner defines a bounded task contract.
- Executor works only inside that contract.
- Verifier checks scope, off-limits, and completion gates.
- Finisher handles push/PR/cleanup.
This supports a DAG workflow:
- merge shared foundation tasks first
- run file-disjoint tasks in parallel
- serialize tasks that touch shared files
Project Status
Early public bootstrap.
Current scope:
- open documentation for workflow and roadmap
- starter contract and command specs
- CLI MVP available (
init,status,check)
Requirements
| Dependency | Required | Notes |
|---|---|---|
| bash | yes | macOS / Linux native; Windows requires Git for Windows (includes Git Bash) |
| git | yes | worktree support (git ≥ 2.5) |
| Claude + Codex access | yes (for full workflow) | both are expected for planner/finisher + executor roles; either CLI or App usage is acceptable |
| Package manager (npm / pipx|pip / Homebrew) | yes (choose one) | use at least one installation path |
For the full multi-agent workflow in this repo, both Claude and Codex are expected. You can use their CLI variants or app-based workflows, but the role split assumes both tools are available.
Install
npm (global):
npm install -g wtcraft
pip / pipx:
pipx install wtcraft # recommended — isolated venv, no conflicts
# or
pip install --user wtcraft
Homebrew (tap):
brew tap zywkloo/wtcraft https://github.com/zywkloo/wtcraft
brew install wtcraft
From source (no package manager needed):
git clone https://github.com/zywkloo/wtcraft.git
chmod +x wtcraft/scripts/wtcraft
# add wtcraft/scripts to PATH, or run directly:
wtcraft/scripts/wtcraft init
Quick Start
wtcraft init # scaffold harness into current repo
wtcraft init --patch-agent-files # also append routing stubs to CLAUDE.md / AGENTS.md
wtcraft new feat/my-task # create worktree + task contract
wtcraft status # list active worktree contracts
wtcraft check <worktree-name-or-path> # verify Scope / Off-limits
wtcraft verify <worktree-name-or-path> # run Verification commands
wtcraft help [command] # per-command usage
What init scaffolds:
.agent-harness/planner.md.agent-harness/executor.md.agent-harness/finisher.md.claude/commands/planwt.md→ becomes the/planwtslash command in Claude Code.claude/commands/finishwt.md→ becomes the/finishwtslash command in Claude Code.worktree-task.template.md
init is non-destructive: existing files are not overwritten.
By default init does not modify CLAUDE.md or AGENTS.md.
Use --patch-agent-files to append managed routing stubs. If CLAUDE.md or AGENTS.md do not exist, wtcraft will create them with a managed stub.
Claude Code slash commands
After running wtcraft init, restart Claude Code to load the new commands:
| Command | What it does |
|---|---|
/planwt <task description> |
Reads .agent-harness/planner.md and produces a bounded .worktree-task.md for the task |
/finishwt <worktree-name> |
Reads .agent-harness/finisher.md, runs verification, checks boundaries, and reports results |
Typical workflow:
/planwt add oauth login flow # 1. plan the task → .worktree-task.md
wtcraft new feat/oauth-login # 2. create worktree + seed contract
# agent works inside the worktree
wtcraft check feat/oauth-login # 3. verify Scope / Off-limits
/finishwt feat/oauth-login # 4. run verification and finish
new defaults to base branch develop. Set WTCRAFT_BASE_BRANCH=main (or another branch) when needed.
Prior Art and References
The term harness engineering was defined by Martin Fowler as the infrastructure and orchestration layer that wraps a coding agent — tooling, state management, error recovery, and boundary enforcement. wtcraft is a solo-developer implementation of that concept.
Production-scale validation:
| Source | Scale | Key insight |
|---|---|---|
| Fowler — "Harness engineering for coding agent users" | Conceptual definition | Harness = the layer between human intent and model execution |
| OpenAI — "Harness engineering: leveraging Codex in an agent-first world" | 1M+ lines, 1,500+ PRs / 5 months | Context engineering + architectural constraints + entropy management |
| Stripe — "Minions: one-shot, end-to-end coding agents" | 1,300+ AI PRs / week | Deterministic [D] + agentic [A] step tagging; 2-round CI cap |
Fowler describes what harness engineering is. Stripe and OpenAI describe how it works at enterprise scale. wtcraft brings the same pattern to a solo developer with a limited budget.
Docs
Testing
chmod +x tests/smoke.sh
tests/smoke.sh
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wtcraft-0.3.5.tar.gz.
File metadata
- Download URL: wtcraft-0.3.5.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d5e1f625ba4c9f23ea3eb8495ead065f22f120f18fe88798119cacd6d4db47
|
|
| MD5 |
d9500078df00fc76f852466d3e0030a1
|
|
| BLAKE2b-256 |
7beb2f526459a130cfaf0a0a54e74119addc168b899e55b194f4a7329bcc2c5a
|
Provenance
The following attestation bundles were made for wtcraft-0.3.5.tar.gz:
Publisher:
publish.yml on zywkloo/wtcraft
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wtcraft-0.3.5.tar.gz -
Subject digest:
c5d5e1f625ba4c9f23ea3eb8495ead065f22f120f18fe88798119cacd6d4db47 - Sigstore transparency entry: 1646938804
- Sigstore integration time:
-
Permalink:
zywkloo/wtcraft@ed9eec9e4399155ef3b1621402aece66b9774a18 -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/zywkloo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ed9eec9e4399155ef3b1621402aece66b9774a18 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wtcraft-0.3.5-py3-none-any.whl.
File metadata
- Download URL: wtcraft-0.3.5-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5f6a92383392c6bd05c92a4639337110cd361fb0966bb18129beec2a023f747
|
|
| MD5 |
06da608cede4be4ea634d89bf70d24b7
|
|
| BLAKE2b-256 |
21bd0eb21f5f27233c649905543082a2cee34913e0570d3e94301854234f778a
|
Provenance
The following attestation bundles were made for wtcraft-0.3.5-py3-none-any.whl:
Publisher:
publish.yml on zywkloo/wtcraft
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wtcraft-0.3.5-py3-none-any.whl -
Subject digest:
b5f6a92383392c6bd05c92a4639337110cd361fb0966bb18129beec2a023f747 - Sigstore transparency entry: 1646938917
- Sigstore integration time:
-
Permalink:
zywkloo/wtcraft@ed9eec9e4399155ef3b1621402aece66b9774a18 -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/zywkloo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ed9eec9e4399155ef3b1621402aece66b9774a18 -
Trigger Event:
push
-
Statement type: