Build your plugin
Pick the policies you want and chock builds one plugin from them for your agent. Free and open source.
Your agent is not in this list? The Install page lists every agent agentseam records, and how chock reaches it. Every agent.
Pick policies
Labels and counts are the catalog's grades on Claude Code.
Git hygiene · 6 policies
Secrets · 4 policies
Packages and supply chain · 5 policies
CI pipeline · 3 policies
Agent configuration · 6 policies
Prompt injection and memory · 4 policies
Shell containment · 5 policies
Code hardening · 4 policies
Test integrity · 2 policies
Cloud and containers · 3 policies
OWASP agentic top 10 · 10 policies
EU AI Act · 3 policies
Safety guidance · 4 policies
Agent craft · 5 policies
In no group · 7 policies
Policies that no preset lists. Pick them one by one.
Your selection 0 policies
Pick at least one policy.
Untested in OpenHands. Nobody has seen these policies fire in OpenHands yet, so the command builds the plugin without --apply. Apply the steps below yourself, check that a refusal fires, and help test it.
Untested in Kimi Code. Nobody has seen these policies fire in Kimi Code yet, so the command builds the plugin without --apply. Apply the steps below yourself, check that a refusal fires, and help test it.
Untested in Factory Droid. Nobody has seen these policies fire in Factory Droid yet, so the command builds the plugin without --apply. Apply the steps below yourself, check that a refusal fires, and help test it.
Evidence wanted for OpenHands. Chock has not seen OpenHands run the plugin yet. The command still builds the plugin. If you use OpenHands, you can help: run it and share what happens in agentseam issue #181.
Evidence wanted for Kimi Code. Chock has not seen Kimi Code run the plugin yet. The command still builds the plugin. If you use Kimi Code, you can help: run it and share what happens in agentseam issue #135.
Evidence wanted for Factory Droid. Chock has not seen Factory Droid run the plugin yet. The command still builds the plugin. If you use Factory Droid, you can help: run it and share what happens in agentseam issue #184.
With --apply, chock runs these steps for Claude Code:
claude plugin marketplace add ~/.chock/marketplace/claude-codeclaude plugin install chock-guardrails@chock-local
Both commands are safe to repeat. The plugin loads in place from the directory: restart the Claude Code session, or run /reload-plugins in it, to pick up a rebuild.
With --apply, chock runs these steps for Cursor:
Cursor loads ~/.cursor/plugins/local/chock-guardrails as a local plugin: run "Developer: Reload Window" (or restart Cursor), then check it under Customize. There is no command to run.
Not offered for Cursor. With Include Third-Party Plugins on, Cursor imports an enabled Claude Code plugin and calls its hooks. But in the live test, chock never ran and nothing was refused. Do not rely on that import to enforce chock's policies.
With --apply, chock runs these steps for Codex:
codex plugin marketplace add ~/.chock/marketplace/codex
Then install chock-guardrails from the chock-local marketplace in /plugins, and review and trust its hooks in /hooks: until you do, they do not run.
Use the Claude Code plugin
This agent can also run the Claude Code plugin (agentseam loads_claude_plugins, seen in a live run):
Codex: guard and gate refused
Build it: chock install --selection <code> --client claude-code (then, in Codex:)
codex plugin marketplace add ~/.chock/marketplace/claude-codecodex plugin add chock-guardrails@chock-local
Warning: Install one build per agent. If you install both the agent's own chock plugin and the Claude Code plugin, each one checks every action.
Warning: When another agent runs the Claude Code plugin, chock logs its events as claude_code (~/.chock/log/claude_code/), not under that agent.
With --apply, chock runs these steps for GitHub Copilot:
copilot plugin marketplace add ~/.chock/marketplace/copilotcopilot plugin install chock-guardrails@chock-local
VS Code finds plugins the Copilot CLI installed. Without the CLI, add the plugin folder to your VS Code user settings yourself:
{
"chat.pluginLocations": {
"~/.chock/marketplace/copilot/claude/chock-guardrails": true
}
}
Use the Claude Code plugin
This agent can also run the Claude Code plugin (agentseam loads_claude_plugins, seen in a live run):
Copilot CLI: guard and gate refused
Build it: chock install --selection <code> --client claude-code (then, in Copilot CLI:)
If copilot plugin marketplace add says Marketplace "chock-local" already registered, that is chock's Copilot build (this build's local marketplace is named chock-local, and every chock build made with that name shares it): keep one build and run copilot plugin marketplace remove chock-local first.
copilot plugin marketplace add ~/.chock/marketplace/claude-codecopilot plugin install chock-guardrails@chock-local
It loads live from ~/.chock/marketplace/claude-code/claude/chock-guardrails (nothing is copied); copilot plugin uninstall only disables it.
VS Code: Chat panel only. An Agents-window repo session ran no hooks
Build it: chock install --selection <code> --client claude-code (then, in VS Code:)
Add to your VS Code user settings (chock does not edit them), then use the Chat panel with the folder open:
{
"chat.plugins.enabled": true,
"chat.pluginLocations": {
"~/.chock/marketplace/claude-code/claude/chock-guardrails": true
}
}
Warning: Install one build per agent. If you install both the agent's own chock plugin and the Claude Code plugin, each one checks every action.
Warning: When another agent runs the Claude Code plugin, chock logs its events as claude_code (~/.chock/log/claude_code/), not under that agent.
With --apply, chock runs these steps for Devin:
On Windows, devin plugins install --local creates a symbolic link, so it needs Developer Mode (Settings > System > For developers) or an elevated shell; otherwise it fails with "os error 1314: A required privilege is not held by the client".
devin plugins install --local ~/.chock/marketplace/devin/chock-guardrails
The plugin is linked in place: a rebuild applies from the next Devin session.
Use the Claude Code plugin
This agent can also run the Claude Code plugin (agentseam loads_claude_plugins, seen in a live run):
Devin: turn end only. The shell guard and the write gate did not run
Devin's own chock plugin (chock install --client devin) is the better install here.
Build it: chock install --selection <code> --client claude-code (then, in Devin:)
On Windows, devin plugins install --local creates a symbolic link, so it needs Developer Mode (Settings > System > For developers) or an elevated shell.
devin plugins install --local ~/.chock/marketplace/claude-code/claude/chock-guardrails
Warning: Install one build per agent. If you install both the agent's own chock plugin and the Claude Code plugin, each one checks every action.
Warning: When another agent runs the Claude Code plugin, chock logs its events as claude_code (~/.chock/log/claude_code/), not under that agent.
With --apply, chock runs these steps for Grok:
grok plugin install ~/.chock/marketplace/grok/chock-guardrails --trust
Plugins are off in grok until enabled, and chock does not edit grok's config: run grok plugin list for the name grok gave this plugin (chock expects chock-guardrails, its folder name; the docs do not say how a plugin with no plugin.json is named), then grok plugin enable <name>, or add it to enabled under [plugins] in ~/.grok/config.toml, or press Space on it in the Plugins tab. Re-run the install command after a rebuild.
Use the Claude Code plugin
This agent can also run the Claude Code plugin (agentseam loads_claude_plugins, seen in a live run):
Grok: guard and gate refused
Build it: chock install --selection <code> --client claude-code (then, in Grok:)
grok plugin install ~/.chock/marketplace/claude-code/claude/chock-guardrails --trust
Plugins are off in grok until enabled: run grok plugin list for the id grok gave it, then grok plugin enable <id>.
Warning: Install one build per agent. If you install both the agent's own chock plugin and the Claude Code plugin, each one checks every action.
Warning: When another agent runs the Claude Code plugin, chock logs its events as claude_code (~/.chock/log/claude_code/), not under that agent.
With --apply, chock runs these steps for goose:
goose discovers ~/.agents/plugins/chock-guardrails as a user plugin, in every project: start a new goose session. There is no command to run (goose plugin install takes a git URL only). To turn it off, add chock-guardrails to disabledPlugins in ~/.config/goose/settings.json.
With --apply, chock runs these steps for Antigravity:
agy plugin install ~/.chock/marketplace/antigravity/chock-guardrails
Antigravity 2.0 and the IDE read plugin folders from ~/.gemini/config/plugins/ instead: copy ~/.chock/marketplace/antigravity/chock-guardrails there. Its hooks name ~/.chock/marketplace/antigravity/chock-guardrails by absolute path (Antigravity documents no plugin-root variable), so keep that folder where it is; re-run the install command after a rebuild.
Then, in OpenHands:
OpenHands loads a local plugin when it starts: run openhands --plugin ~/.chock/marketplace/openhands/chock-guardrails, or add "~/.chock/marketplace/openhands/chock-guardrails" to sources under [plugins] in ~/.openhands/config.toml (chock does not edit it). Its hooks name ~/.chock/marketplace/openhands/chock-guardrails by absolute path (OpenHands documents no plugin-root variable), so keep that folder where it is; a rebuild applies from the next start.
Then, in Kimi Code:
Kimi Code installs plugins from its TUI only, and chock does not drive it: in Kimi Code run /plugins install ~/.chock/marketplace/kimi-code/chock-guardrails, then /reload (or /new). Kimi copies the plugin to $KIMI_CODE_HOME/plugins/managed/chock-guardrails/ and runs that copy, so after a rebuild install it again. The plugin applies to every project you open (Kimi has no project-level plugin scope); /plugins disable chock-guardrails turns it off.
Then, in Factory Droid:
Run these from the root of the project the plugin is for: --scope project records it in that project's Droid settings. The marketplace is local to this machine; chock publishes nothing.
droid plugin marketplace add ~/.chock/marketplace/factory-droid/chock-localdroid plugin install chock-guardrails@chock-local --scope project
Droid names a local marketplace from its source; if droid plugin marketplace list shows a name other than chock-local (a --dest folder named otherwise), install chock-guardrails@<that name>. Droid copies the plugin into its cache: after a rebuild run droid plugin marketplace update and droid plugin update chock-guardrails@chock-local --scope project, then start a new session.
You need chock on your machine. See Install. Read the command before you run it: it checks each policy against its hash at catalog 38fb487f7768.
Pick a preset or add policies.