Skip to content

Add an adapter for a coding agent we do not support yet #11

Closed

Description

@jothimani-rajendran

What

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:

  1. 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.
  2. 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.
  3. docs/adapters/<agent>.md — follow any existing file; docs/adapters/tabnine.md is a short one.

Then:

python -m pytest -q
chock check --repo .
ruff check . && ruff format --check .

Why this is a good first issue

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

  1. added
    enhancement
    good first issue
    roadmap
    on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions