ai-agentic-tools

Foil — AI skill for Claude Code

AI community

Keep AI coding agents away from what they shouldn't touch: run Claude Code, Codex or any agent with secrets hidden (even .env in the repo), the network allow-listed, a policy file reviewed like code.

How to install Foil

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ai-agentic-tools/Foil and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Foil does

Keep AI coding agents away from what they shouldn't touch: run Claude Code, Codex or any agent with secrets hidden (even .env in the repo), the network allow-listed, a policy file reviewed like code, and an audit log of every request. Copy-on-write branches, review before commit. No Docker, no root.

Alternatives in AI

  • Pi Agent Desktop — Pi — A cross-platform AI coding agent, bringing the Claude Code experience to your desktop 289 ★
  • Dsh Auto Review — Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns stru 155 ★
  • AppleAI — Apple AI is a lightweight, privacy‑minded macOS menu bar app that keeps your favorite AI assistants one keystr 145 ★

README

Foil: keep AI coding agents away from what they shouldn't touch

[![CI](https://github.com/ai-agentic-tools/foil/actions/workflows/ci.yml/badge.svg)](https://github.com/ai-agentic-tools/foil/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/ai-agentic-tools/foil)](https://github.com/ai-agentic-tools/foil/releases/latest) [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)

**Let AI agents work in your repo without handing them your secrets, your network, or your machine.**

Claude Code, Codex and their kind run as *you*: they can read `~/.ssh`, the `.env` in your repo and your cloud credentials, reach any host, and leave behind a git hook or a `.claude/settings.json` hook that runs on your machine long after the session ends. Foil puts a boundary around the agent that you can write down, review like code and audit afterwards. No Docker, no root, no VM: one 2 MB binary, Linux and macOS.

foil policy init      # writes .foil/policy: hides the .env, keys and credentials it finds
foil agent claude     # Claude Code in a strict, copy-on-write branch of this folder
# ...the agent works; when it exits, foil shows what it reached and changed:
#   foil: network: 214 requests allowed, 2 blocked:
#     pastebin.com:443 (not in the allowlist) x2
#   foil: branch claude-20261108-101500 changed 4 paths
#   Apply to ~/src/app? [c]ommit / [k]eep for later / [a]bort
foil audit claude-20261108-101500   # the full record, as text or --json

Three Claude Code agents fix a real Django bug at once, each in its own foil branch; the best passing fix is reviewed and committed

What the agent can't do

Inside `foil agent` (any command with `foil run --strict`), each of these is an automated test in the escape suite ([SECURITY.md](SECURITY.md)):

The agent can't... because