For IT and security teams · Open source

Deploy your AI coding baseline to every machine.

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.

  • Claude Code
  • Codex
  • GitHub Copilot
  • Cursor
  • Gemini CLI
  • Antigravity
  • OpenCode
  • Kiro
  • Windsurf
  • Cline
team-guardrails1 machine profile
$ edict compile -agent all \
    -profile team-guardrails.yaml
$ edict compile-native \
    -profile team-guardrails.native.yaml
macOS    Linux    Windows
  • Claude CodeManaged settings
  • OpenAI CodexRequirements file
  • GitHub CopilotManaged settings
  • CursorMachine hooks
  • Gemini CLIAdmin policy
  • AntigravityPreToolUse hook
  • OpenCodeManaged config
  • KiroAdmin rules
  • WindsurfSystem hooks
  • ClinePer-user hook

AI coding agents act on your machines. Who sets their limits?

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.

What they can do

Run shell commands, edit files, read SSH keys and cloud credentials, and call outside tools over MCP. Most have a mode that approves everything.

Who decides today

Each developer, in their own settings. Safeguards can be switched off, and every new agent arrives without them.

Ten tools, ten formats

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:

Claude Code/etc/claude-code/managed-settings.json
"deny": [
  "Bash(sudo:*)"
]
Codex/etc/codex/requirements.toml
[[rules.prefix_rules]]
pattern = [{ token = "sudo" }]
decision = "forbidden"
GitHub Copilot/etc/github-copilot/managed-settings.json
"deny": [
  "Shell(sudo *)"
]
Kiro/etc/kiro/managed-settings.json
{
  "capability": "shell",
  "match": [
    "sudo *"
  ],
  "effect": "deny"
}

See all ten tools’ files from one profile

Write it once. Ship it everywhere.

Your policies go in. Signed, validated, native controls for every client come out.

1Define

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
2Compile

Generate native controls

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
3Ship

Validate, sign, install

Check the bundle’s scope and artifacts, sign the release, and verify the signature before anything touches the endpoint.

edict validate-bundle

One profile in. Native files out.

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.

Real output. Nothing staged.

Every line below was captured from AgentEdict 1.0 running against the repository’s native example.

edict — compile-native

        

What you can control.

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.

ControlCodexClaude CodeGemini CLICursorAntigravityOpenCodeCopilotKiroWindsurfCline
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

Select a cell

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.

Install once. It keeps itself in sync.

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.

    
                

    Guardrails, not a sandbox.

    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.

    What you get

    • One signed bundle. Each agent gets the policy for whoever is logged in, applied machine-wide.
    • Bundle validation of declared scope, required artifacts, and formats.
    • Protected files and hooks that reduce accidental use of unapproved tools.

    What it doesn’t claim

    • Protection from local administrators or root, who can change or disable controls.
    • Proof that a running client loaded its files or calls its hooks. That needs endpoint verification.
    • OS containment of its own. Where a client has a sandbox, the client enforces it.
    • Per-user isolation. On a shared machine, one policy per agent covers everyone logged in.

    Read the integration notes

    Run the native example.

    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