Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

chock-cursor-plugins

Generated-only License: Apache 2.0 Contribute upstream

Chock policies packaged as installable plugins for Cursor. Guard policies ship a real beforeShellExecution hook, so a matched destructive command is denied in the editor before it runs — witnessed blocking on a real Cursor install (2026-08-24), with benign commands in the same session still allowed.

Animated replay: an agent runs terraform destroy and the chock guard denies it before it runs (Cursor, permission deny)

This repository is generated. Every file is compiled from policy sources in chock-catalog by chock. Pull requests here are closed with a pointer to the catalog — review belongs where the source is.

Install

Cursor reads this repository as a plugin marketplace via .cursor-plugin/marketplace.json:

# Team marketplace: Dashboard -> Plugins -> Add Marketplace -> Import from Repo
#   https://github.com/open-coder-ai/chock-cursor-plugins
# Local install of one plugin (developer flow):
#   copy cursor/<plugin-id>/ to ~/.cursor/plugins/local/<plugin-id>/ and reload Cursor

What a plugin actually does — read this before installing

  • Guard policies ship the hook, a guard script and a stdlib-only adapter, and are session-enforced: the hook returns Cursor's permission: "deny" response and the command is refused. This needs python3 and a usable bash on PATH; without them Cursor allows the command silently — the hook fails OPEN, and every guard's description says so verbatim. On Windows, disable the python3 Microsoft Store alias or install Python.
  • Advisory policies are a skill the client reads; nothing stops a violation.

See PLUGINS.md for every policy, its version and its posture — generated from the packages themselves, so it cannot drift from what is published.

A plugin is not the same as adopting Chock. A plugin governs one person's session in one editor. Repo-wide enforcement — git hooks and a CI gate a session cannot skip — comes from installing Chock in the repository:

pip install chock
chock init && chock sync --ci

Layout

cursor/<policy-id>/                Cursor plugin packages (.cursor-plugin/plugin.json;
                                   hooks/hooks.json where the policy has a guard)
.cursor-plugin/marketplace.json    the index Cursor reads

Trust

  • Generated only: CI regenerates from the pinned catalog and fails on any difference.
  • Byte-identical guards: guard scripts and the hook adapter are verbatim copies of their framework sources — a plugin cannot quietly behave differently from a repo install.
  • Best-effort, not a boundary: guards are pattern-based filters. See SECURITY.md.

Contributing

Pull requests that change packages here are closed automatically, and not because the change is unwelcome: every package is compiled from the catalog, so an edit here would be overwritten at the next publish and would carry none of a policy's checks. What is welcome, and where it goes:

You want to Go to
Fix or add a policy chock-catalog — it reaches every client from there, including this one
Report that a guard did or did not block on your Cursor version an issue on chock, which records the witnessed-blocking claims these packages carry; "it fails open where you say it fails closed" is the most useful result you can send
Report a bug in how packages are generated chock, where the emitter lives
Fix this README here — it is the one hand-written file in the repository

Part of the open-coder-ai family

Everything under open-coder-ai is built on one rule: a claim must match a mechanism. Where this repository sits among the others:

Repository What it is
chock The framework: write a policy once, enforce it on git hooks, CI, and every agent
chock-catalog The policies, each graded by what it actually enforces
agentseam The primitives layer under chock: one handler API over every agent's hooks, with a capability matrix that carries its provenance
context-report A signed report format for whether a plugin, hook, skill or AGENTS.md actually works
chock-threat-intel A weekly, human-reviewed threat digest scored against the catalog
chock-claude-plugins · copilot · codex The same catalog compiled for the other clients; generated only, like this one
chock-quickstart · chock-example Template repositories: exactly what chock init leaves behind, and a working adoption with one policy per layer

License

Apache-2.0, same as the framework and the catalog.

About

Chock policies as installable Cursor plugins — guard policies ship a real beforeShellExecution deny hook (witnessed blocking). Generated from chock-catalog.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages