Editors and coding agents
How much zn-gate can protect in each editor and coding agent, and the two-minute setup for each one.
zn-gate protects most where an agent lets it hook into its own tools: there it can block reads of secret files and remove secrets from what the model sees. Where an editor only supports MCP servers, zn-gate offers its checks to the agent and can check your other MCP servers, but it cannot see the agent's own file reads or shell commands.
| Editor or agent | Setup | Blocks reads of .env and credential files |
Removes secrets from shell output and files | Removes secrets from MCP results | Blocks a secret pasted into the chat | Tested by us |
|---|---|---|---|---|---|---|
| Claude Code | Plugin: claude plugin install zn-gate@usezn (Quickstart) |
Yes | Yes | Yes | Yes | Yes, end to end |
| Codex CLI | zn hooks install codex, then trust it in /hooks |
Yes | Yes (replaces the result) | Yes | Yes | Yes, end to end |
| OpenCode | zn hooks install opencode |
Yes | Yes | Yes | Yes | Yes, end to end |
| Google Antigravity | zn hooks install antigravity |
Yes | No (Antigravity hooks cannot rewrite tool output) | Only servers you wrap | No | Formats checked; hand-tested on Windows; no automated end-to-end run |
| ZCode (z.ai) | zn hooks install zcode |
Yes | No (ZCode hooks cannot rewrite tool output; zn adds a notice) | Only servers you wrap | Yes (blocked, not cleaned) | Tested end to end on the official ZCode desktop app 3.16.3 on Linux x64 (October 2026). The same checks passed on Windows x64 (Windows Server 2022, same app version, October 2026), for an administrator and for a standard user, through the agent the app ships; the Windows app window itself was not driven. macOS was not tested. |
| Cursor | zn hooks install cursor |
Yes | No (Cursor does not allow it) | Yes | Yes | Formats checked; no end-to-end run |
| VS Code (GitHub Copilot) | MCP server | No | No | Only servers you wrap | No | Not yet verified |
| Windsurf (Devin Desktop) | MCP server | No | No | Only servers you wrap | No | Not yet verified |
| Cline | MCP server | No | No | Only servers you wrap | No | Not yet verified |
| Zed | MCP server | No | No | Only servers you wrap | No | Not yet verified |
| JetBrains AI Assistant | MCP server | No | No | Only servers you wrap | No | Not yet verified |
| Continue | MCP server | No | No | Only servers you wrap | No | Not yet verified |
"Only servers you wrap" means that the results of the MCP servers you start through zn-gate shield are checked; each page shows how. The hooks need zn-gate 1.5 or later from npm (npm install -g zn-gate). Per-agent details for the hooks: compat.md.
Hooks listed apart
GitHub Copilot has experimental hooks since zn-gate 1.16.0: zn hooks install copilot sets up the hooks that VS Code, the GitHub Copilot app and Copilot CLI share. For VS Code and the app this is documented, not tested in the app: the hooks were run end to end with Copilot CLI only. Gemini CLI has an experimental hook adapter since zn-gate 1.14.0. Both are listed apart from the six supported agents above and are less tested. Each one blocks reads and writes of secret files by path and shell commands that handle secrets, and stops the agent from editing its own hook or settings files.
Google replaced Gemini CLI with Antigravity CLI for free and Google One accounts on June 18, 2026, so Antigravity comes first in the table above. Gemini CLI keeps working with zn-gate as an experimental adapter.
| Agent | Setup | What it does not do |
|---|---|---|
| Gemini CLI | zn hooks install gemini |
Does not change what a tool returns. Its hooks cannot ask for confirmation, so zn blocks what it would ask about and says why. Gemini CLI lets a call run when a hook crashes or times out, so zn blocks it instead (a hook that fails is answered with a block, and zn sets a 15-second timeout on its hook and answers a check still running after 11 seconds with a block). Checked end to end with Gemini CLI 0.64.0. |
| GitHub Copilot (VS Code, CLI), experimental | zn hooks install copilot |
Also replaces secret values in the results of read and shell tools. Cannot block a typed prompt; Copilot lets a call through when a hook times out, so zn, which sets a 15-second timeout on its hooks, blocks the call itself at 11 seconds. Not tested on Windows. Checked end to end with Copilot CLI 1.0.98. |
Details: compat.md (Gemini CLI and GitHub Copilot) and threat-model.md (these two and Antigravity).
VS Code and Windsurf have their own agent hooks, but zn-gate does not install hooks for them yet.