Compact a waiting worker's session before its prompt cache expires #587

Merged
lilleman merged 12 commits from item-310 into main 2026-11-19 04:58:55 +01:00
Showing only changes of commit e5258525e7 - Show all commits
+4 -4
View File
@@ -4,18 +4,18 @@ import sys
import typing
import uuid
from claude_code.entries import AssistantTurn, Entry
from loop_claude.hand_over import claude_args, ClaudeCommand, hand_over
from loop_effects.effects import Effects, say
from failure import Failure
from claude_code.entries import AssistantTurn, Entry
from claude_code.reply import Limited
from claude_code.tokens import tokens_of
from claude_code.transcript import human_turns, read_transcript
from loop_claude.cycle.worker import run_worker
from claude_code.reply import Limited
from loop_claude.stop import needs_human, needs_terminal, Stop
from loop_claude.cycle.worker import run_worker
from model_routing.ladder import Rung
from loop_claude.direct_message import tell
from loop_claude import tmux
from claude_code.tokens import tokens_of
ANSWER_QUESTION = "answer the question above"
# TALK, what the human types at loop-claude's terminal to open claude for the question, and ASK_ANSWER were picked on 2026-10-17 by a bench of three readers seated as the README's audience, as ~/.claude/CLAUDE.md → "Working loop" → "Bench a syntax with the people who write it." has it.