Terraspin / 2026 Filed under Infrastructure · Automation Open Source · MIT Docs EN
Download Star

Project Structure

- `main.go` — analyze command: plan parsing, scoring, AI narrative, formatting, `--fail-on` gate, CI posting, Slack notifications

cmd/terraspin/ CLI entry points (main, serve, diff) internal/ ai/ LLM providers (Claude, OpenAI, Ollama) + preprocessing analyzer/ Risk scorer + blast radius dependency graph config/ .terraspin.yml loading + rule evaluation diff/ Environment diff comparison formatter/ Output formatting (text, JSON, markdown) integrations/ GitHub PR comments, GitLab MR notes, Slack webhooks, MCP server parser/ Terraform plan JSON → PlanAST testdata/ Terraform plan fixtures for testing

Entry points (cmd/terraspin/)

Internal packages

parser

ai

analyzer

config

formatter

integrations

diff

Test fixtures (testdata/)

Config files

FilePurpose
go.modGo module (1.24). Deps: mcp-go, yaml.v3
shell.nixNix dev shell with full tooling
.env.exampleEnvironment variable template
.gitignoreGo build artifacts, .env
Documentation
On this page