Skip to main content

AI Summary

Latest release ai-summary 0.3.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.3"]

env {
PIPELINES_HOOK_AI_SUMMARY_PROVIDER = "<REQUIRED>"
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_PROVIDERWho serves the model. One of anthropic, openrouter.
PIPELINES_HOOK_AI_SUMMARY_MODELFor example: 'claude-sonnet-5' on anthropic, 'anthropic/claude-sonnet-5' on openrouter.
PIPELINES_HOOK_AI_SUMMARY_API_KEYAPI key for the chosen provider.

Optional

VariableDescription
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.