Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 00:15
· 5 commits to main since this release

The release is about one number. Across every session on this machine -- 733
files, 37 recorded turns -- 18 of the 26 turns that answered called no tool at
all
, and 15 of those were real requests rather than greetings. Broken down by
the size of the system prompt, which is a proxy for the size of the workspace:
42% of turns on a medium one, 83% on the largest. Median iterations, 1.0.
The agent was answering out of a keyword search without opening a file, more
often the bigger the codebase got, and nothing in the loop or the benchmark
could see it happening.

Added

  • A turn that describes the work instead of doing it is refused. Tool calls
    travel in message content, so prose was the signal a turn had finished -- and
    prose is also what a model produces when it writes about a tool rather than
    calling one. The loop could not tell the two apart. It can now, by a rule that
    contains no language at all: the workspace search only runs when terms found
    something worth searching for, and it never does for a greeting, so a turn that
    searched and then answered without opening anything answered out of a keyword
    match. Two more tests back it up -- a reply that names a registry tool without
    calling it, and a reply whose every sentence announces an action. The last of
    those needed Uzbek to be useful: <verb>sh kerak is how the language says "it
    must be done", every narrated turn in the corpus is built out of it, and an
    English-only rule caught none of them.

  • Asked once, then done for it. Correcting a small model twice with the same
    paragraph returns the same paragraph: run against qwen2.5-coder:7b, three
    identical corrections produced three identical non-answers and a turn that
    opened nothing. So the correction now ends on a call that can be sent back
    verbatim, with the path filled in from the search's own best match -- at that
    size a model copies far better than it composes -- and on the second refusal
    the loop stops asking and reads the file itself. The precedent is the scout,
    which already puts a result the model never asked for into the history; this
    is the same move one step further on, and it is the step the model named. It
    goes through _execute, so permissions and hooks apply and the read is
    counted like any other.

  • @ attaches a file the user names, wherever it lives. A request pointing
    at @~/PRDs/mobile.tex from a workspace that does not contain it was
    unwinnable: the path is outside the root, contain refuses it, and nothing
    said so. The turn guessed the basename, globbed for it twice, read CLAUDE.md
    three times and was still going at 122 seconds with 70% of the window spent.
    The sandbox is about the agent's reach -- what the model may decide, on its
    own, to go and look at -- and a path typed at the prompt is not the model
    deciding anything. So the line drawn here is provenance, not location:
    Agent.run takes typed, defaulting to False, and the REPL and one-shot runs
    are the only callers that pass it. A sub-agent's instruction, a hook's output,
    a resumed history, and anything a file in the workspace could write all get
    nothing, because each is a route by which something other than the user could
    name a path. A path that cannot be read is attached too, saying so, since that
    one sentence is what the two minutes above were missing.

  • The benchmark counts what it could not see. An answer written without
    opening anything is fast, cheap, and reports answered -- there was no column
    it showed up in. scripts/benchmark.py now reports it, in the summary and in
    --compare, along with the slowest task beside the median: a hang does not
    move a median, it is the whole of what went wrong, and that is exactly how a
    5,288-second turn stayed invisible.

  • narrated joins the reasons a turn can stop, so the failure above is
    counted apart from a model that could not format a call. Different problem,
    different fix, and a stop that says which is which.

Changed

  • A single round trip is bounded. MAX_SECONDS was checked between
    iterations and skipped on the first, so it bounded nothing a short turn does:
    three turns in this machine's history ran 664s, 1,495s and 5,288s against a
    600s budget without it ever applying, and the 664s one was recorded
    answered. A bigger workspace is a bigger prompt is a slower first token, so
    on a large codebase the turn did not fail, it hung. The check now runs on the
    first iteration like the rest and reaches inside the read -- both halves of
    it, because a deadline tested against arriving chunks bounds nothing while
    none arrive, and the wait before the first token is most of a turn on a local
    model. Whatever prose arrived is kept and the turn ends on it as time-cap;
    a turn that heard nothing at all is not asked again, because asking a silent
    server for a final answer spends the whole of that budget waiting for the
    same silence. Measured against a socket that accepts and never replies: 66
    seconds for a turn bounded at 6, now 6.0.

  • Context is freed for nothing before a model call is paid for it. There
    are two levers and they cost wildly different amounts: eliding old tool output
    is a dict write, summarizing is a full model call that also, by its own
    instruction, drops the record of having read a file along with the file, so
    the model reads it again. Summarizing went first and the free lever was only
    reached on a second pass through the same turn -- which, across every session
    on this machine, never arrived. No transcript carries an elided result, while
    every window that filled paid a summarization round trip. Eliding now goes
    first and clears the reported token count, so the recheck afterwards is honest
    rather than always reporting the pressure it just relieved.

  • A read costs a fraction of the window rather than a quarter of it. The
    median read_file result across every session here is 6,166 characters --
    9.4% of a 16,384-token window in one call, five of them enough to fill it --
    and 24 of the 31 paged reads start at line 1, because nothing had told the
    model the file was 868 lines. So the default read length now follows the
    window, the same question set_output_budget already answers for characters
    and answered by the same call: 128 lines at the default window rather than
    400. glob says how long each file is, which read_file can only do
    afterwards -- which is exactly why the first read was blind. And the prompt
    says to search for the line before reading a window around it, rather than
    opening a file from line 1 to find out what is in it. grep was used once for
    every 5.4 reads.

  • The file listing is cut to fit a small window. The system prompt is fixed
    overhead paid on every request, and on this repo it is 11,926 characters --
    about 2,981 tokens, 18% of the default window before a word has been said,
    which is what a session showing 22% used on its first turn is made of. The
    listing is 3,462 of those characters and the only part that grows with the
    repository, so it is the part that answers to the window: 80 paths below
    65,536, and the prompt drops to 10,282 characters. Unchanged on a large
    window, which is where the 200 was measured.

Fixed

  • The workspace search no longer searches for the Uzbek word "this". "what
    is this repo about" produces no search terms, correctly; its twin "ushbu repo
    nima haqida" searched the workspace for ushbu -- and ranking on it returned
    whatever happened to say it. Two holes in the same list: bu and shu came
    in with language's vocabulary but ushbu, the formal "this" and the one
    people actually open a request with, did not; and Uzbek glues its cases on, so
    repo arrives as reponi, which a list written in nominative forms misses
    even though repo has always been in it. A token is now tested as a stopword
    twice, once as written and once with a case ending removed -- only when the
    message is Uzbek, because running ends in ning and run is a stopword.

  • An attached path is no longer handed to the workspace search. It is the
    one thing in a request that certainly is not in the workspace, so searching
    for it can only rank files by how much of somebody else's directory name they
    happen to share.

  • A sentence no longer ends at a filename. . is also what a file is named
    with, so splitting on a bare one turned "Faylni o'qish kerak:
    tests/test_parsing.py." into a narration plus the fragment "py`" -- and a
    reply stopped being narration because it had mentioned a Python file.