Answer prose round 2: 0 🔴, 2 🟡 (0 misread); the hooks claim names every claude in the home, and the docstring drops what a caller does
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -70,7 +70,7 @@ build-release and build-epic run every claude in the loop's Claude home, `~/.loc
|
||||
|
||||
Sign in to the loop's home once. Until you have, build-release and build-epic stop and print the line to run, `CLAUDE_CONFIG_DIR=~/.local/share/build-release/claude-home claude`: type `/login` in the claude it opens. A model you pick there with `/model` stays in the generated `settings.json`. The loop's home has no theme or status line of yours: those stay in your own `~/.claude`, for the claude you start yourself. build-release or build-epic builds the home again once the clone holds another commit, as after `self-update`, and keeps the sign-in, the model and the sessions. It builds the home again when you change `XDG_STATE_HOME`, too. The home follows the clone whose build-release, build-epic, `task-bench gather` or `claude-release` ran last, so run only the release clone's, never the development clone's: that one would point every running loop at unreleased rules.
|
||||
|
||||
To work in the loop's home yourself, for a manual `/larv-review` or a planning talk, run `~/build-release/bin/claude-release` in the project's checkout. It builds or refreshes the home first, as above, then runs claude there and passes every argument on, so `--resume`, `-p` and `--model` work as with plain claude. Where nobody has signed in to the home yet, type `/login` in the claude it opens. The home's `settings.json` bypasses permissions, and Claude Code may still ask you to trust the folder. Only the loop's sessions and `claude-release` load the setup's hooks, such as `rule-hook`'s guards: the claude you start from your own `~/.claude` loads neither the setup nor its hooks.
|
||||
To work in the loop's home yourself, for a manual `/larv-review` or a planning talk, run `~/build-release/bin/claude-release` in the project's checkout. It builds or refreshes the home first, as above, then runs claude there and passes every argument on, so `--resume`, `-p` and `--model` work as with plain claude. Where nobody has signed in to the home yet, type `/login` in the claude it opens. The home's `settings.json` bypasses permissions, and Claude Code may still ask you to trust the folder. The setup's hooks, such as `rule-hook`, which refuses a tool call that breaks a rule a program can check, run in every claude in the loop's home: the loop's sessions and `claude-release`. The claude you start from your own `~/.claude` loads neither the setup nor its hooks.
|
||||
|
||||
The setup keeps each project's config, and what you choose for a project, in the config folder, `~/.config/build-release/`. Its tools keep their own state, such as transcripts, review reports and locks, in the state folder, `~/.local/state/build-release/`. The loop's Claude home is in the data folder, `~/.local/share/build-release/`, which holds what build-release builds again and what Claude Code writes. Where `XDG_CONFIG_HOME` holds an absolute path, the config folder is `build-release/` under that path instead, and likewise the state folder under `XDG_STATE_HOME` and the data folder under `XDG_DATA_HOME`; this README spells the defaults. Set such a variable in the environment Claude Code starts in, since rule-hook reads it there. Back up these four folders:
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ def unready(home: pathlib.Path, clone: pathlib.Path, reports: pathlib.Path, clau
|
||||
|
||||
|
||||
def only_signed_out(reason: str) -> bool:
|
||||
"""Whether a reason `unready` gave is that nobody has signed in yet, which is typed away in a claude that runs in the home."""
|
||||
"""Whether a reason `unready` gave is that nobody has signed in yet."""
|
||||
return reason.startswith(SIGNED_OUT)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user