forcecage

forcecage is a skill for Claude Code, Codex from Hmbown/Wizards-of-the-Ghosts. It costs 64 tokens per session (1,102 once invoked), scanned A, original, CC0-1.0.

A pre-run containment boundary that isolates untrusted code, agents, tools, or operations inside a tested sandbox before they can affect the outside system.

In plain words
What is it for?
It helps sandbox third-party binaries, vendor scripts, red-team samples, refactoring tools, and experimental agents.
Why use it?
It lets you observe experimental or dangerous work while limiting what it can reach and keeping release under human control.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps sandbox third-party binaries, vendor scripts, red-team samples, refactoring tools, and experimental agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmbown/wizards-of-the-ghosts/forcecage
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 Hmbown/Wizards-of-the-Ghosts --skill forcecage
Clone the repo
git clone --depth 1 https://github.com/Hmbown/Wizards-of-the-Ghosts

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 forcecage

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmbown/wizards-of-the-ghosts/forcecage/github.svg)](https://agentmods.dev/skills/hmbown/wizards-of-the-ghosts/forcecage)
Your own site
<a href="https://agentmods.dev/skills/hmbown/wizards-of-the-ghosts/forcecage"><img src="https://agentmods.dev/badge/skills/hmbown/wizards-of-the-ghosts/forcecage/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 forcecage

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmbown/wizards-of-the-ghosts/forcecage"><img src="https://agentmods.dev/badge/skills/hmbown/wizards-of-the-ghosts/forcecage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00064 $0.01102
Opus 5 $0.00032 $0.00551
Sonnet 5 $0.00013 $0.00220
Haiku 4.5 $0.00006 $0.00110

Measured 9d ago against content hash 58755d3bdb0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

forcecage scanned grade A with 0 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

generated/hermes/containment-and-intervention/forcecage/SKILL.md · 87 lines

How it starts

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

Forcecage

Contain untrusted code, agents, or operations inside a tested cage before anything leaves it.

Sigil

+-------------+
|  x     x    |
|    .-.      |
|   (###)     |
|    `-'      |
|  x     x    |
+-------------+

What This Skill Does

Forcecage creates a pre-tested containment boundary around a subject that has not yet run. It is not about stopping, pausing, or muting something already in motion. The cage is built first, self-tested, then the subject enters. The operator watches from outside and decides whether to release. In this grimoire, Forcecage is treated as a literal spell with a prototype delivery profile. Canonical reference input: Forcecage (spell).

When To Use

  • Trigger this spell when the user asks to contain, cage, sandbox, isolate, or box untrusted/experimental/dangerous code, agents, tools, or operations before they run. Look for:
  • Explicit boundary requests: "only inside", "cannot reach", "blocked from", "disposable", "throwaway"
  • Subject types: untrusted code, third-party binaries, experimental agents, red-team samples, vendor scripts, refactor tools
  • Observation intent: "watch what it does", "log denied actions", "see what it reaches for", "observe from outside"
  • Release conditions: "before we trust it", "prove itself first", "step-down after", "authorize descent"

Prerequisites

  • No extra runtime dependencies beyond Hermes Agent and the normal toolset for this session.

Procedure

  1. Restate the target, the success condition, and any no-touch boundaries before taking action.
  2. Define the boundary: List exactly what the subject CAN access (specific files, URLs, namespaces) and what is BLOCKED (network egress, credential stores, process spawning, writes outside a target directory). Default to deny-all.
  3. Build and self-test the cage: Create the containment environment (disposable workspace, copied repo, fake namespace, egress-blocked container). Run probes to confirm blocked surfaces actually block. A cage that hasn't been challenged is not trusted.
  4. Run the subject inside, observe from outside: Execute the subject within the boundary. Collect audit logs of denied actions, attempted escapes, and resource access patterns. The operator stays outside the cage.
  5. Set release condition before descent: Define what must be true for the subject to leave the cage (e.g., zero unauthorized writes, specific test pass, operator sign-off). If the condition is not met, the subject stays cage-only. If met, authorize a single step-down to a less restricted environment.
  6. Stop for explicit confirmation before taking a live action that changes access, triggers an alert, or touches a real system boundary.
  7. Package the result as the deliverables below, with confidence, assumptions, and unresolved risk called out explicitly.

Read the full file on GitHub · 87 lines

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. 9d ago First seen · 87 lines · 64 tokens per session scan A 58755d3bdb0b

Subscribe to this mod's changes

forcecage is a skill published in the GitHub repository Hmbown/Wizards-of-the-Ghosts (107 stars, last pushed 5mo ago), licensed CC0-1.0. It adds 64 tokens to every session and 1,102 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.