Ai Coding Agents Execution Sandboxのロゴ

Ai Coding Agents Execution Sandbox

コミュニティ
vasilyu1983
ai-coding-agents-execution-sandbox

コーディングエージェント向けの実行サンドボックスを設計します。プロセスの分離、ファイルシステムのポリシー、ネットワーク制御、ワークスペースのマウント、破壊的なコマンドの実行範囲を設計するときに使います。

Add to TypingMind

概要

公開者vasilyu1983
リポジトリAI-Agents-public
スキル名ai-coding-agents-execution-sandbox
スター
87
フォーク
19
同梱ファイル
10
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 10個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    vasilyu1983がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ai Coding Agents Execution Sandbox」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-coding-agents-execution-sandbox
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/ai-coding-agents-execution-sandbox .claude/skills/ai-coding-agents-execution-sandbox
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAi Coding Agents Execution Sandboxを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAi Coding Agents Execution Sandboxを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ai Coding Agents Execution Sandboxは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

AI Coding Agents Execution Sandbox

Use this skill to design or review the execution substrate for a coding-agent runtime: process isolation, filesystem mounts, network policy, workspace boundaries, environment exposure, and destructive-command controls.

This skill covers where and how code runs. It complements permission routing by defining the actual isolation and policy envelope around execution.

For remote execution — managed sandbox providers, ephemeral cloud workspaces per task, hosted agent runtimes, egress policy across a network boundary, and cost per task — use ai-coding-agents-cloud-sandboxes instead.

ASCII Flow

text
requested execution
  |
  v
classify action
  read | write | network | process | destructive | secret-bearing
  |
  v
sandbox policy
  filesystem roots + workspace mounts + env exposure + network policy
  |
  v
decision
  allow in sandbox | ask permission | deny | require safer workspace
  |
  v
run process with bounded cwd, mounts, env, network, and cleanup rules

Quick Reference

QuestionReadOutcome
How should process, filesystem, and workspace isolation work?references/sandbox-process-and-filesystem-model.mdExecution modes, mounts, working directories, and write boundaries
How should network, approvals, and destructive actions be controlled?references/network-approval-and-destructive-action-guards.mdOutbound policy, command classes, escalation triggers, and guardrails
What sandbox mode names and backend split should runtime builders copy from Codex?references/openai-codex-sandbox-guardrails-may-2026.mdread-only/workspace-write/danger-full-access modes, platform backends, fail-closed policy translation, security telemetry
What does a shipping Bash sandbox actually enforce, and where does its scope end?references/claude-code-bash-sandbox-mechanics.mdRead/write asymmetry, credential deny-vs-mask, TLS-blind allowlists, tool-scope limits, known compatibility failures
What is the canonical policy format for interpreter allowlists and filesystem/network rules?references/sandbox-policy-format.mdRuntime-agnostic policy fields, common traps, and translation notes
How do I verify a sandbox actually holds before shipping it?references/escape-path-test-matrix.mdSymlink, interpreter-wrapper, env-injection, and package-manager escape tests with pass criteria

When To Use

  • Design execution modes for local or remote coding agents
  • Define filesystem write boundaries and workspace mount rules
  • Add network restrictions, env-var policy, or secret exposure controls
  • Review how destructive commands should be blocked or escalated
  • Model how worker or teammate sandboxes should inherit or narrow permissions

Use Other Skills

NeedUse Instead
Approval routing and permission prompts../ai-coding-agents-permissions/SKILL.md
Remote bridge and local or remote execution model../ai-coding-agents-remote-runtime/SKILL.md
Tool contract and execution pipeline../ai-coding-agents-tools/SKILL.md
Broader coding-agent architecture../ai-coding-agents/SKILL.md

Default Workflow

  1. Define execution modes. For example: read-only, workspace-write, unrestricted, remote-bridged, or worker-reduced.
  2. Set the mount model. Decide which directories are readable, writable, hidden, or remapped.
  3. Control process spawning. Define which shells, interpreters, and subprocess classes are allowed by default.
  4. Separate network policy. Outbound access, host allowlists, and package-manager exceptions should be explicit.
  5. Constrain environment exposure. Make secret inheritance opt-in and scoped to the minimum execution surface.
  6. Classify destructive actions. Delete, reset, force-push, and privileged commands need stricter rules than normal edits.
  7. Protect privileged config surfaces. Settings files, policy files, and skill directories should usually be non-writable even when the workspace is otherwise writable.
  8. Narrow worker inheritance. Child tasks and teammates should inherit the minimum effective envelope, not the widest parent one.
  9. Test escape paths. Validate symlink tricks, path traversal, shell expansion, and tool-wrapper bypass attempts.

