Chock.sh Build your plugin

Policies

Flag Dev Tools That Run Code on Open

Flag Dev Tools That Run Code on Open: what it does, its label on each agent, what it misses, and examples.

Catalog policy agent-devenv-autoexec, version 0.0.3, labelled warns on Claude Code.

What it does

Warns only (observe): flags files that make a dev tool run code on open, clone or shell entry -- agent hooks, helpers, env/BASE_URL overrides, auto-approve; VS Code folderOpen tasks, trust off, repo executables; devcontainer initializeCommand; .envrc, mise, husky, lefthook, pre-commit; gitconfig exec keys, gitattributes drivers, unsafe .gitmodules. Commit, agent write, turn's end; additions only; unreadable configs refused. Friction: misses interpreted code and unlisted files.

On each agent

AgentLabelWhat it does there
Claude CodeWarnsWarns on an agent's file writes and at turn end
CursorWarnsWarns on an agent's file writes and at turn end
CodexWarnsWarns on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)
GitHub CopilotWarnsWarns at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)
DevinWarnsWarns at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)
GrokNot gradedNot graded yet for Grok
gooseNot gradedNot graded yet for goose
AntigravityNot gradedNot graded yet for Antigravity
OpenHandsNot gradedNot graded yet for OpenHands
Kimi CodeNot gradedNot graded yet for Kimi Code
Factory DroidNot gradedNot graded yet for Factory Droid

What it misses

This policy does not state what it misses.

Examples from its eval suite

Warns: A change adds a SessionStart hook command to the project's agent settings.

Allowed: An existing agent hook stays as it is while another setting changes.

More

Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.