- Rust CLI code lives in
src/, split by concern:gitx,worktree,state,supabase,codex,pm,ui. assets/contains the prompt and JSON schema embedded bywrt init.tests/contains integration tests that create temp git repos.- Do not commit runtime artifacts:
.worktrees/<name>/,.wrt.env,.wrt.json.
wrt new <name>accepts slash-separated names likea/gpt/fix-login-timeout; the directory name is slugged under.worktrees/.wrt initshells out to the Codex CLI. For offline tests, setWRT_CODEX_MOCK_OUTPUT=/path/to/out.json.wrtmay patchsupabase/config.tomlto avoid port/container collisions; review those local-only changes before committing.
- Usual loop:
cargo fmt,cargo clippy --all-targets -- -D warnings,cargo test.