This is the abridged developer documentation for Edict # What is Edict? > Edict is the lane coding agents use to change production cloud. The agent asks, a policy check runs, the right person approves, and the change runs with access made for that one change. Edict is the lane your coding agents use to change and build your production cloud. Agents such as Claude Code, Cursor and Codex ask Edict for a change instead of running it themselves. Every change is checked against your policy, approved by the right person, run with access that exists for that one change, and written to a receipt. Your resources stay in your own AWS account. Edict acts in it only with short-lived access made for each change. ## Who this is for [Section titled “Who this is for”](#who-this-is-for) Teams whose coding agents already work near their cloud, and who want those agents to make real changes without holding the keys. ## How a change works [Section titled “How a change works”](#how-a-change-works) 1. **The agent asks.** It calls Edict’s MCP tools where it would have run `aws`, `terraform` or `kubectl`. The request says what it wants to change, where, and what it expects to happen. 2. **Your policy is checked first.** A request your policy does not allow stops here. 3. **The right person approves.** Approval is tiered by risk. Every production change is approved, by a person with a passkey or by a rule your admins set once a kind of change has earned it. Destructive changes never run on their own: two other people approve, or for teams that allow self-approval, the person who asked after a three-minute wait and typing the resource name. Approvals need a passkey, so only a person can complete them. The agent has no way to approve its own request. 4. **The change runs with one-time access.** Edict creates access scoped to that one change. Edict’s executor uses it to make the call in your account, and it expires within the hour. The agent never sees it. 5. **A receipt is written.** Who asked, who approved, which policy allowed it, and what ran. With CloudTrail on in your account, the matching event lands there too, so you can check it against AWS’s record. ## Where Edict fits in your agent harness [Section titled “Where Edict fits in your agent harness”](#where-edict-fits-in-your-agent-harness) Your harness writes the code. Edict changes the cloud. You keep your coding agent, its editor and its review flow. Edict adds two things to it: * **An MCP server** your agent calls to read your cloud and to ask for changes. It signs you in through your browser the first time it connects, and writes no token to your config files. * **A hook** that stops the agent from running cloud tools such as `aws`, `terraform` and `kubectl` on its own machine, read-only commands included, and points it to Edict instead. The `edict` CLI sets up both. See [Add Edict to your agent harness](/how-to/agent-harness/). ## Built for production [Section titled “Built for production”](#built-for-production) * **No standing keys.** The agent never holds a cloud credential. * **Every production change is approved**, by a person with a passkey or by a rule your admins set once a kind of change has earned it. * **Destructive changes never run on their own.** Two other people approve, or for teams that allow self-approval, a three-minute wait and the resource name typed in. * **Every change has a receipt.** * **Your account, your resources.** If you disconnect Edict, your infrastructure keeps running exactly as it was. ## What Edict is not [Section titled “What Edict is not”](#what-edict-is-not) * **Not an identity provider or access platform.** Keep your SSO. It decides who your people are. Edict decides what a machine may do, one action at a time. * **Not an IaC system.** Terraform and CloudFormation stay the source of truth for what they manage. Agents change and build only what your team assigns to Edict. * **Not a monitoring tool.** Edict is the route your agents use to change your cloud. A request either becomes one bounded action in your account, or it is refused. ## Where it’s going [Section titled “Where it’s going”](#where-its-going) Coding agents own the inner loop: write, test, review. Edict lets them own the outer loop too, the part where code becomes running infrastructure. The direction is hands-off by default, with every change checked, run with one-time access and written to a receipt, and a person brought in for anything new or destructive. Each kind of change that proves itself can move to a rule your admins set, so people spend their attention where it counts. # Add Edict to your agent harness > Connect Claude Code, Cursor, Codex, VS Code or Claude Desktop to Edict over MCP, install the hook that steers cloud commands to Edict, and keep cloud credentials out of the agent's environment. Your harness writes the code. Edict changes the cloud. Your coding agent keeps doing what it does well, and when it needs to change your cloud it asks Edict instead of running `aws`, `terraform` or `kubectl` itself. This matters because of where the credential lives. If a cloud credential sits in the agent’s environment, deny rules and allowlists only make it harder to use. They do not make it safe. With Edict, the agent holds no cloud credential at all. It sends a request, Edict checks it against your policy, the right person approves it where your rules require it, and Edict runs it in your AWS account with a credential made for that one action. Every change gets a receipt. **Who this is for:** developers and platform teams setting up a coding agent to work with Edict. **Point your agent at these docs:** they are also published as plain text at [/llms.txt](/llms.txt) and [/llms-full.txt](/llms-full.txt), so an agent can read the whole setup in one fetch. ## Before you start [Section titled “Before you start”](#before-you-start) * The `edict` CLI. Download and verification steps are published with its first public release. * You have an Edict account in your organization. ## 1. Connect your agent over MCP [Section titled “1. Connect your agent over MCP”](#1-connect-your-agent-over-mcp) Run: ```sh edict mcp install ``` Without `--client`, it configures every supported client that looks installed. To pick clients, pass a comma-separated list: ```sh edict mcp install --client claude-code,cursor ``` Add `--dry-run` to see the change as a diff without writing anything. If your organization uses a different Edict address, pass it with `--url` or set `EDICT_URL`. It adds an MCP server named `edict` that points at `https://platform.edictlabs.ai/api/v1/mcp`. The entry holds the URL only, never a token. Before changing a file it saves a backup next to it (`NAME.edict-backup-TIMESTAMP`). Running it again is safe. It refuses a config file that contains comments rather than rewrite it. | Client | `--client` | What it changes | | -------------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Claude Code | `claude-code` | `~/.claude.json` (or `$CLAUDE_CONFIG_DIR/.claude.json`), `mcpServers.edict` | | Cursor | `cursor` | `~/.cursor/mcp.json`, `mcpServers.edict` | | VS Code | `vscode` | `Code/User/mcp.json` in your user config directory, `servers.edict` | | Claude Desktop | `claude-desktop` | Writes no file. It prints the steps: in Claude Desktop, open **Settings**, **Connectors**, **Add custom connector**, name it **Edict**, enter the URL it shows, then **Connect**. | **Codex:** `edict mcp install` does not configure Codex. Add an MCP server in Codex’s MCP settings with the URL `https://platform.edictlabs.ai/api/v1/mcp`. ### Sign in on first connect [Section titled “Sign in on first connect”](#sign-in-on-first-connect) Restart your client after installing. The first time it connects, it opens your browser to sign you in to Edict. No token is written to your config files. In Claude Code you can also run `/mcp`. ## 2. Install the hook [Section titled “2. Install the hook”](#2-install-the-hook) The hook runs before each shell command your agent tries. Install it once per agent. `--client` is required. ```sh edict hook install --client claude-code ``` | Client | `--client` | File written | Fails closed? | | ----------------- | ------------- | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- | | Claude Code | `claude-code` | `~/.claude/settings.json` (or `$CLAUDE_CONFIG_DIR/settings.json`), a `PreToolUse` hook on `Bash` | Yes, on Claude Code v2.1.295 or later. On older versions, a missing or failing hook lets the command run. | | Codex | `codex` | `~/.codex/hooks.json` (or `$CODEX_HOME/hooks.json`), a `PreToolUse` hook on `^Bash$` | No. Codex has no fail-closed option. | | Cursor | `cursor` | `~/.cursor/hooks.json`, a `beforeShellExecution` hook | Yes | | VS Code (preview) | `vscode` | `.github/hooks/edict.json` in your repository, a `PreToolUse` hook | Partly | Each hook runs `edict hook --client NAME` with a 10-second timeout, so `edict` must be on the `PATH` your client runs hooks with. The installer warns you if it is not. On a client that fails closed, a missing `edict` blocks every shell command. Like `mcp install`, `hook install` backs up the file first, is safe to run again, supports `--dry-run`, and refuses a file with comments. Per client: * **Claude Code:** restart your Claude Code sessions to pick up the hook. * **Codex:** Codex skips a new or changed hook until you trust it in `/hooks`. Admins can deploy the hook for everyone as a managed hook in `requirements.toml` (`/etc/codex/requirements.toml` on macOS and Linux). Managed hooks are trusted by policy and users cannot turn them off, but they still do not fail closed. Run `edict hook --help` for a full example. * **Cursor:** when the hook has nothing to say about a command, it answers “allow”. That does not override Cursor’s own approval or allowlist. Only a deny takes effect. * **VS Code:** hooks are in preview. The file goes in the repository, so commit it to share it with your team. `--workspace DIR` names the repository; by default it is the one holding the current directory. The hook applies to `run_in_terminal` and `Bash` tool calls. ### What the hook does [Section titled “What the hook does”](#what-the-hook-does) When your agent tries to run a cloud or infrastructure tool, the hook blocks the command and tells the agent to call Edict’s `request_change` tool instead. It covers `aws`, `aws-vault`, `terraform`, `tofu`, `terragrunt`, `kubectl`, `helm`, `pulumi`, `cdk`, `gcloud`, `az` and `eksctl`. It sees through wrappers such as `sudo`, `env`, `timeout`, `xargs` and `watch`, and through `sh -c`, `bash -c` and `zsh -c`. **Read-only commands are blocked too.** Your agent reads your cloud through Edict’s read tools instead. See [MCP tools](/reference/mcp-tools/). A few local-only forms are left alone: version and help, `terraform` and `tofu` `fmt` and `validate`, `helm lint` and `template`, and `kubectl version --client`. The agent sees a reason that starts like this: > Edict steered this command away: … Call the Edict MCP tool request_change … This applies to read-only commands too … Do not retry the command another way. If the Edict MCP server is not connected, tell the user. Every other command gets no answer from the hook, and your client’s normal permission flow applies. The hook steers. It is not a security boundary. What keeps your cloud safe is that the agent holds no cloud credential. The next two sections are how you make sure of that. ## 3. Check the machine with preflight [Section titled “3. Check the machine with preflight”](#3-check-the-machine-with-preflight) ```sh edict preflight ``` Preflight checks whether this machine holds cloud credentials an agent could use to act around Edict. It tells you which path you are on: * **Keyless:** no credentials found. An agent here cannot reach your cloud on its own, so every change goes through Edict. * **Governed path:** credentials found. Edict is still the path where your rules, approvals and receipts apply, but an agent here could use those credentials to act around it. * **Incomplete:** nothing found, but some checks did not run. It only checks whether things exist. It never reads a credential’s value. It looks at: * environment variables by name, such as AWS keys and session tokens, CI, GitHub and Terraform tokens, and Google Cloud, Azure and kubeconfig pointers * the default places in your home directory: `~/.aws`, the GitHub CLI `hosts.yml`, Terraform `credentials.tfrc.json`, `~/.kube/config`, `~/.config/gcloud` and `~/.azure` * whether an EC2 instance role is attached, through the instance metadata service. This is preflight’s only network request. Options: * `--identity`: also runs your own `aws sts get-caller-identity` and shows only the account and ARN. * `--json`: prints the result as JSON. * `--no-metadata`: skips the instance metadata check. * `--report`: prints the report and opens a page where you can review it and send it to Edict. Nothing is sent until you select **Send to Edict**, signed in. Without a browser, it prints the link for you to open. Nothing is stored, and nothing reaches Edict unless you use `--report` and confirm. ## 4. Keep the boundary in your cloud’s permissions [Section titled “4. Keep the boundary in your cloud’s permissions”](#4-keep-the-boundary-in-your-clouds-permissions) The hook points your agent the right way. Your cloud’s permissions are what hold the line. * **The agent’s runtime should hold no AWS credentials.** No access keys in environment variables, no profiles in `~/.aws`, no instance role on the machine it runs on. Run `edict preflight` where the agent runs and aim for **Keyless**. * **If a developer keeps a cloud tool on their machine, scope it read-only in IAM.** Then even if an agent on that machine finds the credential, it can only read. ## Tell your agent to use Edict [Section titled “Tell your agent to use Edict”](#tell-your-agent-to-use-edict) Add a short note to your repository’s `AGENTS.md` or `CLAUDE.md` so the agent knows the rule before it hits the hook: ```markdown ## Cloud changes Use the Edict MCP tools for anything that touches our cloud. - To change or create cloud resources, call `request_change`. Do not run aws, terraform, kubectl or helm yourself, even for read-only commands. - To look at cloud state, use Edict's read tools. - If a request is pending, call `status` with its envelope_id later. Do not send it again. - If a request is refused, follow the remedy in the refusal. - If the Edict MCP server is not connected, tell me. ``` ## Uninstall [Section titled “Uninstall”](#uninstall) Remove the hook for each agent. Only Edict’s entry is removed. Every other hook and setting stays as it was. ```sh edict hook uninstall --client claude-code ``` For VS Code, the file is deleted when nothing else is left in it. Remove the MCP server: ```sh edict mcp uninstall ``` Pass `--client` to remove it from specific clients only. For Claude Desktop and Codex, remove the Edict connector or server in the app’s settings. # MCP tools > The endpoint, sign-in and 21 tools Edict's MCP server offers coding agents, with what each one does and what its results carry. As of edict main `b932c60a`. Your agent talks to Edict through its MCP server. Two tools ask for a change. The rest only read Edict’s own records. To set up a client, see [Add Edict to your agent harness](/how-to/agent-harness/). ## Connection [Section titled “Connection”](#connection) * **Endpoint:** `https://platform.edictlabs.ai/api/v1/mcp` * **Transport:** Streamable HTTP. Requests are JSON-RPC over `POST`. There is no SSE stream: `GET` is not allowed. `DELETE` ends the session. * **Protocol versions:** `2026-07-28`, `2025-11-25` and `2025-06-18`. `initialize` returns an `Mcp-Session-Id`. * **Auth:** OAuth 2.1 with dynamic client registration (RFC 7591) and PKCE (S256). Clients are public clients. The scope is `edictlabs:manage`. The first time a client connects, you sign in to Edict in your browser and approve the connection. The consent page asks for a recent sign-in. * **Discovery:** `/.well-known/oauth-protected-resource/api/v1/mcp` and `/.well-known/oauth-authorization-server`. ## Tools [Section titled “Tools”](#tools) | Tool | Kind | What it does | Key inputs | | --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `request_change` | Change | Sends one change to Edict instead of running `aws`, `kubectl` or `terraform`. Edict checks it, gets approval where your rules require it, runs it in your account and returns a receipt. | `intent` (required: `kind` and `targets`), `agent_explanation`, `idempotency_key`, `repository`, `commit` | | `request_undo` | Change | Asks Edict to undo an action that already ran. It opens a new request, approved like any other. Nothing is undone automatically. | `receipt_id` | | `status` | Read | The current state of a request you made: pending and on whom, approved, executed with its receipt, or why it was denied, refused or failed. | `envelope_id` | | `explain` | Read | Everything Edict worked out about a request: resources, production or not, the plan, the tier and why, and who may approve. | `envelope_id` | | `list_pending` | Read | Requests still waiting. | `filter`: `requested_by_me` (default), `pending_for_me` or `all` | | `list_environments` | Read | Your organization’s environments, newest first, as summaries. | `limit`, `offset` | | `get_environment` | Read | One environment in detail. | `environment_id` | | `get_run_status` | Read | An environment’s provisioning plan and current run status. | `environment_id` | | `list_resources` | Read | The cloud resources in an environment. | `environment_id` | | `get_resource_detail` | Read | One resource’s current state and configuration. | `environment_id`, `resource_id` | | `get_drift_summary` | Read | An environment’s drift summary. | `environment_id` | | `explain_drift` | Read | What drifted in an environment, in plain words, with suggested fixes. | `environment_id` | | `get_environment_health` | Read | An environment’s record, resources, drift and costs in one result. | `environment_id` | | `diagnose_failure` | Read | What you need to explain a failed run: the plan, each step’s status, and the newest error with its step log. | `environment_id` | | `get_run_history` | Read | An environment’s run history, step by step. | `environment_id` | | `list_pending_approvals` | Read | Environments waiting for a person’s approval, each with a link to approve in Edict. It cannot approve. | none | | `get_trust_score` | Read | Your organization’s trust score, from 0 to 100. | `org_id` (`me` for yours) | | `get_cost_estimate` | Read | A monthly cost estimate for an environment spec, without provisioning it. | `spec` | | `list_audit_log` | Read | Recent audit log entries, newest first. | `environment_id` (optional), `limit` | | `list_cloud_accounts` | Read | Your connected AWS accounts, with their verification status and regions. | none | | `list_discovered_resources` | Read | Resources found in your connected AWS accounts, with how each is classified. | `account_id` (optional) | No tool approves anything. Approving is done by a person in Edict, with a passkey. ### request_change kinds [Section titled “request_change kinds”](#request_change-kinds) `intent.kind` says what the request is: * **`spec_change`:** a change to an Edict environment, adding resources included. Operations are `create`, `update`, `reprovision`, `destroy` and `destroy_resource`. `update` takes a plain description, a JSON patch or a full spec. * **`action`:** one call on one resource, named by ARN in `targets`. Either the curated verb `ecs.rollback`, or a structured operation. Edict runs only operations it has a description of, and refuses any other with the request that works instead. `targets` is always an array, `[]` when the kind names none. ## What results carry [Section titled “What results carry”](#what-results-carry) `request_change`, `request_undo` and `status` return the request’s status as structured content, plus the same as JSON text. The fields you will use most: * **`state`:** `proposed`, `verified`, `awaiting_approval`, `approved`, `executing`, `executed`, `failed`, `denied`, `refused`, `expired` or `cancelled`. * **`approval_url`:** the link a person opens in Edict to approve or deny. * **`receipt_id`:** the receipt, once the change ran. * **`next_step`:** what the agent should do now. Also: `envelope_id`, `disposition` (`created`, `attached` or `replayed`), `summary`, `tier` (`discovery`, `nonprod.write`, `prod.reversible` or `destructive`), `approvals`, `waiting_on`, `expires_at`, `read_record_id`, `undo`, `undo_of`, `exceptions`, `refusal`, `pause`, `failure` and `notice`. If a request is pending, call `status` with its `envelope_id` later. Do not send it again. ### Refusals [Section titled “Refusals”](#refusals) A refused request comes back as an error. The refusal carries `code`, `kind`, `detail`, `retryable`, and two fields an agent can act on: * **`rule`:** a stable id for the rule that refused it, for example `action.operation_undescribed`. * **`remedy`:** what to send instead. ## Tasks [Section titled “Tasks”](#tasks) A client on protocol `2026-07-28` that declares `io.modelcontextprotocol/tasks` on a request gets a task back. The task id is the `envelope_id`. * A request waiting for approval shows as `working`, with the approval link in the status message. * Refused, denied, expired and failed requests show as `completed`, with an error result. * `tasks/update` accepts nothing. Older clients get an immediate result and call `status` to follow up. ## Resources and prompts [Section titled “Resources and prompts”](#resources-and-prompts) * **Resources:** `edict://envelopes/{id}`, `edict://receipts/{id}` and `edict://read-records/{id}`, as JSON. Cite a receipt in pull requests and incident notes. * **Card:** `ui://edict/envelope-card`, a live view of one request for clients that show MCP app cards. * **Prompts:** `status`, `receipts`, `pending` and `preflight`. ## Not available yet [Section titled “Not available yet”](#not-available-yet) These are refused today: * **Build requests from agents.** A request of kind `build` is refused, and the refusal points to the `spec_change` `update` form instead. * **Grants.** Pre-approving later requests is refused for every verb. * **`revert_drift`.** Always refused. * **Free-text commands.** A raw `aws` command in `action.command` is refused as not parsed. Send `action.operation`, which always works. # Security overview > How Edict keeps your cloud, your data and your approvals safe, in plain terms. This page is for security and platform teams reviewing Edict. It covers what Edict does with access to your cloud, what happens to your data, and how people sign in and approve changes. ## Access to your cloud [Section titled “Access to your cloud”](#access-to-your-cloud) * **Your agents never hold cloud keys.** An agent asks Edict for a change. It never receives a credential for your account. * **Access is made for one change, then it expires.** When an approved change runs, Edict creates access scoped to that one change. Edict’s executor uses it to make the call in your account, and it expires within the hour. * **Nothing changes without approval.** Every production change is approved, by a person with a passkey or by a rule your admins set once a kind of change has earned it. Destructive changes never run on their own: two other people approve, or for teams that allow self-approval, the person who asked after a three-minute wait and typing the resource name. * **Your account, your resources.** Your resources stay in your own AWS account. Edict runs in its own accounts and acts in yours only with short-lived access made for each change. If you disconnect Edict, your infrastructure keeps running exactly as it was. ## Your data [Section titled “Your data”](#your-data) * **Each organization is isolated.** Each organization’s data is isolated from every other organization, both in our application and in the database itself, where row-level rules scope every request to its own organization. * **We do not train models on your data.** AI features call Anthropic’s Claude API, with OpenAI’s API as a fallback, both under commercial terms that exclude API data from training. We never send data contents such as stored objects, database rows or secret values. * **Prompts are not kept in our telemetry.** Our monitoring records usage figures such as token counts and response times, not the text of your requests. ## Sign-in and approvals [Section titled “Sign-in and approvals”](#sign-in-and-approvals) * **Sign in with Google, GitHub or a passkey.** Multi-factor protection for Google and GitHub sign-in is whatever you have set up with that provider. * **Every approval needs a passkey.** Each approve or deny decision is confirmed with a passkey on the approver’s own device, tied to the exact change shown. A stolen session alone cannot approve anything. * **The agent cannot approve its own request.** Edict’s agent interface has no approve function. ## Audit trail [Section titled “Audit trail”](#audit-trail) * **Every action is recorded.** Whether a person, Edict or an AI agent acting for a person takes an action, it is recorded in an append-only audit log that the application cannot edit or delete. * **Every change has a receipt.** Who asked, who approved, which policy allowed it, and what ran. With CloudTrail on in your account, the matching event lands there too, so you can check it against AWS’s record. ## Questions from your security team [Section titled “Questions from your security team”](#questions-from-your-security-team) We are happy to walk your security team through the details under NDA. Contact us at . # Set up Slack > Connect a Slack workspace so approval requests and alerts reach the channels you choose, and so your team can ask Edict from Slack. Approving always happens in Edict, with a passkey. Connect Slack so your team sees approval requests and alerts where they already work, and can ask Edict about requests and environments without leaving Slack. Slack delivers the message and carries the question. Approving or denying always happens in Edict, with a passkey. **Who this is for:** org admins setting up Edict for their team, and anyone who wants to use `/edict` in Slack. ## Before you start [Section titled “Before you start”](#before-you-start) * You are an **org admin** in Edict. Other members see: **Only org admins can see and change where Slack messages go and the Slack switches.** * You can install apps in the Slack workspace, or a Slack admin can approve the install for you. * You are connecting a single workspace. Edict cannot be installed across a whole Enterprise Grid organization. * One Slack workspace connects to one Edict organization at a time. Changes to Slack settings need a recent sign-in, so some steps ask you to sign in again. ## 1. Connect Slack [Section titled “1. Connect Slack”](#1-connect-slack) 1. In Edict, open **Settings**, then the **Slack** tab. 2. Select **Connect Slack**. 3. Slack opens. Check the workspace, review the permissions and select **Allow**. 4. You return to Edict and see **Slack is connected.** Once connected, the button reads **Reconnect Slack**. Use it later if Edict asks for more access. If the install does not finish, Edict tells you why: * **Edict cannot be installed across a whole Enterprise Grid organization. Install it in a single workspace instead.** * **That Slack workspace is already connected to another Edict organization. A workspace can be connected to one organization at a time.** ## 2. Add the Edict app to your channels [Section titled “2. Add the Edict app to your channels”](#2-add-the-edict-app-to-your-channels) The Edict app never joins a channel on its own. In Slack, add the app to each channel you want to use, public or private. Channels the app is not in are listed in Edict but cannot be chosen. ## 3. Choose where messages go [Section titled “3. Choose where messages go”](#3-choose-where-messages-go) Under **Where messages go**, Edict says: “Choose a Slack channel for approval requests and one for alerts. Changes need a recent sign-in.” There are two cards: * **Approval requests:** a message says a change is waiting for approval and links to Edict. * **Alerts:** a message says a change paused, failed or was refused, and links to Edict. For each card: 1. Choose the channel. 2. Select **Send test message** and check the channel in Slack. For **Alerts**, pick which kinds to post: **Paused**, **Failed** and **Refused**. Paused and Failed are on by default. You can use the same channel for both cards, or different ones. ## 4. Pick a detail level [Section titled “4. Pick a detail level”](#4-pick-a-detail-level) Each channel has a detail level. The one Edict picks for you is marked **(default for this channel)**. | Level | What the message shows | Default for | | ----------- | ------------------------------------------------------------------------------------------- | -------------------------- | | **Summary** | Who asked, a one-line summary of the change, whether it is production, and when it expires. | Private channels | | **Minimal** | Who asked, the kind of change and when it expires. Nothing about what it changes. | Public and shared channels | Whatever the level, no message shows the plan, values, resource IDs, account numbers, cost or text written by an agent. If a channel is shared with people outside your organization, Edict warns you: **This channel is shared with people outside your organization. At the summary level they can read Edict’s one-line summary of each change and whether it is production.** ## 5. Turn on the Slack switches [Section titled “5. Turn on the Slack switches”](#5-turn-on-the-slack-switches) Two org switches on the Slack tab control what people can do from Slack: * **Ask Edict from Slack:** lets people who have linked their Slack account use `/edict` to ask about requests and environments, and to request changes. * **Cards in the channel:** lets Edict post its request cards in Slack channels. Cards are never posted in a channel shared with people outside your organization. ## What you will see in Slack [Section titled “What you will see in Slack”](#what-you-will-see-in-slack) When a change needs approval, Edict posts a card in your approval channel with who asked, the kind of change, and when it expires. **Review request** or **Open request** is a link: it opens the request in Edict, where you approve or deny it with your passkey. Every card ends with: > Approving or denying needs your passkey on Edict. Nothing can be approved or denied from Slack. As the request moves on, Edict updates the card and replies in its thread, for example **Applied. All 5 steps completed.** Alerts appear in the alerts channel with a link to the request. If many changes are refused in a short time, Edict posts one summary instead of flooding the channel, for example: **More changes refused. Edict did not accept 4 more changes in the last 10 minutes. Nothing ran.** ## Link your Slack account [Section titled “Link your Slack account”](#link-your-slack-account) To use `/edict`, link your Slack account to your Edict account once. Requests you make from Slack use your current Edict account and permissions. 1. In Edict, open **Settings**, then **Slack**, and select **Get a link code**. Edict shows a code like `EDICT-XXXXX-XXXXX` with this note: “Give this code to Edict in Slack. Edict then asks you here to confirm the Slack account. It is not connected until you do. This code is shown only now and works once. Do not share it.” 2. In Slack, send `/edict link EDICT-XXXXX-XXXXX` with your code. 3. Back in Edict, you see **Confirm this Slack account?** Confirm it. Codes work only through the `/edict link` slash command. Sending a code in a direct message does nothing. To disconnect your Slack account, send `/edict unlink`. Edict replies: **Your Slack account is disconnected from Edict.** ## Ask Edict from Slack [Section titled “Ask Edict from Slack”](#ask-edict-from-slack) Send `/edict help` to see what you can do. You can also mention the Edict app in a channel it is in, using the same words. **Read commands:** | Command | What it shows | | ----------------------- | -------------------------------- | | `/edict status` | Your open requests | | `/edict status REQUEST` | One request | | `/edict status ENV` | One environment | | `/edict pending` | Requests still waiting | | `/edict environments` | Your organization’s environments | | `/edict show ENV` | One environment in more detail | | `/edict resources ENV` | The resources in an environment | | `/edict history ENV` | An environment’s history | **Request a change:** use `/edict change`, `destroy`, `rollback`, `action` or `operation`. Each request goes through the same policy check and, where your rules require it, waits for approval with a passkey in Edict. New infrastructure is asked for from an AI assistant connected to Edict, never from Slack. **Cancel a request:** `/edict cancel` with a request id withdraws your own request before anyone approves it. **Undo a change:** `/edict undo` with the id of your own completed request asks for it to be undone. The undo waits for approval with your passkey in Edict. If your admins have turned this off, Edict replies: **Undoing from Slack is turned off. Undo the action in Edict.** **Approve or deny:** not possible from Slack. `/edict approve` and `/edict deny` reply: **Approving and denying are done in Edict with your passkey, never in Slack. Open the request in Edict to decide it.** Other commands are not available. ### Rate limits [Section titled “Rate limits”](#rate-limits) By default, each person can send 20 commands a minute, an organization 120, a Slack account that is not linked 5, and `/edict link` can be tried 3 times a minute. Past the limit, Edict replies: **Too many requests. Try again in a minute.** ## Disconnect Slack [Section titled “Disconnect Slack”](#disconnect-slack) 1. Open **Settings**, then **Slack**. 2. Select **Disconnect Slack**. Edict asks **Disconnect Slack?** and explains: “Approval requests and alerts stop posting to Slack, and asking Edict from Slack stops working. The channels you chose are kept and are used again if the same workspace is connected again.” 3. Confirm. You then see one of these: * **Slack is disconnected. Approval requests and alerts are no longer posted to Slack.** * **Slack is disconnected in Edict, but Slack did not confirm removing the app. Remove the Edict app in your Slack workspace settings.** Do what it says, in Slack. Messages already in Slack stay. ## Permissions Edict asks Slack for [Section titled “Permissions Edict asks Slack for”](#permissions-edict-asks-slack-for) Edict asks only for bot permissions. It never asks to act as you. It reads a channel message only when someone mentions the Edict app. | Permission | Why | | ------------------- | ------------------------------------------------------------------------------------------------ | | `chat:write` | Post approval requests, alerts, cards and thread replies, only in channels the app was added to. | | `channels:read` | List public channels for the channel picker. It does not read messages. | | `groups:read` | List private channels the app was added to. | | `commands` | Answer the `/edict` slash command. | | `app_mentions:read` | Answer when someone mentions the Edict app. | | `im:write` | Send you a direct message from the Edict app. | | `im:history` | Read your direct messages with the Edict app. | | `users:read` | Tell a full member from a guest or an outside person. | | `users:read.email` | Match your Slack account to your Edict account when you link them. | ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | You see | What to do | | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | A channel is listed but cannot be chosen | Add the Edict app to the channel in Slack, then try again. | | **Not delivering** with **The channel was archived in Slack.** | Choose a channel again to resume messages. | | **Not delivering** with **Slack no longer finds the channel.** | Choose a channel again to resume messages. | | **Not delivering** with **The Edict app was removed from the channel.** | Add the app back, or choose another channel, to resume messages. | | **That Slack workspace is already connected to another Edict organization.** | A workspace connects to one organization at a time. Disconnect it there first. | | **Edict cannot be installed across a whole Enterprise Grid organization.** | Install Edict in a single workspace instead. | | **Edict cannot read member emails for this workspace. An administrator can reconnect Slack in Edict Settings to allow linking.** | An org admin selects **Reconnect Slack** and allows the listed permissions. | | **Your Slack home workspace is not the workspace connected to Edict. This account cannot be linked from here.** | Link from an account whose home workspace is the one connected to Edict. | | **Too many requests. Try again in a minute.** | Wait a minute, then send the command again. | # Edict Labs Docs > Set up Edict so your coding agents can change production cloud, with a policy check, a person's approval and a receipt for every change. Get started What Edict is, and how a change works. [Overview](/start/overview/) How-to guides One task each. [Add Edict to your agent harness](/how-to/agent-harness/) · [Set up Slack](/how-to/slack/) Reference Tools and settings, copied from the product at a stated version. [MCP tools](/reference/mcp-tools/) Concepts How approvals work, and what Edict can and cannot touch. [Security overview](/concepts/security/) For agents The same docs as plain text for coding agents and LLMs. [llms.txt](/llms.txt) · [llms-full.txt](/llms-full.txt) · [llms-small.txt](/llms-small.txt)