connect-agents
Skill3.8k starsChanged 20 days agoApache-2.0View on GitHub
Use this skill when connecting agent tools or OpenAI clients to mesh-llm — launching or configuring Goose, Claude Code, OpenCode, Pi, curl, or any OpenAI-compatible client against a local or remote mesh, picking a model, or validating tool-call reliability.
- Reads credentials
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this when pointing an agent harness or any OpenAI client at a running mesh-llm node.
- Very specific: line 15
Use http://<host>:9337/v1 only for loopback hosts (localhost, 127.0.0.1, or ::1).
- Very specific: line 50
Keep the /v1 path and use any non-empty API key:
- Very specific: line 96
Use a base URL ending in /v1.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
connect-agents
Use this when pointing an agent harness or any OpenAI client at a running
mesh-llm node. Full reference: mesh/docs/AGENTS.md.
Mental model
- Use
http://<host>:9337/v1only for loopback hosts (localhost,127.0.0.1, or::1). For non-loopback traffic, usehttps://<host>:9337/v1, an SSH tunnel that terminates at a loopback endpoint, or trusted private-network isolation; never send cleartext HTTP to an untrusted remote host. GET /v1/modelslists everything reachable (local + mesh peers); requests route by themodelfield.- Special model ids:
autolets the mesh pick;meshengages the mixture-of-agents path. Otherwise use an exact id from/v1/models. - For coding agents, pick a tool-capable model. If
--modelis omitted, the built-in launchers pick the strongest tool-capable model available.
Built-in launchers (preferred)
mesh-llm launches the major agent CLIs with config injected for you:
mesh-llm goose [--model <id>] # writes custom_providers/mesh.json in goose's config dir
mesh-llm claude [--model <id>]
mesh-llm opencode [--model <id>] [--host <h>] # injects OPENCODE_CONFIG_CONTENT (no file edits)
mesh-llm pi [--model <id>] [--host <h>] # writes ~/.pi/agent/models.jsongoose/claudereuse a local mesh on the chosen--port.opencode/pitarget--host(default127.0.0.1:9337) and auto-start a local client only for loopback targets; the auto-started node is cleaned up when the harness exits.mesh-llm pi --write/mesh-llm opencode --writeupdate config without launching (use--hostfor remote meshes).- Agent launch commands also install available plugin skills for that agent
(
mesh-llm skills installdoes it standalone).
Manual config (any OpenAI client)
For a loopback node use http://127.0.0.1:9337/v1; for a remote node use
https://<host>:9337/v1, an SSH tunnel, or trusted private-network isolation.
Keep the /v1 path and use any non-empty API key:
export GOOSE_PROVIDER=openai GOOSE_MODEL="<id-from-v1-models>"
export OPENAI_HOST="http://127.0.0.1:9337" OPENAI_API_KEY="mesh"curl -s http://localhost:9337/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"auto","messages":[{"role":"user","content":"hello"}]}'Exact manual provider JSON for OpenCode and Pi is in mesh/docs/AGENTS.md.
Validating agent behavior
Direct API contract probe (tool-call forcing, streaming reconstruction):
cargo xtool automation stability tool-call \
--base-url http://127.0.0.1:9337/v1 --models auto,mesh --attempts 3 \
--output target/agent-tool-call-reliability/results.jsonlBroader harness (models, chat, streaming, plus optional Goose/OpenCode/Pi
smokes): cargo xtool automation stability nightly — see mesh/docs/AGENTS.md. Use
--print-plan on either command for a side-effect-free preview.
Blackboard (cross-mesh agent coordination)
Agents can share status/questions across the mesh via the blackboard plugin — even from a client-only node:
mesh-llm plugins install blackboard
mesh-llm blackboard "STATUS: [org/repo branch:main] refactoring billing module"
mesh-llm blackboard --search "QUESTION"MCP access: the management endpoint http://127.0.0.1:3131/mcp exposes
blackboard_post, blackboard_search, blackboard_feed. Posts are visible to
every peer — never post secrets, credentials, private paths, or customer data.
Gotchas
- Use a base URL ending in
/v1; prefer chat-completions over the Responses API unless the client documents Responses support. - Model ids must match
/v1/modelsexactly (they can contain spaces — quote them). - An empty
/v1/modelsusually means the model is still loading or no mesh was joined yet — check/api/statuson:3131(seemesh-join). - The response
"model"field tells you which node/model actually answered.
Config-only Hermes and OpenClaw
mesh-llm hermes --write and mesh-llm openclaw --write add a named Mesh
provider without changing the default or launching anything. They require a
running endpoint; use --host, --model (default auto), --config-path for
custom profiles, and --context-length to lower the serving-derived budget.
OpenClaw selects mesh/auto; Hermes selects provider mesh, model auto.
Existing files are backed up; formatting/comments normalize, and conflicts or
includes are refused. See docs/CLI.md for schema requirements and context caveats.
Trending
Quiet since April.about the whole repository
Who's talking about michaelneale/mesh-llm
- A Hacker News story“Pool spare GPU capacity to run LLMs at larger scale”Hacker News · Mar 24, 2026 · 11 points
- @rusttrending.bsky.social“michaelneale / mesh-llm: reference impl with llama.cpp compiled to distributed inference across machines, …”Bluesky · Apr 11, 2026 · 2 likes
- @yug1224.com“複数のLLMを連携させてタスクをこなすための分散型エージェントフレームワークらしい 複雑なワークフローを構築する際に役立ちそうかな yug1224 starred michaelneale/mesh-llm…”Bluesky · Apr 8, 2026 · 1 likes
- Mesh-LLM/mesh-llm“Add mesh-llm MoE planning, analysis, and ranking contribution commands”GitHub · Apr 11, 2026
- Mesh-LLM/mesh-llm“Simplify model for node states”GitHub · Apr 10, 2026
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub, Bluesky and Hacker News (18 times).
On GitHub · 15
- Apr 11, 2026Add mesh-llm MoE planning, analysis, and ranking contribution commands — Mesh-LLM/mesh-llm0 reactions · 1 comment
- Apr 10, 2026Simplify model for node states — Mesh-LLM/mesh-llm0 reactions · 2 comments
- Apr 10, 2026revise mesh publication rules — Mesh-LLM/mesh-llm0 reactions · 1 comment
- Apr 5, 2026Roll out config as local node config first, then reconcile mesh-wide desired state — Mesh-LLM/mesh-llm0 reactions · 2 comments
- Apr 3, 2026CommitLLM sumi capture: working on Apple Silicon Q8_0 — michaelneale/llama.cpp0 reactions
10 more on GitHub
- Apr 2, 2026Add hardware runtime status enrichment without changing model metadata sources — Mesh-LLM/mesh-llm0 reactions
- Apr 2, 2026Design owner identity propagation and direct verification — Mesh-LLM/mesh-llm0 reactions · 4 comments
- Apr 2, 2026Design owner keystore and Rust signed+encrypted message primitives — Mesh-LLM/mesh-llm0 reactions
- Apr 2, 2026Track splitting PR #130 into smaller rollout PRs — Mesh-LLM/mesh-llm0 reactions · 2 comments
- Apr 2, 2026research: mesh-llm integration — p2p inference mesh + model sharding under obol-stack economic layer — ObolNetwork/obol-stack0 reactions
- Apr 2, 2026[WIP] Make PR 103 mergable on top of PR 127 — Mesh-LLM/mesh-llm0 reactions
- Apr 2, 2026refactor: decompose mesh.rs and app/mod.rs into focused submodules — Mesh-LLM/mesh-llm0 reactions · 1 comment
- Mar 28, 2026Autoupdater — Mesh-LLM/mesh-llm0 reactions
- Mar 27, 2026Add a staged auto-updater for release bundles — Mesh-LLM/mesh-llm0 reactions
- Mar 27, 2026Add generic bulk transfer support to mesh plugins — Mesh-LLM/mesh-llm0 reactions
On Bluesky · 2
- Apr 11, 2026michaelneale / mesh-llm: reference impl with llama.cpp compiled to distributed inference across machines, with real end to end demo ★720… — @rusttrending.bsky.social2 likes and reposts
- Apr 8, 2026複数のLLMを連携させてタスクをこなすための分散型エージェントフレームワークらしい 複雑なワークフローを構築する際に役立ちそうかな yug1224 starred michaelneale/mesh-llm… — @yug1224.com1 likes and repost
On Hacker News · 1
- Mar 24, 2026Pool spare GPU capacity to run LLMs at larger scale11 points · 3 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Mesh-LLM/mesh-llm★ 3.5k99% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- mesh/AGENTS.mdAGENTS.md
- skippy/AGENTS.mdAGENTS.md
- benchmark-tuneSkill
- config-settings-managementSkill
- deploy-linux-gpuSkill
- deploy-macosSkill
- deploy-windowsSkill
- hf-bf16-gguf-conversion-jobsSkill
- hf-gguf-quant-jobsSkill
- hf-layer-package-jobsSkill
- hf-quant-and-layer-package-jobsSkill
- kv-tool-loop-stabilitySkill
- llama-patch-changesSkill
- llama-stage-patch-changesSkill
- manage-ciSkill
- mesh-joinSkill
- metrics-serverSkill
- plugin-web-ui-extensionSkill
- release-notesSkill
- release-validationSkill
- remote-observable-processSkill
- skippy-cache-family-benchSkill
- skippy-correctnessSkill
- skippy-family-certificationSkill
- skippy-metricsSkill
- skippy-model-packageSkill
- skippy-promptSkill
- skippy-servingSkill
- skippy-spec-benchSkill
- telemetry-privacy-reviewSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

