Skip to content

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 hash
  • AYNIG_LOG_LEVEL — resolved log level for the run/branch
  • AYNIG_ROLE — selects .dwp/roles/<role>/command when set

Precedence: --log-level > dwp-log-level trailer > AYNIG_LOG_LEVEL env.

Trailers are also exposed as environment variables:

  • trailer key foo: barAYNIG_TRAILER_FOO=bar
  • trailer key baz: quxAYNIG_TRAILER_BAZ=qux

Implementation note: keys are uppercased and normalized for shells.