Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ ownership and the contributor routine that keeps documentation current.

For a picture of the whole flow, see the [workflow diagrams](docs/WORKFLOW.md).

`loopzero status` prints where the current branch is in that sequence.
`loopzero status` prints where the current branch is in that sequence. It
requires authenticated access to the configured GitHub repository even before
a PR exists.
`loopzero resolve` lists the open blocking findings with their ids;
`loopzero resolve <id> "<what changed>"` replies in that thread and resolves it.

Expand Down
20 changes: 12 additions & 8 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,19 +221,22 @@ Lock the vault and remove `BW_SESSION` before starting the agent.
### Several subscription accounts (optional)

`scripts/ai-accounts/` rotates Claude and Codex subscription accounts behind the plain
`claude`, `codex` and `loopzero` commands. Install the monitor and its three shims:
`claude`, `codex` and `loopzero` commands. Install the monitor and its three shims
from the [pinned source checkout](#connect-your-agent):

```sh
install -m 755 scripts/ai-accounts/ai-accounts ~/.local/bin/
ACCOUNTS=~/.local/share/loopzero/source/scripts/ai-accounts
install -m 755 "$ACCOUNTS/ai-accounts" ~/.local/bin/
mkdir -p ~/.local/lib/ai-accounts/bin
for n in claude codex loopzero; do ln -sf ~/.local/bin/ai-accounts ~/.local/lib/ai-accounts/bin/$n; done
```

Put the shims first on PATH by making this the last line of `~/.profile` and
`~/.bashrc`, after anything that prepends `~/.local/bin`:
`export PATH="$HOME/.local/lib/ai-accounts/bin:$PATH"`. Point an agent host's binary
path at `~/.local/lib/ai-accounts/bin/claude` (and `codex`). Enable the monitor by copying
the two systemd units to `~/.config/systemd/user/`, then
path at `~/.local/lib/ai-accounts/bin/claude` (and `codex`). Copy

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Unit copy step relies on $ACCOUNTS from an earlier code block but is written as prose

The installer now defines ACCOUNTS inside the code block, but the systemd unit copy is described in prose that quotes "$ACCOUNTS/...". A reader who opens a new shell, or copies only the prose, will have an empty $ACCOUNTS. ~/.config/systemd/user/ may also not exist yet. It would be clearer to move the unit step into the code block, for example mkdir -p ~/.config/systemd/user && cp "$ACCOUNTS"/ai-accounts.{service,timer} ~/.config/systemd/user/ && systemctl --user enable --now ai-accounts.timer. This also makes the acceptance claim that both units resolve through the pinned checkout copy-pasteable. The paths are correct as written: ai-accounts.service runs %h/.local/bin/ai-accounts, which matches the install target.

`"$ACCOUNTS/ai-accounts.service"` and `"$ACCOUNTS/ai-accounts.timer"` to
`~/.config/systemd/user/`, then run
`systemctl --user enable --now ai-accounts.timer`.

- Claude accounts are long-lived tokens: run `claude setup-token` per account and
Expand Down Expand Up @@ -305,10 +308,11 @@ loopzero start hello-loopzero # new worktree + branch; cd to the printed
$EDITOR .loopzero/task.md # fill Context, Problem, Goal and Acceptance
```

Use the [workflow diagram](docs/WORKFLOW.md#1-from-idea-to-merged) to navigate
the contract's [six steps](core/CONTRACT.md#the-six-steps). Run `loopzero status`
to see the next step. See [Blockers](core/CONTRACT.md#blockers) for how to
resolve review findings.
Make and commit a change in the task worktree, then run `loopzero check` there.
Afterward, `loopzero status` shows the next step and requires authenticated
access to the configured GitHub repository even before a PR exists. See the
[workflow diagram](docs/WORKFLOW.md#1-from-idea-to-merged) and
[Blockers](core/CONTRACT.md#blockers) for the rest of the workflow.

## Removing an abandoned task worktree

Expand Down
Loading