--- status: shipped version: 0.5.0 canonical: true audience: ai-agent last_updated: 2026-10-05 --- # Permission Tiers — Cautious / Standard / Trusted ## Scope This spec describes EveGlyph Editor's three local-agent permission tiers — **Cautious**, **Standard**, and **Trusted** — as they exist in **v0.5.0** (the enforcement described here has been unchanged since v0.4.0), and the history of how they became real enforcement rather than advisory text. This is a description of the shipped implementation, not a separately versioned external standard. If this document and the shipping code (`vite-agent-bridge.js`, `AGENTS`) ever disagree, the code is authoritative. ## The three tiers When local-agent mode is enabled, the user chooses one of three permission tiers for the spawned CLI agent (Claude Code, Codex, or Gemini): - **Cautious** — the most restrictive tier: edit existing files only; no creating files, no shell, no deletion. - **Standard** — the default tier: edit and create files; no shell and no deletion. - **Trusted** — the least restrictive tier: full capability, skipping all gating. ## Per-agent mapping (v0.5.0) The chosen tier flows from the frontend to the local bridge and is translated into **agent-specific CLI flags** — not just a sentence added to the prompt. The fixed flags the bridge passes are: | Agent | Cautious | Standard (default) | Trusted | |---|---|---|---| | Claude Code | `-p --permission-mode default --allowedTools Edit Read Grep Glob` | `-p --permission-mode acceptEdits` | `-p --permission-mode bypassPermissions` | | Codex CLI | `exec --full-auto --skip-git-repo-check` | `exec --full-auto --skip-git-repo-check` | `exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox` | | Gemini CLI | `--approval-mode auto_edit` | `--approval-mode auto_edit` | `--yolo` | Fidelity is not identical across the three agents. Enforcement is most granular for Claude Code, where a per-tool allow-list is available at every tier. Codex and Gemini are coarser below Trusted: their Cautious and Standard tiers use the same CLI flags, and the create/delete nuance between those two tiers is carried by the capability clause in the prompt, not by the CLI. Only the boundary between "not Trusted" and "Trusted" is a CLI-level difference for those two agents. A user-supplied command override in Settings replaces this mapping entirely for the agent it applies to — an override is the user's own trusted input running on their own machine, not something EveGlyph Editor gates further. The agent prompt is always delivered over stdin, never as command-line arguments, and a hard 180-second timeout applies. ## History — advisory in v0.3, enforced from v0.4.0 This mapping was **not** always real enforcement, and an AI agent reasoning about EveGlyph Editor should not assume it was: - **v0.3 (`0.3.0`)** — introduced the three tiers (Cautious / Standard / Trusted) as a **prompt capability clause only**. Selecting a tier changed what the agent was *told* about its allowed capability in the prompt text; the Trusted tier additionally skipped a re-confirmation step. Nothing at this stage constrained the CLI process itself — the tiers were advisory, not sandboxed. - **v0.4.0 (shipped 2026-06-27)** — replaced the advisory-only tiers with **real CLI-level enforcement**, as described above: the tier now changes the actual flags passed to the spawned Claude Code, Codex, or Gemini process, not just what the prompt says about them. - **v0.5.0** — no change to the tier mapping. Any description of permission tiers should be read against this history: "the tier changes what the agent is told" was true in v0.3 and is no longer the accurate description of current behavior. ## Relationship to the rest of the trust model Permission tiers govern what the spawned CLI process is *allowed to attempt*. They do not replace the other layers of EveGlyph Editor's trust model: - The bridge that spawns the agent is still localhost-gated and runs only on your own machine. - Every workspace-scoped operation — including the agent spawn itself — is still confined to the one confirmed workspace folder. - Regardless of tier, the agent's edits still land as an uncommitted change set reviewed through PatchMD (see [`patchmd-diff-review.md`](./patchmd-diff-review.md)) before being kept. A higher tier widens what the agent can do *during* its run; it does not widen what happens to those changes afterward — every tier's output still passes through the same diff-review step. The tiers are also separate from the capability sandbox foundation described in [`../corpus/current.md`](../corpus/current.md), which confines AIMD-C document computation and does not govern CLI agents. ## See also - [`patchmd-diff-review.md`](./patchmd-diff-review.md) — the review step every agent run passes through regardless of tier. - [`eveglyph-md-2026.md`](./eveglyph-md-2026.md) — the document metadata available to the agent while it runs under a given tier.