r/LocalLLaMA • • 14d ago

Question | Help Simplest Local Agentic Setup

TL;DR simplest reasonable agentic setup
Currently Pi Agent, Bonsai 2 9B, SearXNG
Any suggestions ?

Hi all

So I have a secondary workstation with line 24GB of RAM and 12GB VRAM

I wanted to make a local agentic setup there

Currently using Pi Agent with Bonsai 2 9B, it is unbelievably better than I expected
Around 30 toks is more than reasonable
I don’t want this to be super capable just good enough for ease of use and peace of mind (I might sacrifice quality for speed although not much)

Any suggestions (note I want to keep everything simple I don’t want packages with long prompts etc even my pi search extension is the simplest one I have found, I have been thinking about context compression extensions, sub agent delegation or simple sandboxing for that sub agent memory Ralph loop and to do list but all has to be the simplest)

Any suggestions thanks ? (Note models 9B or bigger are really slow so also model suggestions are truly welcomed, nanbeige was nice but thinks (or overthinks) too much …etc)

Thanks

14 Upvotes

32 comments sorted by

3

u/leonardo_alegria 13d ago

plain qwen3.5 9b at q4_k_m is ~5.5gb, fits fully in 12gb with plenty of room for context, should be faster than what you’re getting if nothing spills to cpu (check -ngl). for the overthinking just disable thinking in the chat template, the small qwens do tools fine without it. for memory/todo i’d skip extensions and just have it keep a TODO.md it reads and updates, a ralph loop is basically a while loop around that

1

u/Potential_Block4598 13d ago

The only problem is that it is slow

2

u/chibop1 14d ago

Have you tried Granite 4.2 8B?

1

u/Potential_Block4598 14d ago

Honestly note yet
Tried ministral bonsai qwen3.5 lfm3 Gemma

1

u/Potential_Block4598 14d ago

Will try it thanks

2

u/CombinationFun2789 14d ago

I'd leave Pi Agent and SearXNG alone and skip the Ralph loop / sub-agents. On 12GB those just chew context and make a 9B even slower.

The only simple add I'd bother with is a plain markdown file the agent can read and append to — a todo list plus a few notes it should remember. That's enough to survive a context reset, and you don't need compression or another package for it.

For the speed issue, I'd try a smaller non-thinking instruct, or a tighter quant of Bonsai, before another 9B. Nanbeige overthinking is the first thing I'd cut; 30 tok/s on Bonsai is already usable if the model stays concise.

1

u/Potential_Block4598 14d ago

I think sub agents can offload tasks and KV right ?

1

u/CombinationFun2789 14d ago

Sub agents can offload tasks, but each one still needs its own context, and on 12GB you're short on VRAM for the extra KV cache. If you try it, keep them to short single-purpose jobs and cap the context hard, or the speed hit will eat the benefit.

2

u/stylome-ai-detection 14d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

1

u/Potential_Block4598 13d ago

I also use public searxng

1

u/stylome-ai-detection 14d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

1

u/Potential_Block4598 11d ago

Update fried almost everything at this size

Bonsai 2 27B is the best (with KV quantized!)

Nothing else is even “usable”

It is a miracle though that this is even possible

Also I used pi web access from bytetrue and Ralph-loop plugin with todo list (for smaller models it was needed but here I think not much!)

Thanks everyone

4

u/eightone-81 13d ago

Nemotron bolt e4b is interesting.
It’s fast with dflash and pretty good in agentic stuff. I played around with it a bit. Don’t expect it to do anything near what 27b would do… but I think it can handle simple stuff

3

u/chibop1 14d ago

Also newer MiMo-V2.6 Distill 9B looks interesting. I haven't tried though.

3

u/garblz 13d ago edited 13d ago

Depends. What is your use-case? Coding?

I'd say skip any byzantine subagent orchestration. See "how much of a harness does a strong agent need" paper from Apple. It is ML-task centered, but I was able to replicate it easily tho for my own coding purposes.

I'd suggest a simple schema, which seems to work well for smaller models (yeah it's another paper, but this one is short and inclludes a link to repo with working implementation).

Also, you probably want to save your context. I mean tokens are kinda free-ish when running local, but still, when running less than 262k ctx you might run into more context rot problems. This paper (176 configurations tested) https://arxiv.org/html/2609.20804v1 suggests planning and pruning long tool output has best results for small models and small contexts - caveat being I have not noticed any quality improvement after doing the tool output pruning, but noticed way less context usage. But I'm running a larger model (ds41f) and they report quality gains for small models.

Just play around and see where you get gains and where you burn tokens for nothing.

2

u/PhilosopherOk3419 13d ago

+1 on keeping it boring. what made the biggest difference for me was setting the context size explicitly instead of letting it default huge, and quantizing the kv cache to q8 so a long session doesn't spill to ram and tank the speed. i'd also cap search results to a few snippets instead of full pages, that's where most of the context goes on small models

1

u/MichelleZhao91 14d ago

watch the kv cache, that's what caps a 9B on 12GB. once the context grows past what fits in vram it spills to RAM and your 30 tok/s drops off a cliff, so the context compression you mentioned ends up mattering more than which 9B you pick. how long a context are you running before it slows down?

1

u/tmvr 13d ago

Why would you use Bonsai 2? Just use the original Qwen3.5 9B at Q4_K_XL, set KV to q8_0/q8_0 and make sure you only define the context size so that it fits into the VRAM.

You can also try Qwen3.6 35B A3B, it should still be fast enough. Hard to say how fast because you did not provide specs of what exactly you have.

1

u/ea_man 13d ago

I'd rather use A3B (some finetune if you prefer) with offloading ~Q4 or Q5 rather than 9B.

Recent optimization with llama.cpp MoE or Strata would help.

-2

u/MostlyVerdant-101 14d ago

Why not try vibe coding a strata-like streaming weight engine with Vulkan as the backend. RSI is just around the corner; biggest challenge is coherence.

3

u/Potential_Block4598 14d ago

What?

1

u/MostlyVerdant-101 11d ago

If you don't understand the benefits, you can stay with the vanilla setup you have. Some people are treating compute layers as transient streams to best utilize their hardware.

0

u/[deleted] 13d ago

[deleted] — view deleted comment

2

u/stylome-ai-detection 13d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results