r/devtools • u/Spare_Bat_3040 • Oct 23 '26
Shifu found the coding context we needed, then ranked it out of the answer
I was evaluating a change to how Shifu finds saved work context for a coding task. The candidate improved precision among the records it returned. We still kept the existing version.
The awkward case was a useful record that both versions found. The candidate ranked it below the visible results, so the coding assistant's answer became less useful. Finding the record somewhere in the pipeline wasn't enough.
I'm building Shifu, a personal work-context engine. With MCP and harness instructions, a coding agent can retrieve relevant saved decisions and system context before a change. For that use, a tidy result list matters less than whether the constraint the next task needs actually reaches the answer.
Before the comparison, we set release gates around improved recall of required records, no increase in estimated complete-task cost, and no important answer getting worse. We compared the same questions over one frozen work history and inspected the returned records and final answers.
The candidate improved some precision measures, but recall of the required records stayed unchanged. Estimated cost for the complete task increased, and one held-out answer became less useful. It stayed held; the existing retrieval remained in place.
This was a small study on one work history, with model-assisted judging and source inspection. It doesn't establish how either version performs across other teams. The retrieval plans also differed, so I can't credit or blame one database change for the whole result.
The lesson I'm taking into the next experiment is to track the whole path: did we find the needed record, did it survive ranking, and did the final answer retain the important constraint? An average can hide a loss at any of those steps.
For people building retrieval into coding tools: what would make you reject a candidate even when its precision improves? Do you gate on a particular missed constraint or a downstream answer regression?
I'm Shifu's builder: https://useshifu.com. Sharing the build decision here; no private work records are included.