Skip to content

Run Tend's own workflows on Claude - #1639

Merged
max-sixty merged 1 commit into
mainfrom
claude
Nov 3, 2026
Merged

max-sixty merged 1 commit into
mainfrom
claude

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Drop harness: codex, its model pin, and codex.auth_refresh from
.config/tend.yaml, and regenerate the workflows with tend 0.3.23. The
hand-maintained review-reviewers.yaml moves to max-sixty/tend/claude
with a /review-reviewers prompt, and the overlay names the Claude
artifacts again. Mackup's rotator reads the harness from main and
publishes CLAUDE_CODE_OAUTH_TOKEN and CLAUDE_ACCOUNT once this lands.

codex-model-smoke.yaml still reads CODEX_AUTH_JSON from the tend
environment for the release gate; the rotator stops renewing it for a
Claude repo, so the last published access token lapses on 2026-11-05.

This was written by Claude Code on behalf of max-sixty

Drop `harness: codex`, its model pin, and `codex.auth_refresh` from
`.config/tend.yaml`, and regenerate the workflows with tend 0.3.23. The
hand-maintained `review-reviewers.yaml` moves to `max-sixty/tend/claude`
with a `/review-reviewers` prompt, and the overlay names the Claude
artifacts again. Mackup's rotator reads the harness from main and
publishes `CLAUDE_CODE_OAUTH_TOKEN` and `CLAUDE_ACCOUNT` once this lands.

`codex-model-smoke.yaml` still reads `CODEX_AUTH_JSON` from the `tend`
environment for the release gate; the rotator stops renewing it for a
Claude repo, so the last published access token lapses on 2026-11-05.
@max-sixty
max-sixty merged commit c4d69e0 into main Nov 3, 2026
13 checks passed
@max-sixty
max-sixty deleted the claude branch November 3, 2026 06:47
max-sixty pushed a commit that referenced this pull request Nov 3, 2026
…o 1-second turns (#1641)

Codex sessions that wait on a CI poll spend most of their tokens
checking in on it every few seconds, even though `codex/agents-tail.md`
already says to wait once. The current guidance covers only
`exec_command` and `write_stdin`. Under the pinned Codex 0.160.0 those
calls run inside a code-mode `exec` cell. The cell's `// @exec` pragma
has its own `yield_time_ms`, and so does the `wait` tool that resumes a
yielded cell. A short value there hands control back early, whatever the
inner `write_stdin` asked for. This PR names those two layers in the
existing bullet and gives every layer an hour (`3600000`).

**What we saw.** Triage of #1632 ([run
41409163237](https://github.com/max-sixty/tend/actions/runs/41409163237))
started `tend runtime poll-pr-checks` and correctly called
`write_stdin(..., yield_time_ms: 300000)`. But it did so inside a cell
headed `// @exec: {"yield_time_ms": 1000}`. The cell yielded after one
second, and the model then called `wait` on it 43 times at 1–10 s
intervals, plus 15 `sleep` calls. The fix was finished about 5 minutes
in. The remaining roughly 22 minutes went on CI jobs queued behind other
runs, and that waiting accounts for about 7.5M of the session's 10.9M
input tokens. The weekly pin subagent in [run
41409250004](https://github.com/max-sixty/tend/actions/runs/41409250004)
shows the same pattern.

**Why the new values are accepted.** Codex 0.160.0's code-mode source
(`code-mode-protocol/src/description.rs`) documents the pragma's
`yield_time_ms`, and `wait` defaults to 10 s.
`code-mode-runtime/src/service.rs` caps that wait only by an optional
per-cell limit, which local sessions do not set. `write_stdin` is
already allowed six hours by `background_terminal_max_timeout` in
`runner.py`. `exec_command` clamps to 30 s on its own, so the bullet
still sends a long wait through `write_stdin`.

This repo now runs on Claude (#1639), so the change won't show up in its
own runs. It reaches Codex consumers with the next release. The related
tests (`test_repo_pins.py`, `test_codex_runner.py`) and pre-commit pass.

Co-authored-by: tend-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants