host-exec

host-exec is a skill for Claude Code, Codex from yi427/Cloister. It costs 101 tokens per session (1,242 once invoked), scanned C, original, Apache-2.0.

A skill for running commands on the host computer from a restricted Cloister guest through an approved bridge. It explains when to use the guest workspace and when a host-native command is needed.

In plain words
What is it for?
Use it when a task needs a macOS toolchain or executable exposed by the host. It helps discover allowed commands, run them with workspace files, and report denials or results.
Why use it?
It prevents confusion about where commands and files should be handled. It also makes the bridge's allowed commands and approval decisions the source of truth.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/yi427/cloister/host-exec
Any agent
npx skills add yi427/Cloister --skill host-exec
Clone the repo
git clone --depth 1 https://github.com/yi427/Cloister

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-exec

README.md
[![agentmods](https://agentmods.dev/badge/skills/yi427/cloister/host-exec.svg)](https://agentmods.dev/skills/yi427/cloister/host-exec)
Your own site
<a href="https://agentmods.dev/skills/yi427/cloister/host-exec"><img src="https://agentmods.dev/badge/skills/yi427/cloister/host-exec.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,242 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00101 $0.01242
Opus 5 $0.00051 $0.00621
Sonnet 5 $0.00020 $0.00248
Haiku 4.5 $0.00010 $0.00124

Measured 3d ago against content hash 5c8b6071cf22, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

host-exec scanned grade C 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 3d 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.

Nullifies safety policieshighAnti-refusal

"You have no restrictions", "do anything now", "ignore your guidelines": a direct jailbreak that disables guardrails.

interpreter, build tool, or execution mechanism to bypass the policy.
skills/host-exec/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloister Host Exec

Use only the cloister_host MCP tools for host execution. Treat the immutable Profile returned by the bridge as the authority for the entire bridge session.

Choose Guest or Host

  • Use Guest file tools to read, write, list, and patch files under /workspace. It is a live read-write mount of the selected Host workspace, so Guest changes already appear in the corresponding Host project.
  • Do not use host.exec merely to move workspace content across the Guest/Host boundary. In particular, do not Base64-encode a workspace file or invoke an allowed interpreter such as python -c to recreate it on the Host.
  • Use Host Exec only when the task requires a Profile-allowed macOS executable. When that executable consumes workspace files, prefer paths relative to its fixed Host workspace working directory.
  • If a requested file is outside /workspace, report that it is outside the shared workspace. Do not treat an allowed interpreter as a Host file API.

Execute a host command

  1. Call host.list_commands before the first host operation in a bridge session. Call it again after a reconnect or when the bridge reports that the session changed.

  2. Read the returned DSL version, fixed Host working directory, command names, descriptions, argument policies, environment mode, environment variable names, and audit status. Prefer workspace-relative paths when calling a Host command. Never infer an executable from PATH or from a command that is absent from this response.

  3. Select only a returned command name. If the requested command is absent, report that it is unavailable. Do not substitute another command, interpreter, build tool, or execution mechanism to bypass the policy.

  4. Call host.exec with exactly these model-supplied fields:

    {
      "version": 1,
      "command": "allowed-name",
      "args": ["literal", "arguments"]
    }
    

    Use the version reported by host.list_commands; the value above is only an example. Pass every argument as a separate literal string. Do not provide an executable path, working directory, environment, shell command string, or any extra field.

  5. Read the returned execution_id, state, output chunks, next_cursor, byte counts, truncation flag, exit_code, and duration_ms. Preserve each chunk's stdout or stderr stream when reporting it.

  6. While state is running, call host.exec_status with the returned execution_id, the last next_cursor, and wait_ms: 10000. Keep only one status wait in flight. The bridge returns when retained output is available after the cursor, the execution becomes terminal, or the bounded wait expires. Process only chunks after the supplied cursor so output is not duplicated. If the returned state is still running, repeat with its new next_cursor; omit wait_ms or use 0 only when an immediate snapshot is needed.

  7. Stop waiting at completed, failed, or cancelled. Treat a nonzero exit code in completed as a completed command result, not an MCP transport failure. Keep empty streams distinct from unavailable fields, and report output_truncated = true when the bridge could not retain all output.

  8. If a running operation is no longer wanted, call host.exec_cancel with its execution_id, then continue status waiting until a terminal state confirms cleanup. Do not assume the immediate cancellation response is terminal.

Read the full file on GitHub · 100 lines

Files

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.

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. 3d ago First seen · 100 lines · 101 tokens per session scan C 5c8b6071cf22

Subscribe to this mod's changes

host-exec is a skill published in the GitHub repository yi427/Cloister (2 stars, last pushed 21d ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,242 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (nullifies safety policies). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

add-new-model

Use this skill when the user wants to add or port a new model architecture to MLX-VLM — mapping a Hugging Face modeltype to a new file under mlxvlm/models, writing the ModelConfig, matching layer/weight names, reusing a similar existing model, adding a test class, and validating the port. Covers vision-language…

Blaizzy/mlx-vlm · 83 tokens

benchmarking

Use this skill when the user wants to benchmark an MLX-VLM change and present the numbers in a PR — fork-vs-main A/B comparisons, isolated-module micro-benchmarks, median-of-N timing with warmup, peak-memory reporting, correctness checks, parameter sweeps, and self-contained reproducible bench scripts to paste into a…

Blaizzy/mlx-vlm · 74 tokens

cli-inference

Use this skill when the user wants to run or debug MLX-VLM inference from the command line, including uv run mlxvlm.generate, image/audio/video inputs, local model paths, Hugging Face model IDs, deterministic repro commands, and CLI errors around processors, prompts, model loading, or missing weights.

Blaizzy/mlx-vlm · 67 tokens

convert-quantize

Use this skill when the user wants to convert a Hugging Face model to MLX or quantize/dequantize one with mlxvlm.convert, including bits and group size, quant modes (affine, mxfp4, nvfp4, mxfp8), RTN vs AWQ, mixed-bit recipes, dtype casts, calibration (text or multimodal), local vs Hub paths, revisions, uploading to…

Blaizzy/mlx-vlm · 99 tokens

server-inference

Use this skill when the user wants to run or debug MLX-VLM server inference, including uv run mlxvlm.server, /v1/models, /v1/chat/completions, /v1/responses, streaming, OpenAI-compatible clients, health checks, metrics, model unload/reload, adapters, trust-remote-code, and server request/response failures.

Blaizzy/mlx-vlm · 80 tokens

hf-cache-models

Use this skill when the user wants to list, inspect, or report MLX-VLM model candidates available in the local Hugging Face cache directory, including the server's opt-in hf-cache discovery mode, cache-dir overrides, JSON output, or issue-ready cached model lists.

Blaizzy/mlx-vlm · 60 tokens