markgate: Mechanically Catch Coding Agent Slip-ups and Enforce Non-Command Tasks
Описание и применение
markgate предотвращает дублирование проверок и обеспечивает выполнение задач, не сводимых к командам, в репозитории Git, интегрируя их в цикл работы 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