Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By AkshitTiwariiv0.2.0Apache-2.0In 1 marketplace
Stops your coding agent from wrecking your machine or your repo: no wiping folders outside the project, no force-pushes to main without you, no secrets leaving after they're read, and a person for publishes, deploys and destructive database commands.
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Your coding agent can't wreck your machine or your repo anymore.
Countersign checks every tool call Claude Code makes, before it runs, on your own machine. No account, no server, nothing sent anywhere.
| Claude tries to | What happens |
|---|---|
rm -rf ~, rm -rf /, or delete a folder outside the project | Blocked, and Claude is told what to do instead |
rm -rf node_modules dist | Runs, because those folders can be rebuilt |
rm -rf src | You're asked first |
git push --force origin main, git reset --hard, git clean -fd | You're asked first |
DROP TABLE, TRUNCATE, prisma migrate reset | You're asked first |
terraform destroy, kubectl delete, cloud deletes and deploys | You're asked first |
npm publish, curl … | sh | You're asked first |
Read .env, then curl -d @data https://… | Blocked: once a session has read secrets, nothing goes out |
| Delete emails through a Gmail MCP server | 20 an hour, then blocked |
| Send an email, move money, share a file through any MCP server | You're asked first |
It works with MCP servers it has never seen: it reads the server and tool names (for example
gmail + delete_email) and applies the matching pack. You can also write rules for an exact tool.
In Claude Code:
/plugin marketplace add AkshitTiwarii/countersign
/plugin install countersign@countersign
Needs Node 20 or newer on your PATH.
countersign-guard log # recent decisions
countersign-guard check "git push -f origin main"
countersign-guard verify # the log is hash-chained, so edits are detectable
countersign-guard undo # copies kept before deletes and git resets; undo <id> restores
countersign-guard scan page.md # prompt injections and credentials in any text
Besides the rules, the shield watches what a single rule can't: secrets read and sent in one command, tokens heading to the wrong host, prompt injections in what Claude reads (Claude gets a warning in its context, and sends and deletes need you for the rest of the session), attempts to remove this plugin's hook, encoded or indirect commands, and lookalike package names.
The log and per-session state live in ~/.countersign (set COUNTERSIGN_HOME to move them).
countersign-guard init # writes .countersign/policy.yaml for this project
Turn packs on or off and override single rules there. Shield protections can be switched off one by one:
shield:
snapshots: false # no copies before deletes
typosquat: false # don't ask about lookalike package names
The countersign skill in this plugin explains
the format, so you can also just ask Claude: "stop asking me about pushes to main".
The plugin runs the open-source Countersign engine (packages/guard and packages/core). Nothing
uses a model to decide. The same input always gets the same answer, and every rule is a line you can read.
It only ever narrows what Claude can do. When it allows a call it says nothing, so your own Claude Code permission settings still apply. If it hits an internal error, it asks you rather than letting the call through.
Not covered: a command can still do damage in ways no rule anticipates. Countersign makes the common, irreversible mistakes impossible or deliberate. It doesn't make an agent safe to run unattended.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub akshittiwarii/countersign --plugin countersignPlugins from other owners that cover similar ground