feat(cli): remove per-60-second Haiku headline ticker#93
Merged
Conversation
Deploying zero-operators with
|
| Latest commit: |
21fbeb7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f94d85be.zero-operators.pages.dev |
| Branch Preview URL: | https://claude-remove-haiku-ticker.zero-operators.pages.dev |
The ticker spawned `claude -p --model haiku` every 60 seconds during a zo build / zo continue session to summarise recent agent events into a one-line headline. User feedback: nobody uses it. Cost: ~60 subprocess spawns per hour at ~$0.0001-$0.0003 each, totalling ~$0.06-$0.18 per overnight run, plus the latency/CPU cost of the spawn churn. Pure waste if the output goes unread, and the lead pane already shows the live task list and agent events in real time. Kept: - _generate_session_summary() — single Haiku call at session end for a 2-3 bullet wrap-up. ~$0.0002 per run, genuinely useful at close. - _headline_buffer + the .append() event-capture calls in _print_status (still feed the end-of-session summary). - --no-headlines flag — preserved for backwards compatibility. Its meaning narrows to "skip the end-of-session summary too" (it can no longer disable the ticker because the ticker doesn't exist). Removed: - _maybe_print_headline() function (~30 lines) - _last_headline_time + _headline_interval timer vars - The _maybe_print_headline() call inside _print_status - All doc language about "Haiku-summarised headlines every 60 seconds" in build.mdx Step 5 + Live monitoring Card + options table + low-token accordion, overview.mdx shared options table, quickstart.mdx "What you'll see" list + low-token Note, COMMANDS.md, low-token-mode.mdx preset tables + Batch API note, low-token-preset.mdx tables + flags. Behaviour change: anyone running zo build today sees a console headline every 60s; after this PR they don't. End-of-session summary unchanged. Pre-push verification (per PR-039 protocol): ruff check src/ All checks passed! uv run --python 3.11 pytest -q 743 passed, 7 skipped uv run --python 3.12 pytest -q 743 passed, 7 skipped bash scripts/validate-docs.sh 9 passed, 0 failed Note: PR #92 (bypass-permissions, +17 tests) is still open, so test count baseline is 743 here rather than 760. This branch is independent of #92. Memory protocol updated per CLAUDE.md auto-protocol: STATE.md session 032 entry, DECISION_LOG.md FEATURE-REMOVAL entry with rationale and alternatives. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4be0c09 to
21fbeb7
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the periodic Haiku headline ticker from
zo build/zo continueruns. The ticker spawnedclaude -p --model haikuevery 60 seconds throughout a session to summarise recent agent events into a one-line headline printed in the lead pane. User feedback: nobody uses it. The lead pane already shows the live task list and agent events in real time, so the Haiku summary added decoration, not signal.Cost saved
What's kept
_generate_session_summary— single Haiku call at session end (~$0.0002 per run) that prints a 2-3 bullet wrap-up of what the team accomplished. Useful, cheap, one-shot. User explicitly confirmed keeping this._headline_bufferand all the.append(...)event-capture calls in_print_status— still feed the end-of-session summary.--no-headlinesCLI flag — preserved for backwards compatibility. Its meaning narrows to "skip the end-of-session bullet summary too" (it can no longer disable the ticker, because the ticker doesn't exist).Anyone running
zo buildtoday sees a console headline every 60s (e.g.,▸ data-engineer profiling features...). After this PR they don't. The end-of-session bullet summary is unchanged.What was removed
Code (
src/zo/cli.py):_maybe_print_headline()function (~30 lines)_last_headline_time+_headline_intervaltimer variables_maybe_print_headline()call inside_print_statusDoc language about the ticker (rewritten or removed):
docs/cli/build.mdx— Step 5 monitoring sentence, "Headlines" Live-monitoring Card (deleted), options table--no-headlinesrow,--low-tokenaccordion textdocs/cli/overview.mdx— shared options table--no-headlinesrowdocs/quickstart.mdx— "What you'll see" bullet list +--low-tokenNotedocs/COMMANDS.md—--low-tokenand--no-headlineslinesdocs/concepts/low-token-mode.mdx— two preset tables + Batch API forward-looking notedocs/reference/low-token-preset.mdx— preset table + override flag entryPre-push verification (PR-039 protocol)
Note: PR #92 (bypass-permissions, +17 tests) is still open and unmerged, so the test count baseline is 743 here rather than 760. This PR is independent of #92 — different files, no merge conflict either way.
Memory protocol
Per CLAUDE.md auto-protocol:
memory/zo-platform/STATE.md— session 032 hand-off entry prepended.memory/zo-platform/DECISION_LOG.md— FEATURE-REMOVAL + BEHAVIOR-CHANGE entry at 2026-05-28T20:00:00Z with rationale and four alternatives considered (remove end-of-session too / remove flag entirely / non-LLM summariser / make ticker opt-in).Manual verification suggestion
After merge + deploy, on next
zo buildorzo continuerun:▸ <one-line headline>output--no-headlinesor--low-tokenwas passed)🤖 Generated with Claude Code