Authoring Commands
Commands are executable files located at:
.dwp/command/<state>When dwp-state: <state> appears in the latest commit trailer, AYNIG executes the matching command.
Example
Create a command review:
cat > .dwp/command/review <<'EOF'#!/usr/bin/env bashset -euo pipefail
echo "Review requested: $AYNIG_BODY"EOF
chmod +x .dwp/command/reviewTips
- Commands run with the working directory set to the worktree.
- Keep commands idempotent when possible.
- Commands should emit a new commit advancing the workflow by setting a new
dwp-state. - Honor
AYNIG_LOG_LEVELif your command supports verbosity.