Skip to content

Authoring Commands

Commands are executable files in .aynig/command/<state>.

Example:

#!/usr/bin/env bash
set -euo pipefail
echo "Review requested: $AYNIG_BODY"

Make the file executable:

Terminal window
chmod +x .aynig/command/review

Tips:

  • Commands run with the working directory set to the worktree
  • Keep commands idempotent when possible
  • Emit a new commit with the next aynig-state