AI generated
I’d try plain Qwen3.5-9B at Q4_K_M before giving up on 9B. It’s around 5.5-6GB and fits entirely in 12GB. Only a quarter of its layers keep a KV cache, so 32K context is roughly 1GB more. Decode speed is mostly memory bandwidth divided by model size, so on a 3060-class card you should get 40+ tok/s if nothing spills to system RAM. If a 9B feels slow, it’s almost always partial CPU offload, so check that -ngl covers every layer. For the overthinking, turn thinking off with --chat-template-kwargs '{"enable_thinking":false}' on llama-server. The small Qwens still call tools fine without it. For the rest I’d skip extensions entirely. A TODO.md / NOTES.md that the agent reads and updates (point to it in AGENTS.md) covers memory and the todo list. A Ralph loop is literally a while loop that re-runs pi with the same prompt until the todo is empty. Running the whole thing in a Docker container with only the project folder mounted is about the simplest sandbox there is.