Swift edition
mutastic gate check
Say whether a gated task is done: its changed lines' mutants caught. Runs the tests and the mutants on the lines changed since gate open: the tests run even with no mutant on those lines, and only a task that changed nothing skips them. The task is done when the tests pass, each mutant is caught or proposed for a person to ignore, no ignore was made by the task, and no test was taken away or ignored; until then it says what's left, as the agent format does. With --hook it answers as the agent's hook, and lets the agent stop, saying what's left, when it changed nothing since it was sent back, or after --tries.
Usage
mutastic gate check [DIR]A coding agent's hooks run it as the command: the build plugins don't.
Exit status
0 when the task is done, 1 when it isn't, 2 when no task is open. With --hook, 0 either way: the answer is what it prints, a block or a message, as the agent's hooks read it, and with nothing open the agent may stop. Any command exits 2 when mutastic couldn't run: see exit codes.
Options
--operators=OPERATORS
Which operators run: a set (defaults, stronger, extended or all), an operator's id or namespace, or any with - in front to leave it out, in place of mutastic.yaml's operators; defaults unless set.
| Command line | --operators=OPERATORS |
|---|
--hook=AGENT
Run as the agent's hook: read its input on stdin, and answer as its hooks do.
One of claude
| Command line | --hook=AGENT |
|---|
--tries=N
With --hook, how many times check sends the agent back before it lets it stop and says what's left, from 1 to 100; 3 unless set.
| Command line | --tries=N |
|---|