Logo de Sandbox Unblock

Sandbox Unblock

ComunidadePopular
FlorianBruniaux
sandbox-unblock

Protocolo de diagnóstico para executar antes de relatar um bloqueio do sandbox ou solicitar uma alteração na configuração. São oito verificações que eliminam falsos positivos, seguidas de um modelo de relatório que permite à pessoa responsável pelas configurações tomar providências. Em um dia analisado, seis dos oito bloqueios relatados eram falsos positivos, todos causados pelo mesmo pequeno conjunto de erros de método.

Add to TypingMind

Visão geral

Publicado porFlorianBruniaux
Repositórioclaude-code-ultimate-guide
Nome da habilidadesandbox-unblock
Estrelas
6.1K
Forks
807
Arquivos incluídos
Somente instruções
LicençaCC-BY-SA-4.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por FlorianBruniaux no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Sandbox Unblock no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/main/examples/skills/sandbox-unblock
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/FlorianBruniaux/claude-code-ultimate-guide.git /tmp/claude-code-ultimate-guide
mkdir -p .claude/skills
cp -r /tmp/claude-code-ultimate-guide/examples/skills/sandbox-unblock .claude/skills/sandbox-unblock
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Sandbox Unblock em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Sandbox Unblock automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Sandbox Unblock não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Unblock a session slowed by the sandbox

A blocker report is cheap to write and expensive to act on. This skill front-loads the verification so the report that reaches a maintainer is worth their time.

The measurements quoted below come from a single macOS machine on Claude Code 2.1.220, July 2026. Treat the numbers as illustrative and the method as the point.

Self-diagnosis, all eight checks, before you complain

Run these in order. Each step says what to run, what to read, and what the result lets you conclude. Steps 5b and 5c pay for themselves fastest.

1. Do not trust the sandbox description in your system prompt.

It lists the permissions.deny Read(...) patterns under read.denyOnly, things like **/*.pem or **/.env*. Those patterns govern the Read tool and nothing else. A subprocess launched from Bash reads those files without obstacle. One session concluded an entire Python pipeline was unrunnable on that basis; every step of it worked when measured. Never infer a Bash restriction from that list.

2. Confirm the command you are testing actually ran sandboxed.

bash
echo $TMPDIR

A path under the sandbox temp root means the measurement counts. The system temp directory means the invocation escaped, and nothing that follows it proves anything about sandboxed behavior.

3. Put the cd and the command in the same call.

The shell working directory resets between Bash calls. A cd in one call does not survive into the next, so the command you meant to test in a project ran somewhere else entirely. Two independent audits declared a package manager broken this way; the binary was simply absent from the directory they landed in.

bash
# wrong: two calls, the cd does not carry over
cd /path/to/project
pnpm exec prisma migrate status

# right: one call
cd /path/to/project && pnpm exec prisma migrate status

4. Check the binary exists before blaming the sandbox.

Wrappers that compress output often replace a clear message with a bare errno. A missing binary and a security refusal then look identical on screen.

bash
command -v <binary>
./node_modules/.bin/<binary> --version

Nothing returned means you have an installation problem, not a policy problem.

5. Read the real exit code, not a pipe's.

cmd | head returns the exit status of head, never of cmd. A refused read earlier in the session also emits a warning on every later command, including the ones that succeed, so read the last message rather than the first.

bash
cmd > "$TMPDIR/out.log" 2>&1
echo "exit: $?"
cat "$TMPDIR/out.log"

5b. Check whether a command rewriter sits between you and the matcher.

This one explained most of the blockers on the day it was found. If a PreToolUse hook rewrites Bash commands, for example a token-compression proxy that turns pnpm exec tsx x.ts into proxy pnpm exec tsx x.ts, then an excludedCommands entry written as pnpm exec * no longer matches anything. Only the rewritten form matches.

The tell is an inconsistency: some excluded commands escape the sandbox and others do not, with no obvious pattern. Look at whether the ones that work happen to have a prefixed entry in the list.

Proof shape, three measurements. A throwaway entry for an otherwise-sandboxed binary flips a Unix socket bind() from failure to success, which shows the mechanism works at all. The same command under an unprefixed entry stays sandboxed. Adding the prefixed form releases it immediately.

Any entry you request should be asked for in both forms, bare and prefixed.

5c. An entry matches the command exactly as written.

git fetch origin matches git fetch *. git -C /path fetch origin does not. pnpm --dir /path exec tsx x.ts does not match pnpm exec *. A trailing star requires at least one argument, so bare git fetch does not match git fetch * either and stays sandboxed. Rewrite your command in its canonical form before concluding anything.