Host Rules

  • Keep sandbox mode distinct from approval mode; they are related but not identical.
  • Apply policy before execution, not after output returns.
  • Treat path resolution and symlink resolution as part of the security boundary.
  • Model network access independently from filesystem access.
  • Make the default sandbox conservative and escalate only when justified.
  • Ensure worker tasks never gain more power than the actor that launched them unless a fresh approval path exists.
  • Distinguish path semantics for permission rules from path semantics for substrate mounts if the runtime supports both; do not assume one resolver is correct for both layers.
  • Scope the sandbox explicitly to the tool classes it covers. Both shipping references this skill tracks (Claude Code's Bash sandbox, Codex's exec sandbox) restrict subprocess execution but leave file-edit, fetch, and computer-use tool calls to a separate permission system — "the agent is sandboxed" is a category error unless you name which tool surface that applies to.
  • Do not let default read policy stay broad while write policy is locked down and call the result a secrets boundary; a sandbox that can still read ~/.ssh or ~/.aws/credentials because only writes were restricted is a common, easy-to-miss gap.
  • Treat a hostname-based network allowlist as connectivity policy, not content inspection, unless the proxy actually terminates and inspects TLS — otherwise domain fronting through an allowed host is a viable exfiltration path.

Build Order

  1. Define execution modes and their trust levels.
  2. Implement canonical path resolution and mount policy.
  3. Add process and interpreter allowlists.
  4. Add network policy and host exceptions.
  5. Add env-var exposure rules and secret filtering.
  6. Protect settings, policy, and skill directories as privileged config surfaces.
  7. Add destructive-command classification and escalation hooks.

Core Invariants

  • The sandbox boundary must exist in the execution substrate, not only in prompts.
  • Filesystem, network, and environment policy are separate control planes.
  • Canonical path resolution is part of the security boundary.
  • Child workers inherit the minimum effective envelope by default.
  • Destructive capability must never be implied by tool name or user intent alone.
  • Privileged config surfaces should remain protected even when ordinary workspace edits are allowed.

Failure Modes

  • Symlink or path-traversal writes escaping the allowed workspace.
  • Wrapper tools bypassing interpreter or command allowlists.
  • Network-denied commands succeeding through unclassified package-manager helpers.
  • Child workers inheriting parent unrestricted mode silently.
  • Secrets leaking through inherited environments into commands that did not need them.
  • Workspace-write modes that accidentally allow mutation of policy or skill roots.

Minimal Viable Version

  • One conservative default sandbox mode.
  • Canonical readable and writable root enforcement.
  • One subprocess allowlist and one deny path for privileged classes.
  • One explicit network policy.
  • One protected-config-surface list.
  • One escalation path for destructive or restricted actions.

What Strong Implementations Add

  • Worker-specific narrowed envelopes.
  • Host-specific mount remapping and temp-space policies.
  • Auditable destructive-command classes and explicit justifications.
  • Network host allowlists and package-manager exception handling.
  • Separate path resolvers or canonicalization rules for permission matching versus substrate mount enforcement.
  • Escape-path tests for symlinks, shell expansion, wrapper binaries, and env indirection.

Known Traps

  • Assuming path-prefix checks are sufficient while symlinks, wrapper binaries, env indirection, or shell expansion bypass the intended boundary.
  • Treating approval prompts as if they enforce isolation when the substrate itself still allows broad process, filesystem, or network access.
  • Reusing the parent worker’s envelope for convenience and accidentally granting broader write or network privileges to delegated tasks.
  • Forgetting that package-manager installs, build tools, and test runners often write outside obvious workspace paths unless mounts and temp policies are explicit.
  • Classifying a top-level command as safe without evaluating the actual subprocess tree it can spawn.
  • Enabling a compatibility escape hatch (macOS Apple Events, a MITM-friendly weaker-isolation flag, an unelevated Windows backend chosen for convenience) to fix one broken tool without registering what isolation guarantee that escape hatch removes for every command that follows it in the same session.
  • Allowing a Unix domain socket such as a container runtime's control socket through the sandbox; a single such exception can be equivalent to full host access even when every filesystem and network rule looks tight.

