Sandbox Routing

Sandbox Routing is a skill for Claude Code from wrg32786/aigent-os. It costs 67 tokens per session (1,030 once invoked), scanned A, original, MIT.

A tool-selection guide for coding agents that keeps large command output and file contents out of the agent’s working context.

In plain words
What is it for?
Choosing focused commands for large files or shell output, limiting searches, and reducing unnecessary context during agent work.
Why use it?
Long outputs can crowd out the information an agent needs to make decisions. It directs the agent to return only the relevant summary when inspecting data.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions Claude Code.

Good fit Choosing focused commands for large files or shell output, limiting searches, and reducing unnecessary context during agent work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wrg32786/aigent-os/sandbox-routing
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 wrg32786/aigent-os --skill sandbox-routing
Clone the repo
git clone --depth 1 https://github.com/wrg32786/aigent-os

Made for: Claude Code.

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 Sandbox Routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrg32786/aigent-os/sandbox-routing/github.svg)](https://agentmods.dev/skills/wrg32786/aigent-os/sandbox-routing)
Your own site
<a href="https://agentmods.dev/skills/wrg32786/aigent-os/sandbox-routing"><img src="https://agentmods.dev/badge/skills/wrg32786/aigent-os/sandbox-routing/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 Sandbox Routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/wrg32786/aigent-os/sandbox-routing"><img src="https://agentmods.dev/badge/skills/wrg32786/aigent-os/sandbox-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,030 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 20
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Memory Poisoning · line 3
    Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.
    Fix: Implement context-window management that detects and rejects padding or stuffing attempts. Prioritize system instructions over user-injected content.
How audits are shown
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.00067 $0.01030
Opus 5 $0.00034 $0.00515
Sonnet 5 $0.00013 $0.00206
Haiku 4.5 $0.00007 $0.00103

Measured 8d ago against content hash 893474882aac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Sandbox Routing 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 8d 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.

skills/sandbox-routing/SKILL.md · 93 lines

How it starts

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

Sandbox Routing

[!danger] HARD RULE — fires before any large Read or Bash that isn't for editing If you're about to Read a long file to analyze (not to Edit), or run a Bash command with >20 line output, route through sandbox tools instead. Raw output stays out of context; only the summary you print enters context.

This skill assumes your Claude Code install includes context-mode (or equivalent) sandbox tools — ctx_execute, ctx_execute_file, ctx_batch_execute. If those aren't available, the principle still applies: use head_limit on Grep, narrow Read to specific line ranges, and avoid cat large.log.

The decision tree

Am I about to Read or run Bash?
   ├── Editing a file? (need full content for Edit tool)
   │     → Read is correct, proceed
   │
   ├── Running git status / git log -n short / mkdir / mv / rm / short command?
   │     → Bash is correct, proceed
   │
   ├── Reading a file just to extract a piece of info / find a line?
   │     → STOP. Use ctx_execute_file with grep/awk code that prints just the answer.
   │
   ├── Running a shell command with >20 line output?
   │     → STOP. Use ctx_execute with the same command — only printed summary enters context.
   │
   └── Multiple commands at once?
         → Use ctx_batch_execute with all commands as labelled chunks, indexed for FTS5 search.

When to use each tool

ctx_execute(language, code)

  • Shell command with large output → language: "shell"
  • Python data processing → language: "python"
  • API calls + response analysis → wrap the call in code
  • Anything where you want the answer, not the raw output

ctx_execute_file(path, language, code)

  • File analysis without loading the file into context
  • Searching within a specific known file
  • Extracting structured info from JSON/YAML/MD

ctx_batch_execute(commands, queries)

  • Multiple commands you want to run + index together
  • Chained recon (e.g., git log + git diff + git status as one batch)
  • Building a knowledge base for later FTS5 queries

Read the full file on GitHub · 93 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. 8d ago First seen · 93 lines · 67 tokens per session scan A 893474882aac

Subscribe to this mod's changes

Sandbox Routing is a skill published in the GitHub repository wrg32786/aigent-os (18 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,030 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-01.