Choose who gets what
Set a standard policy, plus group rules where people need something different. Each machine applies the policy for whoever is logged in. On a shared machine, the higher-ranked one covers everyone.
policy-map.yaml
AgentEdict writes each AI coding tool’s own admin settings onto every Windows, macOS and Linux machine, and puts them back if anyone changes them. Set one standard, give groups their exceptions, and ship it as one signed bundle, with or without the vendors’ admin consoles.
$ edict compile -agent all \ -profile team-guardrails.yaml $ edict compile-native \ -profile team-guardrails.native.yaml macOS Linux Windows
Claude Code, Codex, Copilot and the rest run commands and change files with the developer’s own access. Every vendor offers admin controls, but each in its own place, so there’s no single baseline to set.
Run shell commands, edit files, read SSH keys and cloud credentials, and call outside tools over MCP. Most have a mode that approves everything.
Each developer, in their own settings. Safeguards can be switched off, and every new agent arrives without them.
A different file, format and path for each tool on macOS, Linux and Windows. Some controls exist only in a vendor console, often on a business plan.
10 tools · 4 ways policy is delivered: system files, MDM profiles, vendor consoles and per-user hooks · 3 operating systems
One rule, “never run sudo”, as four of the tools need it on Linux:
"deny": [ "Bash(sudo:*)" ]
[[rules.prefix_rules]] pattern = [{ token = "sudo" }] decision = "forbidden"
"deny": [ "Shell(sudo *)" ]
{
"capability": "shell",
"match": [
"sudo *"
],
"effect": "deny"
}Your policies go in. Signed, validated, native controls for every client come out.
Set a standard policy, plus group rules where people need something different. Each machine applies the policy for whoever is logged in. On a shared machine, the higher-ranked one covers everyone.
policy-map.yaml
AgentEdict writes each client’s own settings and hooks. If a client can’t honor a constraint, compilation fails instead of weakening it.
edict compile-bundle
Check the bundle’s scope and artifacts, sign the release, and verify the signature before anything touches the endpoint.
edict validate-bundle
This is real output from edict 1.0.0. Codex, Claude Code and OpenCode read the unified profile. The other seven clients read a native profile with the same name, written in each client’s own terms.
Built with edict compile -agent all -target-os all and edict compile-native -target-os all. Constraints a client can’t enforce stop the build instead of being dropped.
Every line below was captured from AgentEdict 1.0 running against the repository’s native example.
Every client exposes a different set of locks. Here’s what each one’s own controls can enforce. Select any cell to see the setting behind it.
| Control | Codex | Claude Code | Gemini CLI | Cursor | Antigravity | OpenCode | Copilot | Kiro | Windsurf | Cline |
|---|---|---|---|---|---|---|---|---|---|---|
| Machine-wide policy file | ||||||||||
| Command and tool rules | ||||||||||
| Bypass / auto-approve mode | ||||||||||
| OS sandbox | ||||||||||
| Network egress | ||||||||||
| MCP servers | ||||||||||
| Hooks | ||||||||||
| Plugins and extensions | ||||||||||
| Login and account | ||||||||||
| Models | ||||||||||
| Model API gateway | ||||||||||
| Telemetry |
Each dot names the exact key, file, or console setting that controls it.
AgentEdict compiles gateway routing for Codex, Claude Code CLI, and OpenCode v1. Credentials stay with each client; the other gateway mechanisms shown here are not generated by AgentEdict. See gateway coverage and limits.
Researched October 2026 from each vendor’s documentation. Local administrators can change any file-based control.
A small service on each machine downloads your signed bundle, checks the signature, and installs every client’s files. If someone edits or deletes them, it puts them back.
AgentEdict distributes and verifies local policy. What each AI tool enforces still depends on that tool and on how the endpoint is protected. Here’s exactly where the line is.
Build the CLI, compile the sample controls, and validate the bundle on your own machine.
# Build the CLI mkdir -p bin dist/native/profiles go build -o bin/edict ./cmd/edict # Compile and validate the native example ./bin/edict compile-native \ -profile examples/native/local-guardrails.yaml \ -target-os all -output-dir dist/native/profiles cp examples/native/policy-map.yaml dist/native/policy-map.yaml ./bin/edict validate-bundle \ -dir dist/native -target-os all