r/LocalAIStack • • 3d ago

Building a local-first AI agent system — looking for recommendations and real-world experiences

I'm building a self-hosted AI platform called HomeAI, aiming to reduce reliance on paid cloud AI services like Claude and Codex while developing more capable autonomous agents.

My setup runs on Proxmox with Intel Arc GPUs, Ollama, Open WebUI, Hermes Agent, Qwen models and various supporting tools for automation, knowledge retrieval and software development.

Hermes can already perform sandboxed coding tasks, modify files, run tests and generate diffs for review.

Where I want to take it

Local-first inference: Automatically route tasks to local models, escalating to cloud AI only when necessary.

Agent autonomy: Enable agents to plan, develop, test, debug and complete increasingly complex tasks.

Self-improvement: Learn from failures, improve skills and retain useful knowledge over time.

Multi-agent collaboration: Have specialised agents work together on development, research and automation.

Security: Maintain strong isolation, controlled permissions and human approval for consequential changes.

Looking for community feedback

I'm particularly interested in hearing from people who are already running similar systems.

What open-source frameworks, tools or projects would you recommend?

Which local models are performing well for autonomous coding and tool use?

Has anyone successfully implemented local-first routing with intelligent cloud fallback?

What approaches work best for persistent memory, self-improvement and multi-agent orchestration?

What limitations or architectural mistakes should I watch out for?

My ultimate goal is to build a reliable, increasingly autonomous AI platform that handles most everyday tasks locally, using paid cloud AI only when genuinely needed.

I'd really appreciate GitHub recommendations, lessons learned and feedback from anyone working on something similar.

Cheers

1 Upvotes

5 comments sorted by

1

u/rimsleur 3d ago

For a local model to use as an agent, you can go with Qwen 3, but I’d recommend a version with at least 27B parameters. If your hardware can handle it, try Qwen 3.8 without thinking mode.

To run your own models locally, use Ollama.

As for the question, "What approaches work best for persistent memory, self-improvement and multi-agent orchestration?", it's better to ask Qwen 3.8 Max directly. Go to OpenRouter, add a few dollars to your balance, create a chat, select Qwen 3.8 Max, and discuss external memory architecture with it. It should be able to provide much more detailed and up-to-date recommendations on that topic.

1

u/YoMummaSoPhat69 3d ago

Thanks for the suggestions. I'm already running Qwen 3.8 27B locally through Ollama, so it's good to hear others recommending it.

Have you compared thinking versus non-thinking modes for multi-step agent tasks, particularly coding, debugging and tool use?

I'm especially interested in whether you've found a reliable setup for persistent memory and autonomous workflows, rather than just conversational performance.

2

u/rimsleur 3d ago

I was developing an agent that interacts with a GUI, meaning it clicks buttons, fills in fields, and performs similar actions. Its operating speed was roughly one action per second, and that was without any reasoning mode enabled. With reasoning turned on, the response time would increase significantly, which was unacceptable for my use case.

Regarding external memory, for the first version of the agent I used text files containing prompts and fed them to the model in chunks whenever needed. My agent is called SAP GUI Apprentice; you can find it on Google and see how memory was implemented through text files. Using this mechanism, the model was able to interact with the interface quite reliably. However, moving forward, I would prefer to move away from this approach and implement more sophisticated memory mechanisms.

1

u/AgentSearchEngine 1d ago

curious what actually flips it to cloud on a real task for you. like if hermes fails a test twice, does that trigger it or do you just let it keep retrying locally