I have been trying a bunch of orchestration solutions but haven’t been able to settle on one.
I have a pool of llama-server instances, each running on their own dedicated box on the LAN. Currently, I rely on their own message passing via JSON and curl. This is slow, synchronous and limits agent-to-agent communication from being able to address the larger group.
Ideally, llama.cpp would eventually implement a standardized way for llama-server instances to communicate with one another. Even Llama.cpp’s function calling is, itself, still very new and experimental. So I’m not holding my breath.
The closest thing I’ve found to what I want is Zeroclaw. But it struggles to connect to llama-server instances which use TLS certificates (I am not going to allow them to pass anything between each other in plaintext).
Am I just completely misunderstanding what an agent or an orchestrator or a harness is? Am I completely missing something obvious? Or am I unknowingly trailblazing using local llama.cpp servers in a *claw-like arrangement with web cryptography?
I don’t think you’re misunderstanding the concepts. What you’re describing sounds more like a distributed multi-agent setup where the llama-server instances are the workers, and the missing piece is a communication/orchestration layer between them.
The JSON + curl approach makes sense as a starting point, but synchronous request/response will become a bottleneck once agents need to coordinate with several peers or work asynchronously. I’d probably separate the model-serving layer from the messaging layer rather than expecting llama.cpp itself to handle all of the orchestration.
For example, the llama-server instances could remain responsible for inference, while a lightweight message broker or event-based layer handles agent-to-agent communication, task routing, retries, and authentication. That would also give you more flexibility to change the orchestration framework later without rebuilding the model-serving side.
The TLS requirement is definitely reasonable too. I’d rather solve the certificate-handling problem in the communication layer than fall back to plaintext just because the orchestration tool has limited support.
The interesting part of your setup is that the agents are already distributed across dedicated LAN machines. At that point, you’re essentially dealing with a small distributed system, so reliability, authentication, timeouts, and asynchronous messaging may matter more than which framework happens to call itself an “agent harness.”
Are you using a LAN or cloud models?
I have been working on a local first harness to use my 16GB of HBM and my RAM and 32 threads to effectively swap models and organize work with limited resources.
Using multiple machines would lead me to a VLAN offline before bothering with TLS on LAN. You can lock out areas of LAN better than setting up commercial software extensions for local only work. I think containers and cli-use is essential to LLM use, so I built the harness with that in mind.
With a good proxy, nothing is done by the harness anyhow, if you proxy the calls the proxy can handle the TLS. This is the goto recording location for activity from what I can gather.
llama-swap changed the game for model changing for me. Previously I had setup a dual llama-server container to do the same work in a less polished manner. Having a model tag in the call and getting any model in the servers config is wonderful.
I aimed to build my harness as an extensible setup so the ongoing expansion of features and options can be plugged in so to speak. It’s still an ongoing process, but I highly recommend starting to make your own bespoke harness. I amde mine with isolated tooling allowing agents to call out to a container, anywhere, even on the host or in another container, and run the tool there. It’s been a fun ride in software engineering, I recommend bespoke to your machine harnesses though.