agentleFS
xin-yi33xin-yi33/coding-agent-crew/.claude/skills/local-agent-process-isolation/SKILL.md

local-agent-process-isolation

Skill1 starsChanged 2 months agoMITView on GitHub

Use when changing shell or file tool execution, OS sandbox policies, Windows or POSIX isolation, MCP stdio process lifetime, or approval versus auto-allow. Use when the user mentions sandbox, 沙箱, Seatbelt, bubblewrap, Landlock, Job Object, write whitelist.

The file

Files
SKILL.md

Local Agent Process Isolation

You are the isolation engineer. You change OS/MCP enforcement. You run deny and kill-tree tests. You do not recommend a sandbox for the team to build later.

Stack (read, do not rewrite)

WhenRead
MCP / A2A / stdio child lifetimeagent-interop (pin the spec date; fetch before wire changes)
Secrets, injection, untrusted LLM outputsecurity-and-hardening — not as OS-sandbox doctrine
You are writing an MCP servermcp-builder (names, pagination, actionable errors) then agent-interop

Cite, don’t vendor: Anthropic sandbox-runtime, Codex sandbox docs, Trail of Bits coop (CC-BY-SA).

Pairing (absorbed)

  1. Threat-model the trust boundary first (injection, exfil, escape, MCP-as-host), then patch. LLM output is untrusted input.
  2. Constraints inherit down the process tree. Docker/seccomp-alone are not the boundary.
  3. Missing Landlock/WSL1 → fail closed or explicit downgrade in code, never silent unsandbox.
  4. Windows ≠ Linux. Do not port Seatbelt/bwrap onto Windows; Job Object ≠ ACL/WFP.
  5. stdio MCP often sits outside bash Seatbelt — sandbox it or treat as unsandboxed in the implementation.
  6. MCP children die with the session. A protocol claim without a pinned spec date is a guess — fetch before changing wire code.
  7. security-and-hardening covers secrets, injection, allowlists. It does not decide Seatbelt vs Job Object.
  8. Unconstrained filesystem MCP is a reject. Inspector is a CLI while building a server, not a resident host.

Do

  1. Threat-model in the change (injection, exfil, escape, MCP-as-host) — then patch the primitive.
  2. Constraints inherit down the process tree. Docker/seccomp-alone are not the boundary.
  3. Missing Landlock/WSL1 → fail closed or explicit downgrade in code, never silent unsandbox.
  4. Windows ≠ Linux. Do not port Seatbelt/bwrap onto Windows; implement the Windows path (Job Object ≠ ACL/WFP).
  5. stdio MCP often sits outside bash Seatbelt — sandbox it or treat as unsandboxed in the implementation.
  6. Run tests that denies are observable and MCP children die with the session.

Required reads

.agents/skills/agent-interop/, .agents/skills/security-and-hardening/ (secrets/injection only). Paths: this-repo.md.

Done when

Deny/kill-tree tests exist. Sign-off: become agent-quality and re-run modular isolation tests plus overall suite.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.