Skip to main content

AI Summary

Latest release ai-summary 0.2.1

Summarize the terragrunt run's plan output with an AI model

Usage

repository {
after_hook "ai-summary" {
commands = ["plan"]
execute = ["pipelines", "hook", "ai-summary@v0.2"]

env {
PIPELINES_HOOK_AI_SUMMARY_MODEL = "<REQUIRED>"
}
}
}

PIPELINES_HOOK_AI_SUMMARY_API_KEY is a secret. Supply it from execute, as Authentication & Secrets describes.

Inputs

Configure inputs in the hook's env block.

Required

VariableDescription
PIPELINES_HOOK_AI_SUMMARY_MODELclaude-sonnet-5 on anthropic, anthropic/claude-sonnet-5 on openrouter.
PIPELINES_HOOK_AI_SUMMARY_API_KEYAPI key.

Optional

VariableDescription
PIPELINES_HOOK_AI_SUMMARY_PROVIDERWho serves the model. One of anthropic, openrouter. Defaults to anthropic.
PIPELINES_HOOK_AI_SUMMARY_MAX_OUTPUT_TOKENSMost tokens the model may write in its answer. Defaults to 1500.
PIPELINES_HOOK_AI_SUMMARY_LOG_LEVELLog verbosity. A more verbose PIPELINES_LOG_LEVEL overrides it. One of trace, debug, info, warning, error, fatal, panic. Defaults to info.