Common Anti-Patterns

  • Treating approval prompts as if they were the sandbox.
  • Assuming workspace-write is safe without canonical path checks.
  • Allowing arbitrary interpreters because the top-level tool looked harmless.
  • Reusing the parent worker’s full envelope for convenience.
  • Treating settings and policy files as ordinary editable workspace content.
  • Trusting wrapper commands without classifying what they actually execute.

Cross-Platform Patterns (Goose)

Goose is now maintained under the Agentic AI Foundation (AAIF) at the Linux Foundation (founding contributors Block, Anthropic, OpenAI; transferred April 7, 2026). Repository: aaif-goose/goose; documentation: goose-docs.ai. Goose 2.0 (April 2026) ships a TypeScript TUI and is migrating the desktop app from Electron to Tauri; both surfaces communicate with a shared ACP daemon rather than separate runtimes. For cloud-hosted devbox execution, the isolation substrate is microVM/Firecracker-style (matching the pattern used for Codex cloud tasks).

Goose's sandbox posture adds two patterns the core skill does not model directly: build-time supply-chain gates, and distribution-layer allowlist baking.

Build-time supply-chain gates (deny.toml, recipe-scanner)

Sandboxing stops code from misbehaving at runtime. It does not stop a compromised dependency from shipping. Goose uses deny.toml (cargo-deny) to gate licenses, advisories, and source allowlists at build, and recipe-scanner/ to validate YAML recipes before they enter the shipping artifact.

  • Pattern: pair every runtime substrate control with a build-time gate. If a tool or extension should not be allowed at runtime, it also should not appear in the shipping artifact. The sandbox is the runtime enforcement; build-time gates are the artifact enforcement.
  • Anti-pattern: relying solely on runtime sandboxing to contain shipped-but-disallowed code. An attacker who compromises the build pipeline bypasses the runtime check entirely.
  • Recipe: include deny.toml-equivalent gates (license, advisory, source allowlist) for every language ecosystem your agent uses. Statically scan shipped YAML recipes and plugin manifests for declared tools that exceed the distribution's allowlist.

Custom-distro preconfigured allowlists

Custom distributions (see ai-coding-agents-release-distribution) ship with a narrowed extension/tool/provider allowlist baked into the binary. The runtime sandbox then enforces a tighter envelope than the open-source stable.

  • Pattern: treat distribution-layer allowlists as a sandbox policy layer above the user's own settings. Users cannot broaden beyond what the distro allows; they can only narrow within it.
  • Anti-pattern: ship the open-source binary to enterprise customers with a "policy file" they must install separately. Separation between binary and policy creates drift, stale-policy risk, and bypass-by-rename attacks.
  • Recipe: add distro_envelope: Option<ExtensionAllowlist> as an immutable field in the merged settings source. The sandbox enforces it at execution time; the settings layer shows it as a read-only source (see ai-coding-agents-settings-policy).

Navigation

References

Data

  • data/sources.json — Primary docs and implementation references for coding-agent sandbox design

Related Skills

Fact-Checking

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • Sandbox details are highly product-specific and may depend on host OS, terminal model, and packaging strategy. Preserve the security model, but verify exact enforcement points in the target runtime.
  • Do not infer real safety from prompt instructions alone; the boundary must exist in the execution substrate.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ai Coding Agents Execution Sandbox」では何ができますか?

コーディングエージェント向けの実行サンドボックスを設計します。プロセスの分離、ファイルシステムのポリシー、ネットワーク制御、ワークスペースのマウント、破壊的なコマンドの実行範囲を設計するときに使います。

TypingMindでAi Coding Agents Execution Sandboxを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ai Coding Agents Execution Sandboxはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAi Coding Agents Execution Sandboxをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-coding-agents-execution-sandboxを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ai Coding Agents Execution Sandboxを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ai Coding Agents Execution Sandboxで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAi Coding Agents Execution Sandboxを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ai Coding Agents Execution Sandbox」は無料ですか?

はい。vasilyu1983がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