Skip to content
Draft
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
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,15 @@ A transcript holds the prompts, the diff, and the file contents the reviewers re
Everyone who can read the store repository can read them, so give the store the same
readers as the code.

`ecr attach --pr <n>` reopens one stored pass on your machine, on the commit that
was reviewed. It downloads with your own `gh` login, which needs read access to the
store. An anthropic pass opens in Claude Code with the read tools only. Any other
pass opens in OpenCode, which asks before it runs a command, edits a file, or uses
the network.
`ecr attach --pr <n>` reopens one stored pass on your machine. It downloads with
your own `gh` login, which needs read access to the store. The pass sees the
transcript and no code. A pull request can come from a fork, so its code goes on
disk only with `--checkout`. That flag adds the reviewed commit as a temporary
worktree of your clone and removes it when attach ends. The clone's git hooks,
filters, and diff drivers do not run in that worktree, and its symlinks are plain
files. The fetched commit stays in the clone's object store. An anthropic pass
opens in Claude Code with the read tools only. Any other pass opens in OpenCode,
which asks before it runs a command, edits a file, or uses the network.

## Keeping prompts true (`ecr ref-check`)

Expand Down
8 changes: 5 additions & 3 deletions llp/0003-model-runtimes-and-credentials.explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,11 @@ the children of `ecr attach`. On `SIGINT` or `SIGTERM` the handler sends them `S
waits up to 3 seconds, then sends `SIGKILL`, and only then runs the `runAtExit` cleanups.
A `spawnPiped` child leads its own process group and is signalled as a group. A
`spawnInherited` child stays in the foreground group, because only that group may use
the terminal. `SIGHUP` gets a handler only once a `spawnPiped` child exists: such a child
does not get the hangup of a closed terminal, and a handler for every command would undo
`nohup` ([observed] `exec.ts` `onSignal`, `stopChild`, `installHangupCleanup`).
the terminal. `SIGHUP` gets a handler only once a `spawnPiped` child exists, or a caller
passes `hangup` to `runAtExit`: such a child does not get the hangup of a closed terminal,
and a handler for every command would undo `nohup`. `ecr attach` passes `hangup`, because
its temp directory holds a transcript and maybe a PR checkout, and it always runs in a
terminal ([observed] `exec.ts` `onSignal`, `stopChild`, `installHangupCleanup`, `runAtExit`).

**Stdout to a file.** `run` can send a child's stdout to a file (`stdoutPath`) and not
to a pipe. It is for a tool that exits before a pipe is drained: under Node, the pinned
Expand Down
26 changes: 20 additions & 6 deletions llp/0007-cli-commands-and-ci.explainer.md

Large diffs are not rendered by default.

Loading