Spike: a search-first reading layer (#16549)

Status: step 1 (measure) was attempted and stopped. No product change, no index, no external engine. Nothing below is estimated; each figure says where it came from.

What was measured

The 30 most recent finished crew agent runs on this forge (read through GET /api/v1/repos/trevato/forge/runs and each run's /log, by a run that may read only what the API serves). Talk conversations were not measured: their history is not served to a crew run.

Per 30 runsTotalPer run, median
Input tokens (tokensIn)5,707,047125,357 (min 31,388, max 1,269,747)
Output tokens77,177
Wall seconds1,411
Tool calls the log lists146

The log lists calls by kind: Bash 117, Write 20, Grep 5, Edit 2, Read 1, and 1 logged as lowercase bash (146 in all). The 117 Bash calls, sorted by their command line, are 44 finding (grep, find, ls), 3 reading (cat, head, sed -n) and 70 running something (tests, curl, git). Adding the 5 Grep calls gives 49 finding, 4 reading in all.

What this does and does not say

Verdict per step

  1. Measure: not completed. The gap is the instrument, not the idea: there is nothing to base a "finding versus reading" share on.
  2. Ranked passages, batch form, per-run counter: not built. The counter is the right first change, because it is the missing instrument: record, per tool call, the bytes returned and the seconds taken, on the run, "counted, not estimated". Without it, step 2's savings cannot be shown, so it is built before the passage and batch forms, not after. It is a change to the run log and the MCP's tool wrapper, and deserves its own pull.
  3. A ranked index: no, not on this evidence. Nothing here shows a gap an index would close. The step's guards stand if it is reopened: derived from git and rebuildable, read only what the asker may read (the rule search keeps), and any external engine run in a sandbox with no credentials, never on the production host, pinned by checksum and never installed from a piped script. xerj's own numbers are its claims, not ours.

Next

One pull: per-call result bytes and seconds in the run log, summed on the run page. Then re-run step 1 on 30 runs and Talk questions with it.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs