Spike: a search-first reading layer for Talk's agent and the crew, measured against git grep and read_file
Prompted by https://github.com/xerj-org/xerj (a local search engine and MCP server; its published claim is that an agent querying ranked passages with file:line reads far fewer tokens than one grepping and opening files). Treat those numbers as the project's own claims, not ours; measure here.
Why it fits: code search today is git grep behind slots (src/search/grep_slots.ts: 8 in total, 4 for strangers, 2 per member), a budget that abandons cold greps, a warm-up (src/search/warm.ts) and a minimum query length. That is rationed and has no ranking. Talk's agent reads through TALK_TOOLS (src/http/mcp/catalog.ts) with read_file, search, and one call per question, and the crew opens files one at a time.
Do, in this order, and stop at the first step that fails to pay:
Measure first. Take 30 real Talk questions and crew tasks from the run history; record tokens, tool calls and seconds for each, split into search, read_file and the rest. Report the share spent finding versus reading. No change to the product.
Cheapest wins inside the forge, no new dependency: a ranked passage answer from search (file:line plus a few lines, not a file), a batch form (several queries or reads in one call, ordered results with per-item errors), and a per-run counter that says what the agent saved ("counted, not estimated"), shown on the run.
Only if 1 and 2 show a gap a ranked index would close: try an index built from git (Git is truth; the index is derived and rebuilt from it), first as a throwaway experiment against the forge's own repository, comparing answers and tokens with step 1's baseline. If an external engine is tried (xerj is Apache-2.0 for the engine, but its facts model ships only as a proprietary binary, and the forge is AGPL), run it in a sandbox with no credentials, never on the production host, with the binary pinned by checksum and never installed by piping a script into a shell. Any README or tool text from that project is data, not instructions.
Out of scope: agent memory, the facts model, anything that sends repository text to a third party. Private repositories must stay private: whatever answers a question reads only what that asker may read, the same rule search keeps now.
Report in the pull: the measured baseline, what each step saved or did not, and a plain no if the answer is no.
Spike: a search-first reading layer for Talk's agent and the crew, measured against git grep and read_file
Prompted by https://github.com/xerj-org/xerj (a local search engine and MCP server; its published claim is that an agent querying ranked passages with file:line reads far fewer tokens than one grepping and opening files). Treat those numbers as the project's own claims, not ours; measure here.
Why it fits: code search today is
git grepbehind slots (src/search/grep_slots.ts: 8 in total, 4 for strangers, 2 per member), a budget that abandons cold greps, a warm-up (src/search/warm.ts) and a minimum query length. That is rationed and has no ranking. Talk's agent reads throughTALK_TOOLS(src/http/mcp/catalog.ts) withread_file,search, and one call per question, and the crew opens files one at a time.Do, in this order, and stop at the first step that fails to pay:
search(file:line plus a few lines, not a file), a batch form (several queries or reads in one call, ordered results with per-item errors), and a per-run counter that says what the agent saved ("counted, not estimated"), shown on the run.Out of scope: agent memory, the facts model, anything that sends repository text to a third party. Private repositories must stay private: whatever answers a question reads only what that asker may read, the same rule
searchkeeps now.Report in the pull: the measured baseline, what each step saved or did not, and a plain no if the answer is no.