Environment Variables
AYNIG exposes commit metadata to commands via environment variables.
Common variables:
AYNIG_BODY— the commit message body (prompt)AYNIG_COMMIT_HASH— the triggering commit hashAYNIG_LOG_LEVEL— resolved log level for the run/branchAYNIG_ROLE— selects.dwp/roles/<role>/commandwhen set
Precedence: --log-level > dwp-log-level trailer > AYNIG_LOG_LEVEL env.
Trailers are also exposed as environment variables:
- trailer key
foo: bar→AYNIG_TRAILER_FOO=bar - trailer key
baz: qux→AYNIG_TRAILER_BAZ=qux
Implementation note: keys are uppercased and normalized for shells.