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.
npx skills add lukasrepublic/agentic-foundry --skill work-isolationgit clone --depth 1 https://github.com/lukasrepublic/agentic-foundryWrote 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.
[](https://agentmods.dev/skills/lukasrepublic/agentic-foundry/work-isolation)<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/work-isolation"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/work-isolation/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.
<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/work-isolation"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/work-isolation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.02072 |
| Opus 5.5 | $0.00040 | $0.00829 |
| Sonnet 5.5 | $0.00020 | $0.00414 |
| Haiku 4.5 | $0.00010 | $0.00207 |
Grade A, and why
work-isolation 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/foundry:work-isolation
The work-isolation lifecycle — a WRAP over native primitives. Native primitives do the heavy lifting; foundry adds only the deltas.
| action | native does | foundry delta |
|---|---|---|
| init | Agent isolation:worktree creates the worktree + sets cwd |
nothing to build — use native dispatch (/foundry:dispatch). MULTI-REPO redirect additionally stages the atom's spec + acceptance-contract into the worktree and preflights them before the worker proceeds — see Spec-staged-and-preflighted jail below. |
| validate | native confines cwd to the worktree | foundry-cwd-enforce.sh write-jail: blocks Edit/Write resolving into the main checkout or another worktree of the same repo (Q2 — native is cwd-isolation, not a write-jail); ~/.claude/, the temp dirs and paths outside every checkout are admitted. Worker detected via linked-worktree git check (no assignment.json needed). |
| complete | — | the worker cuts its PR (gh pr create); the merge floor decides. |
| cleanup | auto-cleans an UNCHANGED worktree | foundry-work-isolation.sh cleanup <repo> <branch> removes a MERGED worktree + local branch (post-merge, the bit native doesn't auto-do). Worker-learnings harvest runs first — see below. SUPERSEDED for the whole-repo sweep (branch-and-worktree-discipline, v1.16.0) by scripts/foundry-worktree-gc.py --apply — see context/branch-discipline.md; this script stays (not deleted) for the one still-live case: cleaning up ONE just-merged worker's worktree+branch inline, mid-session, the instant its PR merges, without waiting for a repo-wide sweep. |
| learnings | — | Primary: the worker returns learnings[]; /foundry:dispatch captures them in the parent (durable, survives teardown). Defense-in-depth: foundry-harvest-learnings.sh forwards a worker's .agent/learnings.jsonl sidecar into .foundry/session-learnings/ (the /foundry:learn-distill partition) before an explicit git worktree remove — PreToolUse(Bash) seam + the cleanup script. Fail-open; durable loss-log. |
| break-glass | — | record a deliberate main-clone edit reason to the fail-closed audit trail (the former break-glass skill, folded). |
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.
- 2mo ago Changed 1c6f77b7924f
- 2mo ago Changed 484db8432a06
- 2mo ago First seen · 82 lines · 101 tokens per session scan A 3d06d6a7b265
work-isolation is a skill published in the GitHub repository lukasrepublic/agentic-foundry (0 stars, last pushed 23d ago), licensed MIT. It adds 101 tokens to every session and 2,072 once invoked, about $0.0004 per session on Opus 5.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.
work-isolation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| work-isolationlukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 101 | Claude Code |
| atlas-changelogtonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 45 | Claude Code |
| apex-retrotonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 32 | Claude Code |
| apex-statustonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 42 | Claude Code |
| apex-guardtonone-ai/tonone | Skill | 84 | 2d ago | MIT | D | 40 | Claude Code |
| g-doc-reviewonlygian/G-Forge | Skill | 4 | 1mo ago | GPL-3.0 | A | 102 | Claude Code |
| g-retroonlygian/G-Forge | Skill | 4 | 1mo ago | GPL-3.0 | A | 69 | Claude Code |