Skip to content

Security: idosal/AgentPolyfill

Security

SECURITY.md

Security

Please report security problems privately, through Report a vulnerability on this repository's Security tab, not in a public issue. If that button is not there, open an issue that says only that you have a security report, with no details, and you will be given a private way to send it. Say which polyfill and which host, the host's version and your operating system, what you did and what happened.

Each polyfill's own SECURITY.md describes what it checks and what it does not protect against:

Polyfill Claude Code Codex Pi OpenCode Antigravity Copilot CLI Hermes
Events SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md
Apps SECURITY.md not available not available not available no form; the App shows MCP Apps itself no polyfill: built into Copilot for graphical hosts not available
Skills no polyfill: built into Claude Code, in beta from 2.1.332 SECURITY.md SECURITY.md SECURITY.md SECURITY.md no polyfill: built into Copilot SECURITY.md
Server Cards SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md
ARD SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md SECURITY.md

In T3 Code, which runs Codex, Claude Code, OpenCode and other agents for you, the plugins above run as they do in those hosts (checked with Codex). Events has a form of its own there, for Codex threads: mcp-events for T3 Code. It is an MCP server Codex starts, and a watcher process that keeps running after T3 Code closes, until no thread has a watch, and wakes a thread with T3 Code's t3 thread send. The turn it starts runs in the thread's own permission mode. It reads no stored credentials, Codex's or T3 Code's.

These are third-party plugins and extensions that run with your permissions in each host.

Pi runs tool calls without asking unless a permission extension asks. Each Pi polyfill asks before its consequential step: a watch, a skill load, a registry search or a server addition. None auto-approves or reads Pi's stored credentials (mcp-auth.json, auth.json). Pi's permissions remain the boundary. Skills also asks before a cross-server read while a served skill is loaded, naming both servers (SEP-2640 X8).

Hermes Agent runs plugins in its gateway, with your permissions. Each Hermes polyfill puts its consequential step (a watch, a skill load, a registry search or a server addition) to Hermes's own approval, through a pre_tool_call approve directive, and Hermes fails closed where nobody can answer. Where Hermes would approve without asking (--yolo, /yolo, hermes -z, approvals.mode: off), or a polyfill can't tell, it refuses that step instead; Hermes's unattended approve modes (approvals.cron_mode, single_query_mode, unattended_mode: approve) still approve where nobody is present, as you set them to, and a kept "session" or "always" answer covers exactly what the question showed, in those runs too. None reads Hermes's stored credentials (mcp-tokens/, .env, auth.json), and Events and Skills fill in no ${VAR} from .env. Skills also asks before a cross-server read while a served skill is loaded, naming both servers (SEP-2640 X8), and before every resource read if it can't tell what a session loaded.

OpenCode's shipped permission rules allow every action. Each OpenCode polyfill puts its consequential step (a watch, a skill load, a registry search or a server addition) to OpenCode's rules and makes it ask by default; a deny or ask rule you write wins, and with nobody there to answer, OpenCode refuses. None answers a question itself or reads OpenCode's stored credentials, OAuth tokens included. OpenCode's rules remain the boundary. Skills also asks before a cross-server read while a served skill is loaded, naming both servers (SEP-2640 X8). OpenCode 2.4.1's TUI shows each of these questions only as "Call tool <action>"; the details are on the model's call line just above it.

Each Antigravity polyfill puts its own actions to you in Antigravity's approval card, through force_ask: an Events watch, a new or changed skill load, a server addition or a registry search. None auto-approves. The App greys out the card's "always allow" choices; the CLI's card still lists them. The other Events tools, an approved unchanged skill load and skill file reads pass with a ticket and then get Antigravity's usual MCP question, which allow rules can skip. By default that question is asked: unconfigured MCP tools default to Ask, the interactive CLI starts in auto mode, where an MCP tool call still asks, and headless agy -p reports request-review and denies a call nobody answers. Whether --dangerously-skip-permissions also skips force_ask hasn't been checked. In CLI 1.5.17 a PreToolUse hook that fails makes the call fail. Skills doesn't meet X8: its hook asks before another server's resource read while a served skill is loaded, but Antigravity (CLI 1.5.17, App 2.35.1) ignores that question and the read goes ahead. The IDE documents no plugin hooks, so the forms aren't supported there, and their gated calls are refused. The forms read ~/.gemini/config/mcp_config.json, which can hold API keys in headers, but never log or show those values, and never open ~/.gemini/antigravity/mcp_oauth_tokens.json or any other sign-in store. Antigravity's approval system remains the boundary.

In Copilot CLI, Copilot's own prompts are the boundary. In its default mode, Copilot CLI 1.0.115 asked before each tool call, read-only ones included; VS Code's Copilot harness ran a read-only tool without asking. Either can approve a call without the person: in assisted mode (an LLM review, which an organisation can make the default) or with everything allowed. So each Copilot polyfill asks before its consequential step itself, after Copilot's tool prompt: a watch in the extension's own dialog, a registry search or a server addition in the plugin's form. Copilot declines those where nobody can be asked (copilot -p, even with --yolo). Copilot's permission rules still apply to every tool; only the Events extension's four read-only tools skip its prompt, after you grant the extension elevated permissions. Events uses only the servers Copilot enables for the session, lets go of one you switch off, and runs no project's server Copilot wouldn't run. ard_search is marked not read-only, so a host that runs read-only tools unasked, as VS Code's harness did, doesn't run it unasked. None reads Copilot's stored credentials (the keychain, ~/.copilot/mcp-oauth-config/, signed-in accounts in config.json).

There aren't any published security advisories