Skip to content

Version 0.2.0; an unavailable cost says why; CLAUDE.md setup and Codex note - #50

Merged
mtrager merged 2 commits into
mainfrom
small-fixes-0.2.0
Nov 23, 2026
Merged

mtrager merged 2 commits into
mainfrom
small-fixes-0.2.0

Conversation

@mtrager

@mtrager mtrager commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Small changes before 0.2.0.

  • Version 0.2.0 in pyproject.toml, src/autohelix/__init__.py and the README's citation. Every segment log records the version, and they all still said 0.1.1. The CHANGELOG's "Unreleased" heading becomes "0.2.0 — date" when the release is tagged.
  • An unavailable cost says why. When no cost is known and every unpriced call gives the same reason, the end of the run says it, for example "cost unavailable: set agent.model".
    • A real Codex 0.171 names no model in its JSON output (checked in a smoke test), so its calls are priced only with agent.model.
    • Usage records can come from a file that candidate code writes, so the reason is used only when it's a plain string, with terminal control sequences removed.
  • CLAUDE.md: the setup installs the examples extra, as CI does (the example tests need numpy, scipy and scikit-learn). The note on Codex's model is no longer "unconfirmed".

An independent review led to two changes:

  • The cost reason is checked and cleaned, as above.
  • CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 under a timeout is dropped. A background task that never ends would keep every call alive until its timeout, and the call would then count as failed.

Full suite: 2083 passed.

… an unavailable cost says why

- Version 0.2.0 (pyproject.toml, __init__.py, the README's citation): recorded in
  every segment log, which still said 0.1.1.
- With agent.timeout, CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 (unless set):
  claude -p otherwise stops background tasks 10 minutes after its last turn.
- When no cost is known and the calls give one reason, the end says it
  ("cost unavailable: set agent.model ..." for Codex, whose output names no
  model, checked on a real Codex 0.171).
- CLAUDE.md: the setup installs the examples extra (as CI); the Codex model note.
…ery unpriced call gives it, string-only and cleaned

- Dropped CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0: a background task that never
  ends would keep every call alive until its timeout, which then counts as a
  failed call; the report agent always has a deadline.
- format_total_cost: usage records can come from a file candidate code writes,
  so only a plain-string reason, cleaned of terminal controls, and only when all
  unpriced calls give the same one. Codex's reason is now "set agent.model"
  (fits an 80-column end block); its warning still says why.
@mtrager mtrager changed the title Version 0.2.0; Claude Code waits for background tasks under a timeout; an unavailable cost says why Version 0.2.0; an unavailable cost says why; CLAUDE.md setup and Codex note Nov 23, 2026
@mtrager
mtrager merged commit fd38357 into main Nov 23, 2026
10 checks passed
@mtrager
mtrager deleted the small-fixes-0.2.0 branch November 23, 2026 17:58
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.

1 participant