I have been working on experimenting with differen...
# proj-codescout
p
I have been working on experimenting with different tools we can provide using a minimal agent (with read-only operations so that docker is not required). I have been testing how models in the 0.6B-4B range use these tools and also have some notes from my observations. (Code)
🔥 3
Tools Implemented: 1. OR-based keyword search with ranking (still iterating, can use off-shelf. models heavily favor top results) 2. Multi-mode search: class/function/variable definition search (to reduce noise from general keyword search), within file 3. Scrollable file viewing + repo navigation (to keep context short) 4. File import tracking (for easier debugging), file outlines, directory listing Tool Usage Patterns: 1. Models show strong bias toward tools giving quick answers (keyword search, repo structure) and return results without actually reading files, even with explicit prompting 2. 0.6B Qwen 3 model and 1.7B to some extent show inconsistencies between reasoning and tool calls. Not sure how viable. Primarily tested with 4B model 3. Model struggles to take >3-4 steps in a single trajectory despite prompting Misc: 1. Testing performance at longer contexts currently (by concatenating traj to extend turns beyond 3-4 steps). Can also look into if we want a fine-grained version of OpenHands-like context condensation as I am seeing a lot more looping at longer contexts. 2. Likely need distillation for how to use tools for longer objective (not trying to give answer within 2-3 turns)
a
It just occurred to me that if we're mainly concerned about latency to guide our model choice, then that doesn't mean the model should be small as long as it's fast. And I don't think VRAM is a constraint is it? MoEs are perfect for this imo. For example, gpt-oss-20b has 3.6b active params only so roughly the same effective size of qwen3-4b. gpt-oss-20b in particular is extremely good at instruction following, and as @limited-student-10747 already demonstrated, it does pretty well on code localization. To test this, I adapted your implementation to work with gpt-oss, and it does better than qwen3-4b already: • it doesn't spend too much time reasoning (can be controlled) and calls tools right off the bat • the reasoning seems to align with the actions it takes • since it doesn't reason too much, it's fast (~1-2 sec per turn on my 3090, sometimes less) • it doesn't seem to do parallel tool calling unfortunately • it usually burns through the step budget before giving a final answer • it always tries to look at the content of files as much as possible and goes over the context limit even after raising it to 16,384 I can share my code if there's interest, or maybe wait for the repo refactor before doing so
👍 4
l
Hey, it’d be great to test this out too, so feel free to share!
👍 1
a
Will do!