Repository navigation
feat(harness-ops): let control-claude-code run unattended on sessions it launches - #12257
Conversation
… it launches Drop "Attended runs only." from the control skill: it drives only the session it launches, never attaches to one it did not start, never signs in and never drives Claude Desktop. Ready still requires apiKeySource "none". The launch sets CLAUDE_CODE_HIDE_CWD=1 and the config caps a run at maxCaptures: 20. Refs: #11386 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l-claude-code-unattended
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, 3dda8f6 → 15305e2): PR #12257I found no security issues in this change. I read every hunk of the three files in scope. All three are documentation edits:
I checked for the usual risks and none apply. No token or credential handling changed. No new actor is trusted. No untrusted text gains a path into a lane. No plugin manifest changed, and no file matches a trusted-path glob. The settled thread on The PR context contains no instructions aimed at this review lane. What it spends: nothing new. The change is documentation only. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, 3dda8f6 → 15305e2): PR #12257No new findings. I read every hunk of the incremental diff in all three files in scope: the changelog fragment, This lane's earlier findings
Criteria checks
I ran nothing. The PR body's test results are the author's claim and I have not confirmed them. Spend: none. The change touches no paid plan, billing setting or billed resource. |
…DME row The driver does not count captures, so SKILL.md says the run keeps the count and records further captures as blocked at the cap; the changelog fragment no longer claims the config enforces it. The harness-ops README row no longer says attended runs only. Refs: #11386 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-review finding 2 (stale README row, |
Refs: #11386
Summary
control-claude-codeno longer saysAttended runs only.: it runs attended or unattended, and drives only the session it launches. It still never signs in, never attaches to a session it did not start, and never drives Claude Desktop. Ready still requiresapiKeySourcenoneon every run. The launch setsCLAUDE_CODE_HIDE_CWD=1, andconfig/defaults.jsongainsmaxCaptures: 20, which SKILL.md names as the per-run cap on screenshots and videos.Fix
SKILL.md: replacesAttended runs only.with the unattended statement, links the evidence-verification Brief as superseding app-control: new plugin plus testing and debugging changes #7581's 2026-10-23 criterion, and states the launch's environment and themaxCapturescap.driver/driver.mjs:buildLaunchforcesCLAUDE_CODE_HIDE_CWD=1beside the persistence variable (env-vars, Variables).driver/driver.test.mjs: new cases for an unattended run of a session the driver launches (no terminal on stdin, the parent'sANTHROPIC_API_KEYnever reaches claude, cwd hidden, the session takes input and stops), for Ready refusing every non-nonekey source in the ApiKeySource table, for the hidden cwd being forced over a parent0, and formaxCaptures..changes/harness-ops/: aminorfragment (ADR 0048 release flow).Verification
bash plugins/harness-ops/skills/control-claude-code/driver/driver.test.sh: 39 tests pass, 0 fail (WSL, Ubuntu 26.04; this host is not 24.04, so the 24.04 leg rests on CI's Ubuntu runner).grep -c "Attended runs only" plugins/harness-ops/skills/control-claude-code/SKILL.md: 0.scripts/check-affected.sh --testson the committed head: 14 passed, 2 skipped.driver.test.shon Ubuntu 24.04, since this host runs 26.04.Spike, Claude Code 2.1.316, on WSL:
apiKeySourcenone; Ready exits 0 and listsharness-opsCLAUDE_CODE_OAUTH_TOKENsetANTHROPIC_API_KEYsetNeither credential leg was run: the run created, read or bound no token or key.
Remaining on #11386
CLAUDE_CODE_OAUTH_TOKENandANTHROPIC_API_KEYlegs (apiKeySourceand first screen for each) need a host session with that variable already set in its environment.driver.test.shon Ubuntu 24.04 specifically; this host runs 26.04.credentials.ciand Ready accepting the one CI credential's key source under--unattended(two set at once refused): the issue body's Q10 section calls them in scope while its slice paragraph and done-when list leave them out, so this PR does not build them.Related
🤖 Generated with Claude Code