为ai-jail打分
给出您宝贵的评分:
相关产品
手机端可长按图片保存,分享到朋友圈 / 社群
使用 ai-jail,你可以:
多操作系统沙箱,用于运行 AI 智能体,增加运行行为约束隔离,非绝对安全,可满足常规隔离运行需求。
用户评论 (0)
2026年05月15日
2026年08月20日
2026年08月03日
2026年04月18日
2026年04月03日
v3.7.0
2026年11月25日
v3.7.0
Default filtered-egress support for Antigravity (agy / antigravity-cli),
plus fixes for macOS pbcopy under --macos-pasteboard, read-only project
filesystems, and NixOS test builds.
Backward compatible: existing launches and saved policies keep their prior
behavior, and deny-by-default egress filtering is preserved.
Added
- Default filtered-egress API hosts for Antigravity (
agy/
antigravity-cli, PR #256). AddedantigravitytoKNOWN_API_AGENTS,
consolidatedcommand::api_hostsandonboarding::api_hostsinto one
source of truth, and default-allowed Antigravity's functional API and OAuth
hosts (daily-cloudcode-pa.googleapis.com,cloudcode-pa.googleapis.com,
aicode.googleapis.com,www.googleapis.com, andoauth2.googleapis.com)
when the network posture is unset. Telemetry (play.googleapis.com) and
avatar (lh3.googleusercontent.com) endpoints stay excluded. Thanks
@leonardovrezende.
Fixed
-
macOS
pbcopyunder--macos-pasteboard(#257, PR #262). Allowed
(allow mach-lookup (global-name "com.apple.lsd.mapdb"))alongside
com.apple.pasteboard.1sopbcopycan resolve LaunchServices UTI mappings
instead of clearing the host clipboard. Still off by default and dropped
under--lockdown. Thanks @edmarr for reporting the sandbox denial. -
Launching from a read-only project filesystem (#260, PR #261). When a
trusted project profile exists and the project directory is on a read-only
filesystem (EROFS), skip creating the empty legacy.ai-jailplaceholder
and warn viasecurity_warnrather than aborting the launch, while keeping
the mask if.ai-jailalready exists (including as a symlink). Thanks
@wtf9880. -
NixOS test suite compatibility (#258, PR #259). Added
require_lockdown_tools!("bash")to the two remaining lockdown rlimit tests,
recovered poisonedSANDBOX_RUN_LOCKguards intests/common/mod.rs, and
updatedflake.lock. Thanks @wtf9880.
See the security model for what each grant exposes.
Checksums (SHA256)
21f075519cdc72bb818793c58f41ec05e8f1851249f945d79a1baed7cb473b1a ai-jail-linux-aarch64.tar.gz
8fce8b445f724a9ba5bd8f655a97e0472f9a0b510392a95df12efa1606252a84 ai-jail-linux-x86_64.tar.gz
6cea8fc1a48f48173fe808f42240874a313a45ab19c002074d991630bdd02c67 ai-jail-macos-aarch64.tar.gz
f6e6fc0107ec5390739b24d8e2e6bbbae62f549704ca416f196089caa7b8c999 ai-jail_3.7.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.6.0
2026年11月24日
v3.6.0
Named configuration profiles, per-run observability (--run-summary,
--teardown-report, exit-reason diagnostics), configurable Linux per-process
resource limits (--rlimit) and CPU affinity (--cpus), plus a Linux Landlock
fix for eCryptfs-backed directories.
Backward compatible: all new controls are opt-in, existing launches and saved
policies keep their prior behavior, and monotonic project-policy rules are
preserved.
Added
-
Named configuration profiles (
[profiles.NAME]/--profile NAME, #230,
PR #250). Define reusable profile tables in the trusted global config and
select one per launch with--profile. Effective widenings relative to the
baseline (including credential bindings, mounts, limits, and CPUs) are
reported visibly and recorded in the launch audit entry. Thanks @lucascouts. -
Per-run observability: exit-reason diagnostics (#242, PR #247), in-sandbox
teardown reporting (--teardown-report, #249, PR #251), and private run
summaries (--run-summary <PATH>, #228, PR #252).- Runs that end due to a signal or resource limit print a concise stderr
diagnostic distinguishing observed causes from inferred signals. --teardown-report(Linux) reaps background processes that outlive the
jailed command inside the private PID namespace, verifies signal targets,
and reports survivors through an isolated close-on-exec pipe.--run-summary <PATH>writes a single versioned, mode-0600JSON report
combining exit status, teardown survivors, child resource usage, run ID,
and filtered-egress counts without affecting the command's exit code.
Thanks @lucascouts.
- Runs that end due to a signal or resource limit print a concise stderr
-
Configurable Linux per-process resource limits (
--rlimit NAME=VALUE,
#229, PR #253). Adjust per-process limits (nofile,nproc,core,
cpu,as,fsize, etc.) on the CLI or in config. Limits are validated
before status, onboarding saves, and launch; project constraints can only
tighten limits; host supervisor limits stay independent from child command
limits; and explicit limits are shown in effective-access review, dry run,
and the launch audit log. Thanks @lucascouts. -
Linux CPU affinity (
--cpus LIST, #229, PR #254). Pin jailed commands
to an explicit CPU set without root or systemd, enforced inside the sandbox
with seccomp blocking affinity changes. Project policies may only narrow the
CPU set, and CPUs added by a named profile are reported in the widening
summary. Thanks @lucascouts. -
Linux ARM64 release archives and tested global config example. Release
CI now builds and attestsaarch64-unknown-linux-gnuarchives alongside
x86-64 and macOS, anddocs/config.example.tomlprovides a tested reference
global configuration.
Fixed
-
Landlock
readdiron eCryptfs-backed directories (#243, PR #255).
eCryptfs opens the underlying lower directory under the caller's credentials
duringreaddir(ecryptfs_dir_open), which Landlock denied withEACCES
because the lower tree is not mounted inside the sandbox. On Linux,ai-jail
now detectsecryptfsmounts in/proc/self/mountinfo(including
filename-encryptedecryptfs_fnek_sigmounts), opens the matching lower
directory withO_PATH | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC, grants
AccessFs::ReadDironly in the Landlock ruleset, and closes all lower
descriptors before seccomp andexecwhile keeping the lower directory
unmounted from the sandbox. Thanks @Covre81 for tracing the root cause. -
macOS Codex startup services stay independent of agent state. Keep
required Codex startup services reachable without coupling them to optional
agent-state mounts.
See the security model for what each grant exposes.
Checksums (SHA256)
6dc078fe04872f81cfa70b0df76cfa6e151a193ec2b16f94240e669aadd2ec0f ai-jail-linux-aarch64.tar.gz
cdc841f990078dfe8a9b044acbc1c99d32c679cd9a149bab4754bbb2a11707d1 ai-jail-linux-x86_64.tar.gz
f15ce95e1dc4f39b9f93883a14adcf839e72aca67e7092ca62cc4be5c6bf8cd9 ai-jail-macos-aarch64.tar.gz
4c9eca849d95c80e6bc1e69d7eadef3ae7054e7d0ad580bfc1780d2c59ae841e ai-jail_3.6.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.5.0
2026年11月19日
v3.5.0
Two opt-in additions: a per-run record of every filtered-egress decision, and
native macOS clipboard access without the broad host IPC grant.
Backward compatible: both are off by default, neither changes an existing
launch, and no saved profile is affected.
Added
-
--egress-log <PATH>records what the filtered-egress proxy decided
(#228 PR 1, #240). One JSON line per accepted connection — allowed,
refused, or failed — with a line version, UTC end time, a per-launch run id,
the requested host and port, the verdict and a fixed reason, byte counts and
duration. A terminated--secretrequest adds the upstream host and port
the proxy itself dialed. CLI-only,Operational, Linux only, and refused
when the network is off or full, where there is no proxy to observe. The
file is opened by the supervisor withO_NOFOLLOW | O_APPEND | O_CREAT, mode
0600, close-on-exec, and a symlink, a non-regular file, another user's file
or a missing directory refuses the launch before the command runs. Once
writing, it never stops the traffic: a write failure warns once. Lines are
printable ASCII with control and non-ASCII characters escaped, concurrent
appends are serialised, and a torn earlier write is fenced so no record can
swallow the next one. No request content is ever recorded — no path, query,
method, header, body, credential, or--secretkey name, placeholder or
value — and CONNECT tunnels stay opaque. When the command exits, connections
it left open are shut and their lines awaited for up to two seconds, with a
warning naming the count of any still open. Thanks @lucascouts. -
--macos-pasteboardgives native clipboard access without broad host IPC
(#241). Off by default and dropped under--lockdown, it permits exactly
onemach-lookupofcom.apple.pasteboard.1, so a jailed process can copy
and paste text and images without--macos-host-ipc. An untrusted project
policy cannot enable it, a reviewed disabled choice persists as a
constraint, and the capability appears in the Additional screen, the CLI
preview, the effective-access review,status, and the saved-policy
authority checks. Clipboard contents are host data: the jail can read copied
passwords and tokens and replace what you paste elsewhere, and the review
says so. No effect on Linux. Thanks @pietro1704.
Fixed
- A trusted SSH tool that is busy at exec is retried. The known_hosts
lookup executed a just-written fixture with no retry and could fail with
Text file busy(ETXTBSY) when another thread's fork still held the file
open; it now shares the ssh-add probe's bounded retry, with a test for each
site. - The path-pruning test no longer depends on
TMPDIR. Another test parks
TMPDIRat a missing path while it holds the environment lock, so the
pruning test could read a vanished fixture directory. It uses a fixed
existing directory now.
Notes
- New coverage:
tests/run_observability.rsdrives the real binary for the
line shape, append across runs, filtered-only refusal, unopenable targets,
and macOS refusal; unit tests cover field escaping, torn writes, warn-once,
and the secret-termination line without secrets. The pasteboard grant has
profile-text tests for default, opt-in, lockdown, project-policy refusal,
and an ignored macOS runtime check. - README,
docs/SECURITY.md,docs/USER_GUIDE.md, and
docs/CLI_TUI_PARITY.mddocument both additions.
See the security model for what each grant exposes.
Checksums (SHA256)
5678805c3cb809220f7ee3015f6b58ae3d4e57aab6abe58e57afec93fdf3d7d5 ai-jail-linux-x86_64.tar.gz
f8d1d464922e89a9990b9fddd16c6cb2068c6da7ade1f9ba7af7730d02108af1 ai-jail-macos-aarch64.tar.gz
66b8d789a109d72b7ee6762f039bad0f359f8d7e723fc58928be275ad9c9f3be ai-jail_3.5.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.4.2
2026年11月17日
v3.4.2
Two fixes: forge setup github-app can mint a token again, and a saved
directory grant survives a reboot on filesystems whose device number changes.
Backward compatible: no CLI flag, config key, or saved-policy shape changes.
An existing profile keeps validating exactly as before.
Fixed
-
forge setup github-appno longer fails with HTTP 422 (#239). The
installation access-token request sentOWNER/REPOinrepositories, which
GitHub defines as repository names, so setup always failed before saving
the binding. Setup now sends the name alone — the installation already fixes
the owner — and a later launch sendsrepository_idsfrom the verified
numeric id, which a rename cannot redirect. A rejected request now prints
GitHub's ownmessage(control-escaped and capped) instead of leaving the
cause to guesswork, and a test asserts the exact JSON body for both forms. -
Saved directory grants stay valid across reboots on anonymous devices
(#238). A grant compared rawst_devandst_ino. btrfs subvolumes (and
tmpfs and overlay mounts) get an anonymous major-0 device number at mount
time, sost_devchanges between boots, and every launch andai-jail statusfailed withAJ-PATH-004even though the directory had not moved.
Grants now also recordstatfs(2)'s filesystem id, which is derived from the
filesystem (on btrfs, its UUID and subvolume id) and survives a remount. A
grant validates when the inode and the grant's own fields match and either
the device is unchanged or both devices are anonymous and the filesystem id
matches; a change on a real block device still refuses, as does a different
inode. A profile saved before this release has no filesystem id, so it keeps
the older strict check until it is configured once more — one
ai-jail configure HARNESS, not one per boot.
Notes
- New coverage: an anonymous-device change keeping a grant next to the
existing symlink-swap and disappearance refusals, filesystem-id capture, a
worst-case id round trip through the project TOML, and the two token request
bodies. - The filesystem id is stored as the kernel's two signed words because TOML
integers are signed; a high-bit id (common on tmpfs and overlayfs) would
otherwise make every project save fail.
See the security model for how saved grants record
identity.
Checksums (SHA256)
63f697d30887b73b2278802dcbcb1e0facb7fcaf46b650562a9234da00c17cda ai-jail-linux-x86_64.tar.gz
9c88ee00938cd59aaa381e78e50996b5ba6bea7957ece59e09c016b5d21b245d ai-jail-macos-aarch64.tar.gz
b7ec350691d80649656b9dc93dbffd01593fca5de26c3146415ef1d148b2ac1d ai-jail_3.4.2_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.4.1
2026年11月15日
v3.4.1
Three fixes: the terminal gets its mouse mode back when a full-screen program
closes, NixOS builders can run the launch suites, and a flaky probe no longer
fails SSH setup.
Backward compatible: no configuration key, CLI flag, or saved policy changes.
Fixed
-
Leaving the alternate screen now clears the modes the program turned off
(#237). ai-jail repaints the outer terminal on an alternate-screen
transition, and vt100'sstate_formattedwrites input modes as changes from
the terminal defaults. A mode the program switched off in the same chunk as
?1049ltherefore emitted nothing, so a picker that enabled mouse tracking
(omp's/model:?1000h ?1003h ?1006h ?1049h, close with?1006l ?1003l ?1000l ?1049l) left the terminal reporting the mouse and the wheel stopped
scrolling the scrollback. The transition now rebuilds the contents and emits
the input-mode diff against the screen the outer terminal is showing, so
every changed mode, including the resets, reaches it. Bracketed paste,
application cursor, and application keypad use the same diff. -
The launch suites run on NixOS builders (#236, #235). Three groups of
tests assumed Ubuntu's environment: the audit suite inherited a symlinked
HOMEthroughXDG_CONFIG_HOME, two worktree launches hard-coded
/usr/bin/true, andsandbox_escapeneeded a writable home that the Nix
builder's/homeless-shelteris not. The flake now supplies the standard
writable-temp-home hook tonativeCheckInputs, the audit suite sets its own
XDG_CONFIG_HOME, and the launches resolvetruethroughPATH. No symlink
check or test was relaxed. Thanks @pqitr. -
The ssh-add capability probe retries a busy executable. With the Nix
build now reaching the launch suites, the probe intermittently failed with
ETXTBSY: another thread's fork can hold a freshly written fixture open for
writing at the moment the probe execs it. The probe retries briefly instead
of failing launch setup, with a test that holds a writer open across it.
Notes
- New coverage: the alternate-screen input-mode reset (fails on the previous
renderer), and the busy-executable retry path. - CI's nix job now exercises the launch suites it previously skipped, so the
NixOS coverage is real rather than nominal.
See the security model for the terminal-output boundary
these fixes sit behind.
Checksums (SHA256)
b4f02b2c414e5228e2ecebf2a65eb8493fb0ec678db68dfe795e0a1e6b5874dc ai-jail-linux-x86_64.tar.gz
92ca6ac800edabe5d7bc1adda024c1b1a26299b4612c2e51da9b6e662b804ee6 ai-jail-macos-aarch64.tar.gz
d569b5a8cc113cd837fe666d5012c72aacaf6370a13cf1da3178a83dc9114791 ai-jail_3.4.1_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.4.0
2026年11月13日
v3.4.0
A new opt-in makes theme-aware programs work in the interactive ai-jail PTY,
and a migrated legacy config with maps that only exist on some hosts no longer
fails its access review.
Backward compatible: terminal appearance is off by default, and a launch that
does not enable it filters the same terminal queries as before.
Added
--terminal-appearancelets interactive programs discover the terminal
theme (#234). Off by default, PTY only, and separate from raw terminal
passthrough. When enabled, a program inside the jail can ask the host
terminal for its background colour (OSC 11, including the tmux-wrapped
refresh form), complete a DA1 terminal-identity probe (including Kitty's
trailing-semicolon reply), probe Mode 2031 support (DECRQM), enable or
disable that mode, and receive light/dark theme-change notifications. Only
those exact forms pass in each direction, on both the primary and alternate
screens, with split reads handled; clipboard access, unrelated colour
queries, and arbitrary terminal replies stay blocked. The grant is seeded
from the CLI, trusted global config, or the Additional capabilities screen,
and a reviewed disabled choice persists as a project constraint, so a
project file can only close it.status,--dry-run, the effective-access
review, and the onboarding docs name the permission. Thanks @Rijul-A.
Fixed
- A map whose source does not exist no longer fails the access review
(#233). A legacy config migrated to 3.3.1 could list read-only or
read-write map sources that exist on only some hosts, such as a service
socket directory. The sandbox already warned and skipped those paths, but
the access review canonicalized the source and aborted the whole review with
Cannot establish directory grant identity <path>: No such file or directory. A missing source now counts as granting nothing, while any
other resolution error still fails closed and existing credential paths
remain protected. README documents thatro_maps/rw_mapsskip missing
sources and thatoverlay_mapsstill refuse them.
Notes
- New coverage: terminal-appearance filtering and reply admission across both
screens, split reads, tmux-wrapped queries, and DA1/Mode 2031 probe ordering;
CLI/config/onboarding/store precedence and constraint round-trips; and the
missing-grant identity path next to the existing credential-path checks. - CI's treefmt/prettier hook now passes on the new README and
docs/SECURITY.md
rows.
See the security model for what the appearance grant
does and does not expose.
Checksums (SHA256)
f2884d084db3a8baeb50f11371584af2b9d461e54cc57ba0acd8f4baef6258cb ai-jail-linux-x86_64.tar.gz
953ea0658ae469fd9c2baf3070aa9570b960b31671fcf5f1565ff954aaafd1f3 ai-jail-macos-aarch64.tar.gz
9fa9ab787eae34a208d3855df0601baab79a258d3853d70aeb68085a5a74c69c ai-jail_3.4.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.3.1
2026年11月10日
v3.3.1
Three fixes keep secrets and internal descriptors out of the wrong places, and
two make mise wrappers and unanswered approval prompts behave as users expect.
Backward compatible: no configuration key, CLI flag, or saved policy changes.
Fixed
-
Secret values no longer appear in diagnostics (#231). A secret enters
the sandbox through anenv_passentry, and three surfaces printed its
value: a TOML parse error quoted the offending source line,--dry-run
printed--setenv NAME VALUE, and plainstatusprintedNAME=VALUE.
Parse errors now mask everyNAME=VALUEvalue while keeping the file, line,
and column;--dry-runprints--setenv NAME <redacted>;statuslists
names only. Phantom placeholders (AIJAIL-PHANTOM-…) stay visible, because
they are not secrets and show that substitution is active. -
The supervision gate no longer leaves a writable descriptor in the jail.
wrap_supervised_commandcleared close-on-exec on the gate's read end so
the supervisor could read it, but the write end kept the default flags from
pipe(2). The supervisor inherited a copy and carried it throughexec
into bwrap and the sandboxed command. The write end is now close-on-exec;
only the read end survives the exec. -
mise command wrappers work inside the jail (#226, #227). With wrappers
configured ([wrappers.<name>]; Omarchy 4.5 declaresclaude,codex, and
grokthat way), mise locks<data dir>/command-wrappers/bin.lockon every
shim and wrapper run, and the read-only data dir refused it, soai-jail claudenever started the agent andpython3ornodefrom mise failed
inside. On Linux ai-jail now binds a jail-owned empty file over that one
path when a read-only map holds it: the data dir stays read-only, the host's
lock is never touched, and Landlock grants write to that file alone. A
command that is a mise wrapper now warns to use--misewhen mise
integration is off, instead of only failing inside mise. Thanks
@diogochaves. -
Unanswered
--prompt-hostsnotifications are closed (#232). GNOME Shell
never expires a critical notification,notify-send --waitstops waiting at
its expire time without closing it, and ai-jail killed the helper at its own
deadline, so an unanswered prompt stayed in the notification list forever
for a connection that had already been refused. At the deadline ai-jail now
sendsSIGINT(libnotify closes the notification on its own connection),
waits briefly, and kills only a stuck helper. Prompts still waiting when
ai-jail exits are interrupted the same way, and the helper's expire time now
outlives ai-jail's deadline so the daemon cannot answer first.
Notes
- New unit tests cover env-value redaction in parse errors, dry-run and status,
the close-on-exec flags on both halves of the supervision gate, the mise lock
mount ordering and its Landlock rule, and the SIGINT-then-close path for
prompt notifications. - README and
docs/SECURITY.mddocument the redacted diagnostics, the
notification lifetime, and the mise lock bind.
See the security model for the diagnostics and egress
boundaries.
Checksums (SHA256)
0be39963f1e3a1930cfa09ceb9390d44db9df85f7ac4a2813d48c7dcc9cf39a1 ai-jail-linux-x86_64.tar.gz
df182e182701682162bb188679b928b348fb23782b85d9a6bf7a2a944e0962a7 ai-jail-macos-aarch64.tar.gz
63814c33e46d711325eac9a98aebce66e31902c3559d2e8837997a01d38c4c93 ai-jail_3.3.1_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.3.0
2026年11月08日
v3.3.0
Linked Git worktrees can now share one saved policy, and five fixes make the
onboarding and launch paths stop producing states that cannot launch.
Backward compatible: without the new setting, every project keeps its own
policy exactly as before, and existing profiles keep working.
Added
project_strategy = "repo-root"shares policy across linked worktrees
(#218, closes #219). By default the saved policy is keyed by the launch
directory, so eachgit worktree addwas a new project that had to be
onboarded again. With this trusted, global-only setting, the root of a
linked worktree resolves to its main repository's saved policy: the mounted
project stays the worktree, and only the approval, identity, onboarding
state, directory grants, and forge bindings are shared. The worktree's
repository metadata passes the same structural validation as
--worktree(GHSA-w976-gw52-hvx2) before it can select a policy; refused
metadata, a missing main checkout, and bare repositories fall back to the
launch directory, and a store inside either checkout is refused. The
configure header andstatus --json(project.policy_path) name the policy
actually in use, and a launch that ignores a directory's own saved policy
says so. Restrictions always merge into the shared document, so one
checkout cannot drop what another saved.docs/SECURITY.mdrecords the
remaining boundary: repository-authored metadata is not user-authored, so
an agent that can write a repository's git directory can select that
repository's policy. Only worktree roots resolve today — subdirectories
still onboard per directory, and the user guide says so explicitly,
including where this differs from ai-memory's marker setting of the same
name. Thanks @xico42.
Fixed
-
Mostly openno longer saves a profile that cannot launch (#221, closes
#220). The preset enabled unrestricted network and still recorded the
model API host as a filtered destination, and the launcher refuses
--networkcombined with filtered hosts. The API host is now omitted
whenever unrestricted network is on. A profile saved in the broken shape
fixes itself the next time it is saved. -
Pending wrapper requests block the launch even when the harness is
unknown (#222). The pending-request check lived on the branch that
resolved a harness, so a launch whose command was not a known harness
started with an unapproved request still pending. It now runs before the
launch path in every noninteractive case, withstatus,--dry-run, and
--initstill reporting instead of blocking. -
statusignores SSH key drift for a selected-key agent that will not
run (#223). A launch disables the restricted agent when SSH is turned off,
under--lockdown, or when full SSH applies; the status blockers now apply
the same condition instead of reporting a changed key that the launch would
never use. -
Redirected stdin is handed to the child instead of the PTY proxy (#224).
With terminal output and piped or file stdin, the proxy claimed stdin,
applied raw mode to a non-terminal, and could fail before the workload
started. stdin now stays inherited with its natural EOF, and only a real
terminal enters raw mode and is proxied. -
Saving UI preferences no longer rewrites the global policy document
(#225). The save path rebuilt the whole file from a typed structure that
deliberately omits credential fields, so a status-bar preference could drop
env_pass,env_from_file, andsecret_hosts. It now patches the two
preference keys in the existing document and verifies the result round-trips
to the intended policy before writing, leaving credential fields, command
tables, andproject_strategyintact.
Notes
- New test coverage: a
project_strategyintegration suite over the real CLI,
a piped-stdin PTY suite, wrapper-contract coverage for the unknown-harness
case, and a migration test that proves a preference save preserves shared
policy. The linked-worktree fixture now hands out canonical paths (macOS
temp roots sit behind/var), and launch tests skip when the platform
sandbox cannot start, so the suite also passes inside a Nix build sandbox.
See the user guide for the linked-worktree walkthrough
and the security model for the boundary it documents.
Checksums (SHA256)
02df4b7471ba9babe53ef330dd3388929432262b700a75e0ffd2d4071e756a19 ai-jail-linux-x86_64.tar.gz
533852db188f4bd01184b4e969aaa94e99257040599d1750ce3617671116e981 ai-jail-macos-aarch64.tar.gz
e8ab5208666951d06343e11cf3dc74ba50e7b8c75e685061091ae44b15ecfcf5 ai-jail_3.3.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.2.0
2026年11月07日
v3.2.0
The onboarding UI now saves straight from the access overview. The separate
final review page is gone: the screen that makes every choice is the screen you
confirm, so nothing is shown twice and nothing can differ between the review
and what gets written.
Backward compatible: existing profiles, config files, and CLI flags are
unchanged.
Guided access UI
- One decision surface.
Save configurationpersists exactly the choices
visible in the overview, including the effective-access details beside them.
First-run onboarding then launches the harness;ai-jail configure HARNESS
saves and exits without launching. The plain-terminal fallback keeps its
Save and launch [s], launch once [o], cancel [q]choice, and that unsaved
one-off launch remains a fallback-only path. - Confirmations stay at the boundary, not at the exit. Grants that hand
over real authority still ask in a Cancel-first dialog before anything is
written: a first save with the host GitHub token names its complete
repository and organization authority, and each arbitrary environment
variable is approved individually with its value never displayed or stored. - The first-run developer preset is visible about what it selects. It
preselects agent credential state and dependency toolchains (the raw
CLI/config defaults remain off), with the GitHub token still gated by the
OPEN confirmation above. An untrusted repository policy can only tighten
these; it cannot enable any of them.
Reliability and documentation
- Forge authority confirmed in the overview is still compared with the runtime
binding immediately before launch, and a mismatch fails closed. The
diagnostic for that case now says "confirmation" rather than referring to a
review screen that no longer exists. - Terminal tests now assert against the rendered screen instead of raw bytes,
because the save dialog is drawn incrementally and its labels never appear as
one contiguous write. Two test-isolation defects surfaced by the larger
suite were fixed alongside it: a spawnedgithelper inherited a working
directory that another test was deleting, and the two tests that change the
process working directory now hold the crate-wide env lock. docs/TUI_DESIGN.mdrecords why a one-off unsaved launch is fallback-only,
and the security model, user guide, and CLI/TUI parity inventory match the
new flow. The README screenshots were regenerated from the current UI, so
the overview, environment selector, and directory browser show what a first
run actually draws.
See the onboarding guide for complete walkthroughs and
the CLI/TUI parity contract for the maintained
capability inventory.
Checksums (SHA256)
fd93fb499d087fc0c83412af9619c4e038a2e3aedbe1bc3caf0ff1cd306e778a ai-jail-linux-x86_64.tar.gz
6d1176173c44c142a3f625d4b67da49054fa91c4b4b597f6fb0d051584b125bc ai-jail-macos-aarch64.tar.gz
bea0df5b143de69d550e50fa6929968d7a63dbbfb6790f8f676d424370c09199 ai-jail_3.2.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.debv3.1.0
2026年11月06日
v3.1.0
ai-jail 3.1 replaces the first-run checklist with one persistent terminal UI
that keeps access choices, security explanations, editors, and final review in
the same session. It also brings the important host capabilities into one
auditable interface without changing their CLI equivalents.
Guided access UI
- The new Ratatui interface has responsive split/stacked layouts, keyboard
navigation, concise details, explicit focus, monochrome-safe state labels,
and Cancel-first dialogs for OPEN authority. It never asks TUI users to type
OPENor answer a separate y/n prompt. Fully closed,For developers, andMostly openpresets preview their
effects live before they are applied. The developer preset enables filtered
model/package access, harness state, and the visibly OPEN host GitHub token;
unrestricted networking, SSH, loopback, and container-engine control stay
closed.- The searchable environment selector displays names but never values. The
directory browser supports filtering, path completion, a separate selected
pane, one-key read-only/read-write changes, and security validation before a
path becomes a grant. - Selected-key SSH, trusted wrapper requests, and the complete effective-access
review now remain inside the same UI. Wrapper requests begin undecided and
require an explicit approve or reject decision. - An additional-capabilities screen covers uncommon host integrations,
credential stores, devices, workspace options, and macOS compatibility.
A tested CLI/TUI parity inventory prevents future options from silently
disappearing from the onboarding design.
Container and network clarity
- Docker/Podman control is a first-page OPEN capability that no preset enables.
ai-jail discovers reachable Unix sockets fromDOCKER_HOST,
CONTAINER_HOST, rootless runtime locations, Docker Desktop, Colima, and
conventional rootful paths. TCP/SSH daemon endpoints are not mounted. - Linux and macOS now pass the exact admitted socket through both
DOCKER_HOSTandCONTAINER_HOST, so Docker-compatible and native Podman
clients use the same reviewed endpoint. - The unrestricted-network choice now states plainly that closing it may still
leave selected filtered destinations reachable, whileFully closedblocks
all destinations.
Security and documentation
- Forge authority shown during onboarding is captured without loading a
credential and compared with the runtime binding immediately before launch.
If repository identity or authority appears, disappears, or changes after
review, launch fails closed. - OPEN/CLOSED language, final-review behavior, presets, migration boundaries,
and capability parity are covered by provenance-linked tests and current
user, security, wrapper, and TUI design documentation. - The README now includes current screenshots of the main access review,
environment selector, and directory browser.
See the onboarding guide for complete walkthroughs and
the CLI/TUI parity contract for the maintained
capability inventory.
Checksums (SHA256)
1e2bc630079f7db40ca33884ba83141e20ca640a8604b56cd13b3430b3995aee ai-jail-linux-x86_64.tar.gz
301934d6730373b20510e93639bdfbb5c16982cb3512e4c7e5c4fe408e45504a ai-jail-macos-aarch64.tar.gz
54063805ae61ce203622b5335c4cd049ddede556d656e2143e7b7dfeab99595c ai-jail_3.1.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.deb