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/yi427/cloister/host-execnpx skills add yi427/Cloister --skill host-execgit clone --depth 1 https://github.com/yi427/CloisterWrote 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.
[](https://agentmods.dev/skills/yi427/cloister/host-exec)<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>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.
| Model | Per session | Once 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 |
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. 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.execmerely to move workspace content across the Guest/Host boundary. In particular, do not Base64-encode a workspace file or invoke an allowed interpreter such aspython -cto 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
-
Call
host.list_commandsbefore the first host operation in a bridge session. Call it again after a reconnect or when the bridge reports that the session changed. -
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 fromPATHor from a command that is absent from this response. -
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.
-
Call
host.execwith 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. -
Read the returned
execution_id,state, outputchunks,next_cursor, byte counts, truncation flag,exit_code, andduration_ms. Preserve each chunk'sstdoutorstderrstream when reporting it. -
While
stateisrunning, callhost.exec_statuswith the returnedexecution_id, the lastnext_cursor, andwait_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 stillrunning, repeat with its newnext_cursor; omitwait_msor use0only when an immediate snapshot is needed. -
Stop waiting at
completed,failed, orcancelled. Treat a nonzero exit code incompletedas a completed command result, not an MCP transport failure. Keep empty streams distinct from unavailable fields, and reportoutput_truncated = truewhen the bridge could not retain all output. -
If a running operation is no longer wanted, call
host.exec_cancelwith itsexecution_id, then continue status waiting until a terminal state confirms cleanup. Do not assume the immediate cancellation response is terminal.
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.
- 3d ago First seen · 100 lines · 101 tokens per session scan C 5c8b6071cf22
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.
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…
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…
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.
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…
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.
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.