6. If the configuration changed after your session opened, restart first.

The OS sandbox profile is compiled at session start. Exit and relaunch before measuring anything on a session that predates a settings change.

Two keys were measured as hot-reloaded, credentials.files and excludedCommands, along with the network allowlist. The rest were not tested that way, so keep the restart as your default.

If all eight checks pass and the blocker holds, move to the report template.

Network: blocked host or nonexistent host

The domain allowlist filters even when strict mode is off. Do not assume a permissive default means no filtering; measure with a host you know is outside both your list and the product's built-in defaults.

Duration tells you which failure you hit. A refusal by the allowlist hangs for roughly 5 to 7 seconds. A hostname that does not resolve fails in under 30 milliseconds, including when a wildcard in the list already covers it. On one run, two hosts named in a blocker report failed in about 25 ms while covered by their wildcards: neither host existed. Verify the apex answers before asking for a domain to be added.

Raw TCP to an external host is a separate matter. When the sandbox routes HTTP through a local proxy and cuts direct DNS, anything that is not HTTP has no path out. Cloud Postgres, MySQL, Redis and raw SSH all fail, and no domain entry can fix that. The command has to be excluded, or run outside the sandbox.

Report template

Fill this literally. Do not paraphrase the error: a reworded message cost a full day of misdirected work on the chantier this skill came from.

Exact command typed: <literal copy-paste, every argument included>
Raw error received: <literal copy-paste, not summarized>
$TMPDIR at test time: <exact value>
Sandboxed: <yes if under the sandbox temp root, no otherwise>
Session opened before or after the last config change: <before / after / unknown>
Protocol steps already run: <1, 2, 3, 4, 5, 5b, 5c, 6, with each result>
Workarounds already tried: <list, or "none">
Real impact: <which task is blocked, since when>

Escalation

Hand the filled template to whoever can edit the settings file. Do not edit it yourself from Bash: writes to it are refused from a sandboxed command, and only the Edit tool goes through.

The keys worth knowing under sandbox are excludedCommands, credentials.files, credentials.envVars, filesystem.allowWrite, network.allowedDomains and network.strictAllowlist. Two of them mislead.

credentials.envVars in deny mode does not remove the variable from Bash subprocesses. A listed key stays readable in full. Only credentials.files blocks a read, and only for absolute paths, never for a **/ glob. Moving a secret out of a denied file and into a denied environment variable therefore weakens it.

allowUnsandboxedCommands: false does not neutralize excludedCommands. They are independent: the first closes the per-invocation escape hatch, the second excludes named commands regardless of the first.

Limits with no fix

Verified. Do not reopen an investigation on these.

LimitFindingKnown workaround
Setuid binariesps, top, su, login cannot execlsof -nP -iTCP -sTCP:LISTEN
AF_UNIX socketsbind() refused everywhere, local-binding settings cover TCP onlyrun the loader directly, or bundle then run plain node
Direct DNScut for everyone, all HTTP goes through the local proxyexclude the tool if it needs raw sockets
.idea/ and .vscode/creating the directory works, writing a file inside is refused, in the current project onlyexclude the install command, in both forms

On DNS, never propose adding a generic diagnostic tool such as dig to the excluded list. It would return correct resolutions while the rest of the session stays cut off, which manufactures exactly the kind of false diagnosis this skill exists to prevent.

The .idea scoping matters more than it looks. The refusal applies to the current project, so an audit run from a neighbouring repository will report that nothing is blocked, and be wrong.

See also

Perguntas frequentes

O que a habilidade de IA Sandbox Unblock faz?

Protocolo de diagnóstico para executar antes de relatar um bloqueio do sandbox ou solicitar uma alteração na configuração. São oito verificações que eliminam falsos positivos, seguidas de um modelo de relatório que permite à pessoa responsável pelas configurações tomar providências. Em um dia analisado, seis dos oito bloqueios relatados eram falsos positivos, todos causados pelo mesmo pequeno conjunto de erros de método.

Por que usar Sandbox Unblock no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Sandbox Unblock é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Sandbox Unblock no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/main/examples/skills/sandbox-unblock. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Sandbox Unblock?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Sandbox Unblock?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Sandbox Unblock com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Sandbox Unblock é gratuita?

Sim. A habilidade é publicada no GitHub por FlorianBruniaux sob a licença CC-BY-SA-4.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