Agent connector implementations
CC Safety Net connects to each supported coding agent through that agent's native extension point. Each connector translates the agent's tool event into the shared guard flow, installs the connector in the agent's own state, and lets the doctor command report whether that state is present and active. The connectors cover Claude Code, Codex, Copilot CLI, Cursor, Gemini CLI, Kimi Code, OpenCode, OpenClaw, Pi, Amp, Hermes Agent, Antigravity CLI, Grok Build, DeepSeek Harness, Devin, and Droid. See hook routing and tool adapters for the shared event boundary and integration installation and detection for the wider install and doctor flow.
Connector model
The connector model separates host-specific transport from shared command and file checks. A host either calls a hook command over JSON or loads a plugin package that calls the guard directly. Installation and detection follow the same split.
Integration catalog
The catalog in src/…/catalog.ts is the central map of supported agents. It gives each agent a stable id and display name. It also records its install flag, artifact kind, version probe, and, when the agent uses a command hook, the hook flags and description.
| Agent | Runtime entry | Installed form | Detection source |
|---|---|---|---|
| Claude Code | PreToolUse command hook | Marketplace plugin | Claude plugin state files |
| Codex | PreToolUse command hook | Marketplace plugin | codex plugin list |
| GitHub Copilot CLI | preToolUse command hook or plugin | Plugin or hook config | Plugin checkout and hook config |
| Cursor | preToolUse command hook | User hook config or Cursor plugin | ~/…/hooks.json and Cursor plugin cache |
| Gemini CLI | BeforeTool command hook | Extension | Gemini extension state |
| Kimi Code | PreToolUse command hook | User hook config or native plugin guidance | Kimi TOML config |
| OpenCode | tool.execute.before plugin hook | Global npm plugin | OpenCode config |
| OpenClaw | before_tool_call plugin hook | Managed native plugin directory | Plugin files and OpenClaw plugin config |
| Pi | tool_call extension event | npm package | Pi settings |
| Amp Code | tool.call plugin event | Hosted Personal Plugins repository | amp plugins list |
| Hermes Agent | pre_tool_call plugin hook | Managed user plugin directory | Plugin files and Hermes config |
| Antigravity CLI | PreToolUse command hook | User hook config | Antigravity hook config |
| Grok Build | PreToolUse command hook | User hook config | Grok Build hook config |
| DeepSeek Harness | Tool guard plugin event | Package in web or Desktop profile | DeepSeek Harness profile manifests |
| Devin CLI | PreToolUse command hook | User hook config | Devin hook config |
| Factory Droid | PreToolUse command hook | User hook config | Droid hook config |
The catalog is also the source for install target order and doctor order. This keeps the command-line selector, version probes, hook dispatch, and status output aligned when an integration is added or renamed.
References: src/…/catalog.ts• L17-31 src/…/catalog.ts• L35-280 src/…/targets.ts• L8-28
Shared hook boundary
The command-hook connectors use one shared boundary in src/…/common.ts and the shared PreToolUse adapter in src/…/pre-tool-use.ts. They read bounded JSON input, check the event and tool name, build a common tool invocation, run the guard, and convert a denial back into the host's required JSON shape. A malformed request or an unsafe working directory is denied rather than passed to the agent.
The agent files only describe the differences that matter at this boundary:
- The event name and input field names.
- The host tool names that carry shell commands.
- The host's allow, deny, or ask response shape.
- Any host-specific execution directory rule.
This boundary is used by Claude Code, Codex, Copilot CLI, Cursor, Gemini CLI, Kimi Code, Hermes Agent, Antigravity CLI, Grok Build, Devin, and Droid. OpenCode, OpenClaw, Pi, Amp, and DeepSeek Harness call the same guard through in-process plugin adapters instead of starting the CLI hook command.
References: src/…/common.ts• L27-54 src/…/common.ts• L116-242 src/…/pre-tool-use.ts• L7-79 src/…/hook.ts• L1-24 src/…/plugin-adapter.ts• L17-120
Agent connectors
The connectors share the same guard goal but do not share the same host contract. The following groups show how each agent receives the guard and where its installed state lives.
Claude-shaped hooks
Claude Code, Codex, and GitHub Copilot CLI use closely related plugin or hook models. Claude Code and Codex use the shared PreToolUse adapter, while Copilot CLI uses the same guard boundary with its own event fields and denial result. Claude Code routes shell tools plus its monitor tool. It can also recognize a Copilot shell when Copilot runs through the Claude-shaped path.
Claude Code installs cc-safety-net@cc-marketplace from the kenryu42/cc-marketplace marketplace. Its packaged hook registration is represented by hooks/hooks.json. Detection checks both the installed plugin record and the enabled plugin entry in Claude's settings. A plugin that is installed but not enabled is reported as disabled.
Codex installs through the same marketplace identity, cc-safety-net@cc-marketplace, and runs the shared PreToolUse command hook at tool time. Detection reads the text from codex plugin list. It requires the source row to report both installed and enabled. Codex trust remains a separate user action that doctor cannot verify.
GitHub Copilot CLI can receive the guard in two ways. Its plugin uses the cc-safety-net@cc-marketplace identity. Its hook adapter accepts shell events with object or JSON-string tool arguments. Detection checks repository hook files, user hook files, and inline settings before it checks plugin state. Repository settings take precedence over user settings. User hook files require Copilot CLI 0.0.422+. Inline hook definitions require 1.0.8+. An active disableAllHooks setting takes precedence and reports the connector as disabled.
References: src/…/hook.ts• L7-34 src/…/detect.ts• L10-67 hooks/hooks.json• L1-14 src/…/detect.ts• L3-42 src/…/hook.ts• L5-61 src/…/detect.ts• L40-70 src/…/detect.ts• L214-377 src/…/plugin-id.ts• L1-17 src/…/agent-detection.ts• L11-54
Command hook connectors
Cursor, Gemini CLI, Kimi Code, Antigravity CLI, Grok Build, Devin, and Droid install a command in the host's hook configuration. The command invokes the packaged CLI with an agent flag. The host controls process lifetime while the shared hook boundary controls the decision.
| Agent | Host event and command tool | Main installed state | Host-specific behavior |
|---|---|---|---|
| Cursor | preToolUse; Shell | ~/…/hooks.json or Cursor plugin cache | Uses workspace roots and checks working_directory inside those roots. The hook entry is canonical and fail-closed. Native and imported plugins can also run the check. |
| Gemini CLI | BeforeTool; run_shell_command | ~/.gemini/extensions/gemini-safety-net | Returns a deny decision with a system message. A ! enablement override disables the extension. |
| Kimi Code | PreToolUse; Bash | $KIMI_CODE_HOME/config.toml or ~/…/config.toml | Keeps a command hook in TOML. A command-level cwd must remain inside the session directory. |
| Antigravity CLI | PreToolUse; run_command | ~/…/hooks.json | Maps CommandLine to the command field and selects a workspace root from workspacePaths. Install preserves other definitions and can re-enable its own disabled definition. |
| Grok Build | PreToolUse; run_terminal_command | $GROK_HOME/…/cc-safety-net.json or ~/…/cc-safety-net.json | Uses an unscoped hook entry so all tool calls reach the adapter. It uses workspaceRoot or cwd as the trusted root. Truncated tool input is denied. |
| Devin CLI | PreToolUse; exec and process text | ~/…/config.json or the Windows Devin config path | Routes exec as a shell command and treats text sent to a process as command input. Detection reports managed hook drift. |
| Factory Droid | PreToolUse; Execute | ~/…/hooks.json | Uses the shared command route. A command matcher that narrows coverage is reported as drift. |
Cursor and Antigravity also protect path-bearing non-shell tools because those hosts can provide file targets outside the command field. Cursor requires a usable workspace root and keeps a requested working_directory inside that root. Their adapters deny when the workspace or target path cannot be mapped with confidence. Cursor installation preserves foreign hook definitions, removes duplicate managed entries, and restores its managed entry to the 30-second fail-closed form. Kimi Code offers a native plugin path through its host UI. The command-line installer keeps the global hook path as the automated path and warns when both paths are active.
Devin and Droid preserve other host hook definitions while replacing their own managed entry with one canonical PreToolUse command. Devin reads a platform-specific config location. Droid installs into its dedicated hooks file and can use existing settings hooks as the starting point.
Grok Build uses the classic { decision: 'allow' } or { decision: 'deny', reason } response. The adapter treats run_terminal_command as a shell command and sends other tool calls through the shared non-command path. This lets the guard apply path checks to those calls as well.
References: src/…/hook.ts• L15-119 src/…/install.ts• L8-16 src/…/install.ts• L22-36 src/…/install.ts• L89-136 src/…/detect.ts• L21-109 src/…/hook.ts• L6-52 src/…/detect.ts• L14-56 src/…/hook.ts• L12-71 src/…/install.ts• L12-20 src/…/hook.ts• L17-77 src/…/install.ts• L35-178 src/…/detect.ts• L41-81 src/…/hook.ts• L10-60 src/…/install.ts• L6-29 src/…/hook.ts• L6-45 src/…/install.ts• L14-96 src/…/detect.ts• L11-30 src/…/hook.ts• L5-12 src/…/install.ts• L13-108 src/…/detect.ts• L6-49
In-process plugin connectors
OpenCode, OpenClaw, Pi, Amp, and DeepSeek Harness load connector code inside the host process. Their adapters receive a tool event directly, resolve the host workspace, run the guard, and return the host's native block or reject result.
OpenCode exports CCSafetyNetPlugin from src/…/plugin.ts. The plugin watches tool.execute.before, adds the cc-safety-net built-in command, and installs globally as cc-safety-net@latest. Its detector reads opencode.json or opencode.jsonc. The installer also verifies that the cached package exposes a callable plugin because OpenCode can continue after a plugin load failure. The adapter maps the configured shell to a command route and checks both the configured directory and any tool workdir before evaluation. The built-in command uses the shared safety-net guidance template so the agent can explain blocks, rules, integrations, and diagnostics through the same workflow as Pi.
OpenClaw exposes a native plugin manifest, package manifest, and runtime entry. The runtime registers before_tool_call for the plain exec tool and accepts only host modes that provide a proven execution path. It resolves the agent workspace from the host runtime and keeps any workdir inside that workspace before the guard evaluates the command. Installation sends the packaged artifact to the OpenClaw plugin manager, enables it when needed, and verifies a loaded runtime state. Detection checks regular managed files, package shape, version, and same-version edits before it checks global, allow-list, deny-list, and per-plugin enablement rules.
Pi installs the npm package npm:cc-safety-net and loads its extension from Pi settings. The extension registers tool_call for guard decisions and adds the /cc-safety-net command. That command sends the shared rulebook workflow to the agent as a user message. This lets the agent guide rulebook changes without adding a second rule system. Pi uses the session working directory as the trusted context for its tool calls. It maps its bash event to the command route and sends other tool inputs through the non-command path.
Amp registers a tool.call listener through src/…/amp.ts and delegates each event to the Amp host adapter. Its personal-scope plugin is stored in the hosted Personal Plugins repository. Installation clones that repository, checks that the managed entry is a regular owned file, updates the managed plugin artifact, commits, and pushes it. It also embeds the current user policy for remote Orb execution and removes an obsolete managed entry when needed. The plugin therefore also applies to Amp Orb threads. Detection reads amp plugins list and looks for an active User Plugins entry. The adapter denies malformed events, missing workspace data, helper failures, and unusable working directories before it can pass a tool call to the guard. When Amp supplies a shell command directory, the adapter keeps that execution directory within the resolved workspace.
DeepSeek Harness loads the cc-safety-net package as a tool guard plugin. The entry registers the guard with the host's tools service. The adapter reads the session workspace from the event and supports bash and pwsh as command tools. It keeps a requested workdir inside that workspace. Other tools use the shared non-command path. A malformed event or an unusable session or requested directory becomes a block.
References: src/…/plugin.ts• L24-164 src/…/install.ts• L14-79 src/…/detect.ts• L11-51 src/…/commands.ts• L4-10 src/…/plugin.ts• L14-154 src/…/install.ts• L42-50 src/…/detect.ts• L29-67 src/…/tool-call.ts• L37-118 src/…/commands.ts• L18-37 src/…/amp.ts• L1-6 src/…/install.ts• L243-283 src/…/tool-call.ts• L51-149 src/…/detect.ts• L1-43 src/…/index.ts• L1-7 src/…/guard.ts• L28-116
Managed plugin artifacts
Hermes Agent, OpenClaw, Amp, and DeepSeek Harness have a managed artifact or package registration that must be present before the host can load the connector. The artifact or profile state carries enough ownership and version information for install, update, and doctor to tell a supported copy from an unmanaged or edited state.
Hermes installs __init__.py and plugin.yaml under the Hermes plugin directory. The Python plugin forwards supported pre_tool_call events to npx -y cc-safety-net hook --hermes-agent. It blocks when the analyzer cannot start, times out, or returns unreadable output. Hermes loads the plugin only when its config lists the plugin as enabled. File installation and host enablement are separate parts of the connector.
OpenClaw installs three files under its extension directory: the runtime entry, openclaw.plugin.json, and package.json. The manifest enables startup activation. The package manifest points OpenClaw to the runtime entry. Amp publishes one TypeScript entry under the cc-safety-net directory in the user's hosted repository and embeds the current user policy for remote Orb execution.
DeepSeek Harness installs the cc-safety-net package into the web profile and, when its Desktop CLI is found, the Desktop profile. The profile manifest records the package dependency and the enabled bundle. The installer does not change a running Desktop profile. If the Desktop CLI is not in its default location, the user must manage that profile from the host's Plugins page.
The artifact checks protect ownership and loadability rather than only checking that a path exists. A missing file, symlink, unmanaged replacement, edited same-version file, stale version, or disabled host entry produces a visible doctor result or stops installation before the host runs without protection.
References: src/…/artifact.ts• L1-20 src/…/artifact.ts• L26-57 src/…/artifact.ts• L87-119 src/…/install.ts• L21-32 src/…/detect.ts• L120-156 src/…/artifact.ts• L10-79 src/…/detect.ts• L129-207 src/…/artifact.ts• L1-18 src/…/install.ts• L242-283 src/…/install.ts• L18-28 src/…/install.ts• L101-145 src/…/detect.ts• L15-87
Installation and detection lifecycle
Installation is host-owned. The installer selects an agent, probes the required CLI when needed, applies the host's native install action, and reports the resulting path or host state. Detection is read-only for file-backed integrations. Codex and Amp are queried through their list commands because their useful state is held by the host or by a hosted repository. DeepSeek Harness is checked through its local profile manifests.
The lifecycle below shows how a selected agent moves from discovery to an active connector and how doctor verifies it later.
flowchart TD
A[Select agent] --> B[Probe host CLI]
B --> C{Connector kind}
C -->|Command hook| D[Write host hook config]
C -->|Native plugin| E[Run host plugin install]
C -->|Managed artifact or package| F[Publish or write artifact]
D --> G[Host loads hook]
E --> H[Host enables and loads plugin]
F --> H
G --> I[Guard receives tool event]
H --> I
I --> J[Allow or block tool]
J --> K[Doctor reads host state]
The install selector marks a target available when its host CLI is present. DeepSeek Harness can also become available when its Desktop CLI is found. For uninstall, a detected or unreadable configured state remains selectable so stale or damaged integrations can still be removed. Update discovers installed targets first. It refreshes only those targets and clears the shared npx cache once for connectors that invoke the packaged CLI through npx.
References: src/…/index.ts• L83-106 src/…/index.ts• L170-320 src/…/index.ts• L627-744 src/…/choices.ts• L30-108 src/…/index.ts• L20-47 src/…/install.ts• L188-199
Installation artifacts and host state
Each host keeps ownership and enablement in a different place. The table maps an install result or a doctor finding back to the host state that controls loading.
| Agent | Artifact or registration | Enablement or active-state check |
|---|---|---|
| Claude Code | cc-safety-net@cc-marketplace plugin record and packaged PreToolUse hook | enabledPlugins in ~/…/settings.json |
| Codex | cc-safety-net@cc-marketplace marketplace plugin | installed, enabled in codex plugin list |
| GitHub Copilot CLI | Marketplace checkout or JSON hook entries | Plugin setting plus repository, user, and inline hook precedence |
| Cursor | Command entry in ~/…/hooks.json or Cursor marketplace plugin cache | Managed entry is active when present; timeout, fail-closed mode, duplicate drift, and native-plugin overlap are reported |
| Gemini CLI | ~/.gemini/extensions/gemini-safety-net | Extension enablement overrides |
| Kimi Code | PreToolUse entry in config.toml | Presence of the managed command |
| OpenCode | Global package reference in opencode.json or opencode.jsonc | Presence of a package entry and runtime load verification |
| OpenClaw | extensions/cc-safety-net/ with three managed files | OpenClaw plugin switches and loaded runtime status |
| Pi | npm:cc-safety-net package in Pi settings | Package extension entries not disabled with - |
| Amp | cc-safety-net/index.ts in hosted Personal Plugins | active User Plugins row from amp plugins list |
| Hermes Agent | __init__.py and plugin.yaml in the user plugin directory | Plugin name in plugins.enabled and not in plugins.disabled |
| Antigravity CLI | Named cc-safety-net definition in hooks.json | Hook definition is not disabled |
| Grok Build | cc-safety-net.json in the global hooks directory | Managed PreToolUse command entry with full-tool coverage and expected type and timeout |
| DeepSeek Harness | cc-safety-net dependency in each profile's package.json | Package name appears in the profile's enabled dsh.profile.bundles |
| Devin CLI | Managed PreToolUse command entry in the Devin config | Expected command and timeout are present |
| Factory Droid | Managed PreToolUse command entry in ~/…/hooks.json | Expected command and timeout are present and coverage is not narrowed |
The key distinction is between installed and active. A plugin directory or package can exist while the host has disabled it. A hook config can be present but malformed. Doctor keeps those states separate so an engineer can repair the host registration instead of reinstalling blindly. DeepSeek Harness can have the package in more than one profile, with some profiles enabled and others disabled. Cursor can also have both its command hook and a native or imported plugin active, which doctor reports as duplicate coverage.
References: src/…/detect.ts• L31-67 src/…/detect.ts• L26-49 src/…/detect.ts• L168-377 src/…/detect.ts• L61-109 src/…/detect.ts• L25-52 src/…/detect.ts• L15-40 src/…/detect.ts• L15-51 src/…/detect.ts• L186-207 src/…/detect.ts• L22-62 src/…/detect.ts• L16-43 src/…/detect.ts• L131-156 src/…/detect.ts• L62-80 src/…/detect.ts• L49-82 src/…/detect.ts• L25-87 src/…/detect.ts• L11-30 src/…/detect.ts• L6-49
Detection and repair states
The doctor combines one detector per catalog entry and reports four useful states: configured, disabled, not applicable, and not inspected. Configured means the connector is present and active. Disabled means the host records it but will not use it. Not applicable means no supported installation was found. Not inspected means the state existed but could not be read safely.
Detection avoids host commands that rewrite live configuration. It reads runtime-owned files for most agents. Codex and Amp are exceptions because their list commands expose state that is not available in a local file. The system-info path gives those outputs to the detectors and allows a longer time for cold marketplace or hosted-plugin queries. DeepSeek Harness reads each profile manifest. It reports configured when at least one installed profile has an enabled bundle, and disabled when installed profiles have no enabled bundle.
References: src/…/context.ts• L6-25 src/…/index.ts• L20-74 src/…/detect.ts• L54-87
Change checklist
When these files or sections are changed, remember to consider these:
- Add or remove the agent in src/…/catalog.ts, the detector map, and the hook runner map together. Type checks cover missing catalog wiring, but they do not choose the correct host artifact or status rule.
- Keep the install flag, runtime flag, legacy flag, display name, and probe command aligned. These values feed separate CLI paths and can silently make an agent selectable but unable to dispatch.
- When a host changes its event payload, update its tool route and execution-directory mapping together. The guard must analyze the directory where the host will actually run the tool.
- Keep artifact ownership markers, manifest entry paths, enablement checks, and runtime verification in sync. A host can load an artifact directory that exists but does not register a hook.
- Preserve host-specific precedence rules when changing detection. Copilot hook scopes, OpenClaw allow and deny lists, Hermes enabled and disabled lists, and DeepSeek Harness profile bundle state can override a simple file-presence check.
- Preserve Cursor's single canonical managed entry, 30-second timeout, and
failClosed: truesetting. Duplicate or drifted entries can leave the host partly configured while changing its safety behavior. Also keep native-plugin overlap detection aligned with the hook path. - Preserve Grok Build's unscoped hook entry and its expected command, type, and timeout. A matcher or split handler can narrow coverage while still looking partly installed.
- Preserve Devin's
PreToolUseentry shape and platform-specific config path. Preserve Droid's dedicated hooks-file preference and its no-narrowing coverage rule. - For connectors that call
npx, include the target in cache invalidation when update behavior changes. A stale cache can run an older guard behind a current host configuration. - Keep Amp's hosted repository ownership checks, embedded policy stamp, workspace resolution, and shell-helper projection aligned. A change in any contract must still reject calls that lack a trusted workspace or usable command directory.
- Keep the OpenCode and Pi built-in command packages aligned with
CC_SAFETY_NET_TEMPLATE. A change to the shared prompt can otherwise make agent guidance differ between hosts. - Keep DeepSeek Harness web and Desktop profile handling aligned. Install and uninstall must account for a missing Desktop CLI, a running Desktop app, and enabled state in every target profile.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A hook payload has invalid JSON, a missing tool name, or an unusable working directory | The host could run a tool without a trustworthy guard context | Shared hook adapters emit a failed-closed denial and record the event |
| A plugin is installed but disabled in the host | The agent continues without the connector | Detectors report disabled and install paths can enable the host entry where supported |
| OpenCode or OpenClaw accepts an install command but cannot load the runtime | The session continues with no active protection | Installation verifies a callable OpenCode export or an OpenClaw loaded runtime status |
| A managed artifact is replaced by a symlink, unmanaged file, or edited same-version file | Install or uninstall could overwrite user data, or the host could load altered code | Artifact checks verify ownership, regular files, manifest shape, and content integrity |
| Cursor has duplicate managed entries, drifted timeout or fail-closed settings, or a second active plugin | The host can run a non-canonical or repeated connector definition | Detection reports drift or overlap, and reinstall collapses managed entries to one canonical fail-closed entry |
| Grok Build input is truncated or its hook matcher, type, or timeout drifts | A large command may be analyzed incompletely, or the hook may cover fewer tools than intended | The adapter denies truncated input, and detection reports drift for reinstall |
| Devin or Droid has a narrowed or malformed managed hook entry | Some supported tool calls bypass the guard | Detection reports the entry as absent or drifted, and reinstall restores the canonical command hook |
A stale npx cache remains after an update | Hook-based artifact connectors keep running an older guard version | Update clears the shared safety-net cache before cache-dependent targets run |
| Amp has no writable Personal Plugins repository or its hosted operation stalls | The personal connector cannot be published or the install can hang | Install requires a writable account repository, validates the managed artifact, and bounds the clone, commit, and push process |
| Amp cannot resolve its workspace or shell helper data | A tool call lacks a trusted root or command route | The adapter turns missing workspace data, helper failures, and unusable directories into an explicit denial |
| Hermes cannot start, finish, or parse the analyzer subprocess | Hermes may ignore a callback error and run the tool | The generated Hermes plugin turns transport and analysis errors into an explicit block |
| DeepSeek Harness has no usable profile, a profile bundle is disabled, or its Desktop app is running during install | The package is absent or present but the host does not load it | Detection reports n/a or disabled; install refuses a running Desktop profile and verifies enabled bundles afterward |
Key files
| File | Why to read it |
|---|---|
| src/…/catalog.ts | Defines the supported agents and the metadata shared by install, hook dispatch, and doctor. |
| src/…/hook.ts | Shows the public hook flags and the runtime hook command contract. |
| src/…/common.ts | Shows the common hook lifecycle from bounded input to guard decision. |
| src/…/pre-tool-use.ts | Defines the shared PreToolUse event contract used by Claude Code, Codex, Devin, and Droid. |
| src/…/plugin-adapter.ts | Defines the shared in-process plugin flow and failed-closed behavior. |
| src/…/index.ts | Shows how native commands, config edits, managed artifacts, updates, and uninstall actions are selected. |
| src/…/index.ts | Composes the per-agent detectors into the doctor result. |
| src/…/hook.ts | Describes Claude Code's tool routes and its shared PreToolUse entry point. |
| src/…/hook.ts | Describes Codex's PreToolUse command hook and command route. |
| src/…/detect.ts | Describes Copilot's plugin, hook scope, version, and precedence checks. |
| src/…/install.ts | Shows the managed Cursor hook entry, native marketplace cleanup, canonical settings, duplicate handling, and fail-closed host settings. |
| src/…/detect.ts | Shows Cursor hook drift checks and overlap detection for native and imported plugins. |
| src/…/install.ts | Shows Devin's config location, managed hook replacement, and preservation of foreign handlers. |
| src/…/hook.ts | Shows Devin's command and process-text tool routes. |
| src/…/install.ts | Shows Droid's dedicated hook file, settings fallback, and managed entry removal. |
| src/…/detect.ts | Shows Droid's coverage and managed-entry drift checks. |
| src/…/plugin.ts | Shows the in-process OpenCode plugin, shell and workdir routing, and built-in command registration. |
| src/…/commands.ts | Shows the OpenCode command package and its shared agent guidance. |
| src/…/artifact.ts | Defines the OpenClaw package identity and files that make up the loadable artifact. |
| src/…/plugin.ts | Shows OpenClaw's exec event contract, workspace boundary, and block response. |
| src/…/install.ts | Shows the hosted Personal Plugins publication flow, policy embedding, legacy migration, and ownership checks. |
| src/…/amp.ts | Shows Amp's host entry point and its tool.call registration. |
| src/…/tool-call.ts | Shows how Amp workspace and shell data become a guarded tool invocation. |
| src/…/artifact.ts | Shows the generated Hermes files and fail-closed subprocess bridge. |
| src/…/tool-call.ts | Shows Pi's tool event routing, trusted session directory, and native block result. |
| src/…/commands.ts | Shows Pi's shared command package and how it sends guidance into the agent session. |
| src/…/install.ts | Shows the Antigravity hook definition, preservation of user entries, and enablement model. |
| src/…/hook.ts | Shows Grok Build's event shape, tool routing, trusted-root checks, and response format. |
| src/…/install.ts | Shows the managed Grok Build hook file and preservation of foreign hooks. |
| src/…/guard.ts | Shows DeepSeek Harness tool event routing, command shells, trusted session directory, and block response. |
| src/…/install.ts | Shows DeepSeek Harness web and Desktop profile installation, removal, and running-app checks. |
| src/…/detect.ts | Shows profile package and enabled-bundle detection. |
| src/…/index.ts | Shows the DeepSeek Harness plugin entry and host service registration. |
| src/…/cc-safety-net.ts | Holds the shared rulebook workflow used by the Pi and OpenCode command packages. |