Repository navigation
v0.8.0
Added
-
A turn with room to work in may now batch its tool calls. The prompt said
"one tool call per reply, wait for the result" -- a rule measured on a 14b
model at a 16,384-token window, where four results at once is four results
there is nowhere to put. Nothing else ever enforced it:extract_json_objects
has always returned every object in a reply andAgent._loophas always
iterated the list. So on a backend that reports a large window -- 400,000 for
codex, 1,000,000 forclaude-code, or a local server configured past
65,536 -- independent calls may now go out together, which is the difference
between reading four files in four round trips and reading them in one. The
ordering rule batching cannot relax is stated with it: a call that needs
another call's result waits for the next reply, so nothing edits a file in
the same breath it reads it. -
The system prompt now says how to answer, not only how to work. It
described the job in detail -- read before claiming, small verified steps,
plan a long task -- and said nothing at all about the reply, which left the
register to the model. That is most of what a user means when an agent feels
wrong: a preamble announcing the plan, a summary repeating the tool calls
they just watched happen, a whole file pasted back to make a two-line point,
a comment explaining the change to the person who asked for it, a README
nobody wanted. There is now an# Answeringsection that rules each of those
out, asks forfile:lineso a claim can be opened, and asks for a failed
step to be reported with what it printed. It sits above the tool section,
because the emission format has to stay the last thing read.
Changed
-
The language reminder no longer ends on prose. It is appended to every
request in a language that is not English, and a turn with no plan ends its
request with it -- so the last thing the model reads before generating was
four sentences about writing sentences. A small model obliges: asked in Uzbek
to study this repo,qwen2.5-coder:7banswered in fluent Uzbek having called
no tool at all, in one run out of four. The language rule is stated first
now, and the note closes on the work: if the task is not finished, the next
reply is a tool call, and when it is finished, answer. Both halves matter --
this note is appended to every request, including the one_final_answer
sends after a bounded turn has been told to stop calling tools and answer.
A closing line that named only the call contradicted that, and being last it
won: two runs out of two were recorded with no answer at all. Stated as a
judgement rather than a measured fix -- runs of the same request produce
different outcomes, so nothing at this sample size tells a prompt change from
a dice roll. -
edit_filewill no longer change a file this session has not read. An
exact-string match was the only precondition, and it is not evidence that the
model read anything: a string remembered from an earlier session, or
reconstructed from the file's name, either matches or it does not. When it
does not, the turn spends three iterations discovering that -- edit,
old_string was not found, read, edit. When it does, the edit landed in a
file nobody looked at. It now says which of the two is wrong and what to do
about it. The same record catches the other half: a file saved by somebody
else since the agent read it is refused until it is read again, because an
exact match against the part that did not move is exactly how that goes
unnoticed.write_fileis unaffected -- it states the whole file, so there is
no remembered text for it to be wrong about -- and a turn's own writes count
as having seen the file, so two edits to one file still work. -
Two more small-model rules now stop at the edge of a small window. The
loop refuses a byte-identical repeat and declares the turn stuck on the
third, and the scout searches the workspace before the model has seen the
request. Both are right at 16,384 tokens: freeing context costs the model
what it read, so a second read really is a symptom, and a 14b model that is
not handed a search will answer without doing one. Neither describes a
400,000-token window, where nothing was dropped, a second read is a choice,
and the prompt has to spend a paragraph telling the model to ignore a search
it never asked for. Above 65,536 the repeat runs and the scout is off, unless
scoutis written down -- a setting in a config file means what it says
whatever the window is.
Fixed
-
Typing while a turn ran lost what you typed. The thread watching for Esc
owns the terminal for the length of a turn, and it read every key to find
out whether it was one -- then dropped the ones that were not. So a user who
started writing their next question while waiting on a local model watched it
disappear, with no sign it had ever arrived. What is typed mid-turn is now
kept and opens the next prompt as a draft, cursor at its end, editable and
sent like anything else typed there. Enter is not carried over: it was meant
to send a message nothing was reading, and honouring it would fire the text
the instant the turn ended without the user having seen a word of it. Arrow
keys leave nothing behind, and the buffer is bounded -- this reads whatever
the terminal hands over, including a file somebody redirected into it. -
A reply that carried a whole imagined turn had all of it executed. The
prompt has always promised that a call's result comes back before the next
call is made, and the loop has never enforced it:parse_tool_callsreturns
every object in a reply and every one of them ran. So when a small model
slipped from calling a tool into narrating a session -- listing the files,
then readingpyproject.toml, then grepping, all in one reply -- the loop
ran the lot. A real turn in this repo's own workspace on
qwen2.5-coder:7bemitted twelve calls that way and came back to twelve
results at once, which is more than a 16,384-token window holds; the answer
after it was "Sorry, but I can't assist with that." A serial turn now runs
the first call and says why the rest did not: they were written before their
predecessor's result existed, so they were guesses about output the model was
never given. A turn with room to batch is unaffected -- there the calls are
meant.