Repository navigation
Alloy 0.11.0
Upgrading: on macOS, a Cursor CLI that is installed, logged in and passes the
sandbox self-test now joins the default panel (ALLOY_PANELISTS unset), using
composer-2.5 unless you pin another model. Set ALLOY_PANELISTS to keep the
old panel. Cursor profiles for routing and alloy execute ship disabled; opt in
with alloy setup --enable-cursor or alloy models enable --id ID. Existing pins,
billing and profiles are preserved. alloy setup --refresh-defaults adds the new
profiles, including the enabled codex-large-gpt-6-1-sol (see below).
Cursor provider:
- Add Cursor as a panelist, managed Maker and managed Checker. The public name is
cursor; the executable is stillcursor-agent.cursor-agentis accepted as
a legacy input name (ALLOY_PANELISTS,--panelists, routing profiles) and is
normalized tocursor; run directories, manifests and usage always say
cursor. Canonical settings win over the legacy ones (ALLOY_BIN_CURSOR,
ALLOY_CURSOR_MODEL,ALLOY_CURSOR_EFFORTover their..._AGENT_...
spellings); doctor warns when only the legacy model key is set. - Cursor runs on macOS only. Every Cursor process (login status, version and help
probes, model discovery, panels, Makers, Checkers) is started through one
gateway that wraps it in/usr/bin/sandbox-execwith a profile Alloy generates,
after a cached self-test of that profile. Without a working sandbox, on Linux
and on any other platform, every Cursor role is refused, and
ALLOY_ALLOW_UNSANDBOXED=1does not change that. Cursor CLI builds Alloy has
not measured are refused too; the supported build for this release is
2026.09.28-64d2043. - Alloy never executes the
cursor-agentshell launcher, or any wrapper script
in front of it: the launcher needs a shell and several coreutils, which a
panel or Checker sandbox denies, so on macOS every Cursor role was
unavailable. Alloy follows the symlinks behind the configured path to the
supported build's directory (behind a wrapper script it uses the supported
build in Cursor's standard install location, without running the wrapper),
checks that the build'snodeandindex.jsare regular files owned by you and
not writable by group or others, and starts<build>/node --use-system-ca <build>/index.jsdirectly, withCURSOR_INVOKED_AS=cursor-agentin its
environment. The launcher's compile cache is reproduced inside the private
runtime, never in your home cache. - Cursor requires a one-time
AGENT_CLI_CREDENTIAL_STORE=file cursor-agent login.
The login lives in~/.cursor/auth.json(0600). Every Cursor child receives
AGENT_CLI_CREDENTIAL_STORE=file; under Alloy the Cursor CLI is denied keychain
access and cannot start/usr/bin/security. Alloy never reads the keychain.
The pinned build writesauth.jsondirectly and chmods it to 0600, with no temp
or atomic-rename files. Only that literal file is write-granted, plus permission
changes on the existing~/.cursordirectory (the CLI chmods it to 0700).
No other home files are writable, and symlinked credential paths are refused. - Panels and Checkers run
--mode askinside the sandbox: a private
per-dispatch runtime directory and the CLI file login are writable, process execution is denied except
three literal paths (the Cursor CLI's own bundled Node runtime binary, the
build's bundledrgand/usr/bin/sw_vers), and hard links
are denied./bin/shand every other shell,/usr/bin/open,/usr/bin/logand
everything else stay denied. Under Alloy, the OS sandbox denies shell execution and file writes outside the task's allowed paths; the model may be offered tools it cannot use./usr/bin/securityis denied
in every role, and Alloy itself never runssecurity. Each
of the three is verified before use. Makers run Cursor's normal agent mode inside the sandbox: only the
non-Git contents of the Alloy-owned worktree, the private runtime and the CLI
file login are writable, and Git metadata, the source checkout and everything else stay
write-denied. No Cursor role receives--force,--yolo, auto-review or MCP
approval flags; the final argv is checked against a closed grammar for each
role, so mode, sandbox, worktree, plugin, session and subcommand controls
cannot be added by a later rewrite. - Cursor's own controls are not the boundary. In the recorded probe, plan mode and
--sandbox enabledboth wrote outside the workspace; ask mode refused in three
runs, but it is a tool-mode control, not an operating-system guarantee. The
macOS sandbox is the write boundary. Content fingerprints of the worktree and
Git internals, and canary files outside it, only detect a change afterwards. - Every Cursor role denies reads of a fixed list of credential locations (SSH,
cloud, GPG,gh, npm, PyPI, Docker, Kubernetes, the login keychain directory,
other agent CLIs' credential stores and Alloy's own configuration), of anything
directly under/private/tmpor/tmpwhose name contains "secret" (any case),
and of any paths you add withALLOY_CURSOR_DENY_READ_PATHS(comma-separated
absolute paths, no globs); you can add denials but not remove built-in ones.CURSOR_API_KEYandCURSOR_API_ENDPOINTare scrubbed
from every child environment and--api-key,--endpointand--headerare
rejected. The Cursor child receives an explicit environment allowlist. - Accepted residual risk, stated plainly: the Cursor process reads its own
file login, can read the repository and uses
the network. The profile cannot separate Cursor's legitimate reads and network
from its model-facing read tool, so a Cursor role is not a data-exfiltration
boundary and a Checker is not exfiltration-proof. Mitigations: ask mode for
panels and Checkers, descendant-process denial (except the three executables above), the credential-read denials,
redaction of JWT-shaped values, secret assignments and authorization headers
before every persisted output, and a Checker packet built only from redacted
text. Alloy never reads the keychain or runssecurity. - Every Cursor call names one explicit model whose family is derived from its ID:
claude-is Anthropic,gpt-/codexis OpenAI,gemini-is Google,
grok-/cursor-grok-is xAI, andcomposer-is the new familycursor.
autoand unknown prefixes are refused at every routing and dispatch step. A
profile cannot claim a different family than its model's, and only a Cursor
Composer profile may use familycursor.--host-familyacceptscursor.
Routing rubric is now version 5. - Add five Cursor starter profiles, all disabled and billed as subscription:
cursor-large-composer-2-5,cursor-large-gpt-5-6-sol,
cursor-large-claude-opus-5-5,cursor-medium-gemini-3-8-flashand
cursor-large-grok-4-7. Effort and fast variants travel inside--model
([effort=...],[fast=false]); fast variants need a per-profile
cursor_fast: true(alloy models add --cursor-fast).alloy models refresh
lists Cursor models through the sandbox and recordsautoand unknown IDs as
not routable. - Model evidence rows now name the adapters they cover, and a match needs the same
adapter, model, effort and fast state. Cursor has no benchmark row, so its
profiles are always unmatched and cannot borrow another provider's evidence.
Quota pacing compares the effective model family with the host's. - Managed Cursor workers use
fresh_context_fallback; native session reuse stays
limited to Claude and Grok. A Maker or Checker that changes protected Git
internals or a canary fails before gates or review, and the worktree is kept for
inspection. - Usage: Cursor's CLI has no usage source, so Cursor quota is
unknownand never
blocks routing. Two pools exist,cursor:models(composer-*,cursor-grok-*)
andcursor:other(every other model served through Cursor, which draws the
more expensive pool); setquota_pools["cursor:models"]or
quota_pools["cursor:other"]remaining_fractionby hand to route on them.
Settingquota_pools.cursor(the shared pool every shipped Cursor profile uses)
blocks both. Per-call token counts are never treated as quota. An unknown usage
provider no longer falls through to Claude's credentials. - Limits of this release: Cursor does not run on Linux, there is no Cursor
benchmark row, Cursor quota cannot be read live, and Alloy does not observe every
filesystem change. - Add an offline release-report verifier for the authenticated real-build gate
and the composer-2.5 ask probe. Missing, skipped or incomplete evidence fails
verification; accepted reports attach the complete ask record and both log hashes.
Offline unit tests do not supply either live release record.
Usage and routing:
- Alloy no longer reads the macOS keychain for Claude quota, and
usage.keychain
is now ignored (it is still accepted so existing files load). Claude quota comes
from an existing credentials file orCLAUDE_CODE_OAUTH_TOKEN; from the opt-in
Claude Code status-line hook (alloy usage --record-claude-statusline); from
recorded stream events (claude -p ... --output-format stream-json --verbose | alloy usage --record-claude-stream, and theclauderuns Alloy itself makes,
which now use--output-format stream-json --verbose; with
ALLOY_CAPTURE_USAGE=1they use plainjsonand record nothing); or, only withusage.claude_probe: true,
from one small Claude call per usage TTL. With none of these, Claude quota is
unknown. Alloy installs no status-line hook. - Antigravity's login check no longer runs
security. On macOS a freshagy
login lives only in the keychain, which Alloy does not read, so a signed-out
agynow shows[ready]inalloy doctorwith authunknown(JSON field
auth); it used to showinstalled_not_authed. The first real run reports
statusauthifagyis not signed in. - Add the
codex-large-gpt-6-1-solstarter profile (GPT-6.1 Sol, large tier,
medium effort and high effort for review, enabled; billing is your choice). It is
the preferred large Codex profile. Agpt-6-solpin still needs API-key
billing. Recommendusage.reserve_fraction: 0.15; the default stays0.1.
Fixes already on this branch (agy 1.2.12 Checkers):
- Grant agy read access to the staged prompt directory and the worktree with
path-scopedread_file(<dir>)rules, one per--add-dirroot. agy 1.2.12
ignores bare tool names, so the earlier Checker allow-list was deny-only and
could pass without reading the worktree. - Give agy
DEVNULLas stdin. agy 1.2.12 treats a file on stdin as aread_file
that headless mode denies, even when the directory is granted. - Keep two agy settings grammars. agy 1.1 keeps bare read-tool names; agy 1.2.x
uses path-scopedread_file(...)grants and is the fail-closed current grammar. - For a linked-worktree Checker, grant agy the exact gitdir that
.gitpoints to
and, only for the standard<common>/worktrees/<id>layout, that gitdir's
common directory. Other layouts receive the exact gitdir only. - Grant agy Checkers read access to the owner-private gate-log directory, and tell
them in the prompt to read only inside the task worktree and that directory.
Known issues:
- Two tests can fail once under heavy machine load and pass on a re-run of the same
code. They are not fixed in this release:
test_alloy.CursorJsonTests.test_secret_shaped_output_is_absent_from_every_persisted_sink
(theheadercase:result.mdis missing) and
test_alloy.CursorManagedMakerTests.test_maker_gateway_requires_a_managed_linked_worktree_and_a_matching_cwd
(themanaged flag unsetcase:fingerprint refused: a directory changed while reading). When the content tripwire cannot read a directory consistently, Alloy
refuses the call, so the failure is a refusal and never a pass. Re-run once
before treating either as a real failure.