You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an adapter for a coding agent we do not support yet #11
Chock compiles one policy to 13 agents (claude, cursor, copilot, windsurf, devin, codex, grok, kimi-code, aider, gemini, replit, tabnine, vscode). The adapters exist only because agents look for different filenames — the rules themselves live in one place.
Agents not covered, all of which read a project instruction file: Zed, Cline, Continue, Roo Code, Amp, Antigravity CLI.
One agent per PR.
How
Three touchpoints, all small:
src/chock/scaffold/adapters.py — add "<agent>": ["<filename>.md"]. This is the file the agent actually reads; check its docs rather than guessing, and link the source in your PR.
src/chock/compile/surfaces.py — add an entry to SURFACE_AGENTS declaring which surfaces the agent supports. Read this one carefully. Most agents get {AMBIENT_RULE, GIT_HOOK, CI_GATE}. Only claim PRE_TOOL_USE if the agent has a real pre-execution hook API — that value makes the coverage report say enforced, and claiming it without a mechanism is the one thing this project treats as a defect rather than a bug.
docs/adapters/<agent>.md — follow any existing file; docs/adapters/tabnine.md is a short one.
Mechanical, well-templated, and touches the honesty rule at exactly one point — the SURFACE_AGENTS entry — so it is a small change that teaches the thing the codebase most cares about. If you are unsure which surfaces an agent supports, put your reasoning in the PR and we will work it out; claiming less than the truth is always the safe direction here.
Activity