markgate: Mechanically Catch Coding Agent Slip-ups and Enforce Non-Command Tasks
说明与用途
markgate 通过与 Coding Agent 工作流集成,防止重复检查并强制执行非命令任务。
问题
Coding Agents can forget to run required verification skills or perform non-command tasks, leading to commits without necessary checks and duplicate execution of checks by hooks.
结果
markgate eliminates duplicate verification runs and enforces LLM-based tasks by recording and comparing markers, improving reliability of CI checks without slowing development cycles.
工作流
- 1. Wrap the verification command in the skill with
markgate run -- <command>. 2. In the pre-commit hook, replace the command withmarkgate run -- <command>. 3. For non-command tasks, addmarkgate setat the end of the skill that performs the check. 4. In the hook, callmarkgate verify || { echo 'run /check-docs' >&2; exit 1; }to enforce the task.
证据
markgate keeps both the /check skill and the hook in place, and makes it so that the hook fires only when the Coding Agent forgets /check
In practice, there are also tasks that can't be reduced to a command. For example, "is the documentation consistent with src?"
markgate set records the moment the check passed as a marker
- 记录日期: 2026-11-02T10:14:12.711Z