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
| Variable | Description |
|---|---|
PIPELINES_HOOK_AI_SUMMARY_MODEL | claude-sonnet-5 on anthropic, anthropic/claude-sonnet-5 on openrouter. |
PIPELINES_HOOK_AI_SUMMARY_API_KEY | API key. |
Optional
| Variable | Description |
|---|---|
PIPELINES_HOOK_AI_SUMMARY_PROVIDER | Who serves the model. One of anthropic, openrouter. Defaults to anthropic. |
PIPELINES_HOOK_AI_SUMMARY_MAX_OUTPUT_TOKENS | Most tokens the model may write in its answer. Defaults to 1500. |
PIPELINES_HOOK_AI_SUMMARY_LOG_LEVEL | Log verbosity. A more verbose PIPELINES_LOG_LEVEL overrides it. One of trace, debug, info, warning, error, fatal, panic. Defaults to info. |
Related documentation
- Gruntwork Provided Hooks - version pinning and configuration common to every provided hook.
- Configuring Hooks - the full set of hook fields.
- Authentication & Secrets - giving a hook cloud credentials.