---
id: agent-devenv-autoexec
track: coding
version: 0.0.3
label: warns
keyword: warn
where: write turn-end
sha256: 80cd6d3873750a9d759d58441d30e9935963071a53ca244df8f75cc702f7bdf7
source: https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/agent-devenv-autoexec
catalog_ref: 1e60d211c1bb767152c6ab0167932da06ab3a10f
---

# Flag Dev Tools That Run Code on Open

agent-devenv-autoexec · version 0.0.3

Warns — Warns on an agent's file writes and at turn end. Chock adds friction. It is not a security boundary. 

In a git repo: advisory (The agent reads the text, and nothing stops a violation.)



## 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.

## Its label on each agent

- Claude Code (tested): Warns — Warns on an agent's file writes and at turn end. Builder: /coding/builder/#client=claude-code&p=agent-devenv-autoexec
- Cursor (tested): Warns — Warns on an agent's file writes and at turn end. Builder: /coding/builder/#client=cursor&p=agent-devenv-autoexec
- Codex (tested): Warns — Warns 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). Builder: /coding/builder/#client=codex&p=agent-devenv-autoexec
- GitHub Copilot (tested): Warns — Warns 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). Builder: /coding/builder/#client=copilot&p=agent-devenv-autoexec
- Devin (tested): Warns — Warns 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). Builder: /coding/builder/#client=devin&p=agent-devenv-autoexec
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=agent-devenv-autoexec
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=agent-devenv-autoexec
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=agent-devenv-autoexec
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=agent-devenv-autoexec
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=agent-devenv-autoexec
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=agent-devenv-autoexec

## What it misses

This policy does not state what it misses.

## Examples

- 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.

## Latest change

0.0.3 · 2026-10-27 — Title wording only (IR-F40): "Agent Devenv Autoexec" is now "Flag Dev Tools That Run Code on Open". The id, guard and tests are unchanged.

## Provenance

- Tested by 50 of 50 cases run automatically
- SHA-256: `80cd6d3873750a9d759d58441d30e9935963071a53ca244df8f75cc702f7bdf7`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/1e60d211c1bb767152c6ab0167932da06ab3a10f
- Source: https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/agent-devenv-autoexec (catalog path `base/agent-devenv-autoexec`)
- Presets: Agent configuration
- JSON: `/api/coding/policies/agent-devenv-autoexec.json`
- Report a problem: https://chock.sh/report/?policy=agent-devenv-autoexec&version=0.0.3&page=%2Fcoding%2Fpolicies%2Fagent-devenv-autoexec%2F
