---
id: code-safety
track: coding
version: 0.0.6
label: advisory
keyword: advise
where: text
sha256: 1868e3551fc614df5bd56dac4d1710f05c65e1c37c3a0cd4fcc745d758ff8d13
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/code-safety
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# Code Safety

code-safety · version 0.0.6

Advisory — Advisory only. It is skill text, and nothing stops a violation. 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

Trigger: secrets, eval/exec, unsanitized SQL, hallucinated dependencies. avoid: committing credentials, adding unverified packages, executing dynamic code. Install scan-secrets (commit, agent write) for secrets and verify-dependency-exists (opt-in; needs an allowlist) for dependencies. Advisory: eval/exec and SQL guidance; a gate decides only the non-literal slice (agentic-code-security code pack: Python eval/exec, SQL built from strings in Python and JS).

## Its label on each agent

- Claude Code (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=claude-code&p=code-safety
- Cursor (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=cursor&p=code-safety
- Codex (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=codex&p=code-safety
- GitHub Copilot (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=copilot&p=code-safety
- Devin (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=devin&p=code-safety
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=code-safety
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=code-safety
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=code-safety
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=code-safety
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=code-safety
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=code-safety

## What it misses

This policy does not state what it misses.

## Latest change

0.0.6 · 2026-11-09 — Changelog order only (IR-F46): entries had been added at the top of a list that ran oldest-first, so it rose and fell by version; they now run oldest-first throughout. No entry's text or version, and no rule, guard or eval, changed. Patch bump because the manifest is part of the published pack hash.

## Provenance

- Tested by 0 of 4 cases run automatically
- SHA-256: `1868e3551fc614df5bd56dac4d1710f05c65e1c37c3a0cd4fcc745d758ff8d13`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/code-safety (catalog path `base/code-safety`)
- Presets: Safety guidance
- JSON: `/api/coding/policies/code-safety.json`
- Report a problem: https://chock.sh/report/?policy=code-safety&version=0.0.6&page=%2Fcoding%2Fpolicies%2Fcode-safety%2F
