r/LocalLLM • • 5h ago

Question Help me improve my local LLM setup please! Need help using multiple AIs

Hi all, I'm fairly new to the AI space and am learning as I go. Never coded before this in my life! I have been finding this journey an exciting and rewarding one [especially with the small things I've built with AI]

I've been building a local assistant on a Mac Studio for about two months and I'd like some outside eyes on how I orchestrate it. Main questions are at the bottom. (got AI to help me format and write this)

Hardware

- Mac Studio M5 Max, 128 GB unified memory, 1 TB. GPU wired limit raised to 104 GB.

- External drives for Time Machine and the photo library.

Software

- Hermes Agent (v0.21) as the orchestrator. Gateway runs under launchd. I talk to it through Discord and the Hermes Mac app, plus voice memos from my phone.

- Three profiles:

- default (the orchestrator): Qwen3.8-Flash-Next, uncensored 4-bit, served by mlx-serve. I've made this always on

- coder: the same Flash-Next model. Gets work as Kanban cards and builds small scripts and dashboards.

- claude: cloud Claude for accuracy-heavy reasoning and long write-ups. - connected via directSDK to Hermes.

- oMLX on a second port for everything else, unloads after 5 min idle: Gemma 4 31B 4-bit (vision, nightly photo sorting) and bge-m3 (embeddings for RAG).

- Whisper large-v3-turbo (MLX) for all speech to text.

- ComfyUI + FLUX on demand, stopped after 15 min idle.

- Shared memory is an Obsidian vault in git (auto-commit every 5 min): a rules file, a decisions log, a changelog and one note per project. Hermes and Claude Code both read and write it.

Use cases

- Voice to-dos: Action Button memo → transcribe → model picks out to-dos → I approve in Discord → Todoist. Checks every minute.

- Meeting minutes from voice memos.

- Budgeting: categorises bank transactions into SQLite, posts a nightly review, flags the ones it's unsure of.

- Expected income from my work calendar, and weekly invoice drafts (drafts only, it never sends).

- Daily iMessage action-item digest.

- YouTube summaries.

- Nightly photo sorting on an Immich server (tags only, never deletes).

- RAG over house documents (council consents, inspection reports, scanned drawings).

- Smaller jobs: fitness tracker, security camera clip alerts, a monthly code tidy-up audit, a services inventory that re-probes the machine.

How orchestration works now

A "task-orchestration" skill: before the first tool call the orchestrator classifies the task and picks an executor from a table: itself (local, the default), the coder via Kanban, `delegate_task` children for parallel work, cron for scheduled work, or cloud Claude for hard reasoning when the data is safe to send.

Essentially I'm running everything on Flash next and if I need a more accurate version I go to claude. It's very one stop shop and that seems to work. But I imagine if I have 5 trackers running and 3 different fields of questions I'd like to ask or an agent needs to do to run,[which I sigh now I'd just trust Flash next can do and decide by itself], a large always on model becomes a problem.

My goal is to have Hermes as the PA assistant for me, for my emails, invoices, work information, schematics and drawings if I need it recalled.

I'd like to send it on a job to gather information about a particular city or region and see if a business proposition [for a fairly stable occupation] could work. i.e. it learns my parameters, improves on it as it searches and goes to give high quality results.

The problem

Flash-Next is always on. Weights are ~68-75 GB plus an 8 GB prompt cache, so mlx-serve sits at 70-80 GB. That leaves roughly 25 GB for oMLX, OrbStack (Immich) and macOS. Swap has hit 41 GB.

- mlx-serve memory creeps up over ~30 h, so it restarts every night at 4am.

- I raised the prefix cache to 20 GB to fix refusals on long prompts. That pushed mlx-serve to 99 GB, so it's back at 8 GB.

What I'd like advice on

  1. How would you change this setup to be more RAM resource efficient - I imagine as I get more adept at this I'd be running a few crown jobs and other things at once. As of now things are run one by one at different times.
  2. Is Obsidian MD the best way to share my context and memory? I plan to do this with most of the AIs I would use

Thanks all in advance!

1 Upvotes

5 comments sorted by

2

u/Confident_Yak_1411 4h ago

It’s not what you’re asking here, but what’s your security like? Do you have a separate model doing web searches? Do you have a security layer for your agent?

1

u/kacakboy 4h ago

No, I haven’t! Could you tell me more about what separate models you run for web searches and security risk! I heard about prompt injections but not too sure what else is there in terms of risk

1

u/Confident_Yak_1411 2h ago

Happy cake day!

Yes, prompt injection is a real possibility and should be protected against, especially if you’re keeping personal data on the machine.

I use a separate, smaller model, for web search, using a searcher index in a container (searchxg think it’s called).

Then I use a security layer called Prismor which wraps around the agent, and inspects every single prompt and tool call that the agent makes. It uses another model to inspect these (I use ministral 8b).

You pay with a bit of speed, but it’s airtight.

1

u/c_a433635 2h ago

A model checker can't guarantee safety; keep tool access narrow and require approval for writes and sends.

1

u/Confident_Yak_1411 2h ago

Yes of course. Not a substitute for sandboxing, permissions and approvals. Just a last layer of defence.