host-command-bridge

host-command-bridge is a skill for Claude Code, Codex from niki914/zafiro. It costs 30 tokens per session (539 once invoked), scanned A, original, MIT.

A bridge for running heavy compilation and test commands, or opening visual files, on a Mac host from a Linux virtual machine. Routine commands and host files remain restricted to the stated environments.

In plain words
What is it for?
Use it for heavy builds or tests such as Gradle commands, and to open generated reports or other visual files on the Mac.
Why use it?
It avoids making the Linux virtual machine handle work intended for the Mac, while limiting host access and preventing routine tasks from being sent there.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for heavy builds or tests such as Gradle commands, and to open generated reports or other visual files on the Mac.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niki914/zafiro/host-command-bridge
Install

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.

Any agent
npx skills add niki914/zafiro --skill host-command-bridge
Clone the repo
git clone --depth 1 https://github.com/niki914/zafiro

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for host-command-bridge

README.md
[![agentmods](https://agentmods.dev/badge/skills/niki914/zafiro/host-command-bridge/github.svg)](https://agentmods.dev/skills/niki914/zafiro/host-command-bridge)
Your own site
<a href="https://agentmods.dev/skills/niki914/zafiro/host-command-bridge"><img src="https://agentmods.dev/badge/skills/niki914/zafiro/host-command-bridge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for host-command-bridge

Your own site · 80×15
<a href="https://agentmods.dev/skills/niki914/zafiro/host-command-bridge"><img src="https://agentmods.dev/badge/skills/niki914/zafiro/host-command-bridge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00539
Opus 5.5 $0.00012 $0.00216
Sonnet 5.5 $0.00006 $0.00108
Haiku 4.5 $0.00003 $0.00054

Measured 1mo ago against content hash fc1d1532dcfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

host-command-bridge scanned grade A with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mac_command_daemon.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://host.lima.internal:9876/health
.agents/skills/host-command-bridge/SKILL.md · 65 lines

What it actually says

Host Command Bridge

Delegates heavy compilation tasks or visual presentation from the Linux VM to the Mac Host.

Boundaries (MUST FOLLOW)

  • Allowed:
    • Heavy compilation or test tasks (e.g. mac-run ./gradlew assembleDebug, mac-run ./gradlew testDebugUnitTest).
    • Presenting visual files/artifacts to the user on Mac (e.g. mac-run open path/to/report.html).
  • Forbidden:
    • All routine tasks (git, file inspection, search, normal CLI commands) MUST run locally in this Lima VM. Minimize mac-run usage.
    • Strictly forbidden from reading or writing host data outside ~/.vm/.monet (~/shared).

Usage

Check if the daemon is reachable:

curl -s http://host.lima.internal:9876/health

Run commands from within any project directory under ~/shared:

mac-run ./gradlew assembleDebug
mac-run open doc/report.html

Daemon Troubleshooting

The Mac host runs the HTTP daemon server; the Linux VM is only a client (mac-run). If health check fails or connection is refused:

Do NOT attempt to start the server inside the Linux VM. Prompt the user to start the daemon on their Mac host:

# On Mac Host (run by user):
python3 ~/.vm/mac_command_daemon.py

If setting up for the first time on Mac:

# On Mac Host (run by user):
mkdir -p ~/.vm
cp ~/.vm/.monet/repo/zafiro/.agents/skills/host-command-bridge/scripts/mac_command_daemon.py ~/.vm/mac_command_daemon.py
python3 ~/.vm/mac_command_daemon.py

To ensure mac-run is available in the Linux VM:

# In Linux VM:
mkdir -p ~/.local/bin
cp ~/shared/repo/zafiro/.agents/skills/host-command-bridge/scripts/mac-run ~/.local/bin/mac-run
chmod +x ~/.local/bin/mac-run

References

Files

What ships with it

4 files 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.

Changes

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.

  1. 1mo ago First seen · 65 lines · 30 tokens per session scan A fc1d1532dcfc

Subscribe to this mod's changes

host-command-bridge is a skill published in the GitHub repository niki914/zafiro (406 stars, last pushed 3d ago), licensed MIT. It adds 30 tokens to every session and 539 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

host-command-bridge compared with skills from other repositories

host-command-bridge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
host-command-bridgeniki914/zafiroSkill4063d agoMITA30Claude Code, Codex
kotlin-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A55Claude Code
context-collectorJosephSanjaya/skillsSkill51mo agoMITA130Claude Code, Codex
ci-cd-expertJosephSanjaya/skillsSkill51mo agoMITA239Claude Code, Codex
dagger-hilt-expertJosephSanjaya/skillsSkill51mo agoMITA145Claude Code, Codex
kotlin-mcp-server-expertJosephSanjaya/skillsSkill51mo agoMITA169Claude Code, Codex
optimize-promptJosephSanjaya/skillsSkill51mo agoMITA199Claude Code, Codex