Repository navigation
The loop now has a reason to keep digging
Every guard in the agent loop pushed it to stop: the identical-batch counter, the identical-result counter, the call-site window. Nothing balanced them, so the cheapest way for a model to end a run was to stop calling tools, and the loop agreed however much it had left open. A scan that gave up early and a scan that finished looked the same from outside.
The termination boundary asks now. When the model emits no tool calls, what your ledger still has outstanding comes back to it as one more turn: unresolved hypotheses, and services recorded as surface that nothing you tried mentions. Three properties keep it from becoming a leash. It reports state and never an instruction — it names no tool and prescribes no action. It is capped at two. And deciding a hypothesis is not worth chasing is a complete answer. A shallow stop becomes visible without becoming impossible.
Hypotheses are records. ledger() holds them with an id, the evidence behind them, how the agent said it would test them, and a status it can resolve. A bare sentence is still accepted and promoted to a record, because refusing them would only stop the agent writing down the half-formed suspicions worth the most. They outlive context compaction; the transcript they used to live in does not. show takes a filter too, by status or free text, so joining two observations thirty steps apart no longer depends on both still being in the window.
Reasoning budget follows the evidence. /effort low|medium|high|off sets it for the session instead of the launch-time environment variable. A tool that found something says so in its result: param_probe when a parameter moved the response in a way the baseline does not explain, segmentation_test when the boundary did not hold or could not be read. The loop raises the budget one notch for the next few steps and knows nothing about which tool means what. Still unset by default, because a model that does not implement reasoning_effort answers 400 to it rather than ignoring it.
None of this is a rule in the system prompt. One line there changed, and only to stop pointing hypotheses at note() now that there is a better place for them.
Tool calls in one batch run at once
A model that asks for four port scans in one message meant them to happen together; they used to run end to end, so the batch cost the sum of its parts. The ordering providers enforce is of the tool responses, which is preserved, and a cancelled batch still answers every tool_call_id.
Fixes
- Two tools asking for consent at the same moment would have raced for one line of stdin. The operator would have seen two questions, answered one, and which one got the answer would have been luck. Prompts now serialize on a lock and re-check for a remembered approval after taking it. Latent until something ran concurrently, which is now.
/effortdeliberately is not saved to your config: a stored "high" would quietly bill every later session for deliberation it did not need.
52 tools — this release adds none, it changes what the loop does with the ones there are. 785 tests, 60 of them new, across Python 3.10 to 3.13.
Authorized use only. pwner sends real traffic to the hosts you name and, with your approval, actively breaks into them.