Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/google/sam/sam-meshnpx skills add google/sam --skill sam-meshgit clone --depth 1 https://github.com/google/samWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00078 | $0.02735 |
| Opus 5 | $0.00039 | $0.01367 |
| Sonnet 5 | $0.00016 | $0.00547 |
| Haiku 4.5 | $0.00008 | $0.00274 |
Grade D, and why
sam-mesh scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
`curl -sL https://sam-mesh.dev/install.sh | bash` or Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
`~/.gemini/config/mcp_config.json`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`curl -sL https://sam-mesh.dev/install.sh | bash` or How it starts
The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SAM Agent Skill
Use this skill when local tools cannot satisfy the task and the SAM mesh can. Prefer local tools first. Reach into the SAM mesh only for the capability needed to complete the task.
Pick the path that matches the need:
- The
sam-nodeMCP tools are not callable yet: Bootstrap A Node. - The task needs a plain HTTP call to the node, such as inference or a
local_proxy_url: Talk To The Node Over HTTP. - The task needs a remote tool or capability: Inspect The Mesh.
- The task needs a model completion: Use Mesh Inference.
Bootstrap A Node
The mesh is reached through a local sam-node. When its MCP tools are missing,
guide the user through these steps. Propose each shell command and let the user
approve it before running anything.
- Check the CLI:
sam-node --help. If it is missing, install it withcurl -sL https://sam-mesh.dev/install.sh | bashorgo install github.com/google/sam/cmd/sam-node@latest. - Start the node in the background:
sam-node run --daemonize. It returns as soon as the node answers, and prints the endpoint, the API token file, the log file, and how to stop it. It is idempotent, so run it again whenever you need to confirm a node is up. - If step 2 reports that the node is not enrolled, run the command it prints,
sam-node join --headless <control-plane-url>. In headless mode SAM now prefers OAuth device flow automatically when the OIDC provider supports it, so no pasted callback code is required: it prints a verification URL/code and polls until login completes. If the provider does not expose a device endpoint, SAM falls back to OOB code-paste flow; show the URL/code to the user, wait for completion, then repeat step 2. For deterministic automation, force the flow with--auth-mode device(alsooob,browser, or the defaultauto);--auth-mode devicefails fast if the provider has no device endpoint. Enrollment is a one-time step per machine. - Read the node API token from the file named in step 2, then register the MCP
endpoint
http://127.0.0.1:8080/mcpwith the headerX-Sam-Authentication: Bearer <token>. Claude Code:claude mcp add --transport http sam-mesh http://127.0.0.1:8080/mcp --header "X-Sam-Authentication: Bearer <token>". Antigravity: add the same URL asserverUrlwith the same header to~/.gemini/config/mcp_config.json. - Tell the user to restart the agent session, since MCP tools load at startup.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 241 lines · 78 tokens per session scan D 1117380fd454
sam-mesh is a skill published in the GitHub repository google/sam (796 stars, last pushed 3d ago), licensed Apache-2.0. It adds 78 tokens to every session and 2,735 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it D with 3 findings (downloads and executes remote code, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
agent-code-analyzer
Agent skill for code-analyzer - invoke with $agent-code-analyzer.
foundry-config-setup
Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.
evolve
Start or monitor an evolutionary development loop.
agile-product-owner
../../../product-team/agile-product-owner/skills/agile-product-owner/SKILL.md.
agent-memory
../../../engineering/agent-memory/skills/agent-memory/SKILL.md.
peekaboo
Capture and automate macOS UI with the Peekaboo CLI.