{"agent":"claude","input":"Add a --version flag to this Cobra CLI. Read go.mod, main.go, cmd/root.go, cmd/init.go, cmd/helpers.go, cmd/helpers_test.go, Makefile, .github/workflows/test.yml and README.md first. Add cmd/version.go with a package-level version variable settable through -ldflags -X, and a resolveVersion function that uses that variable, else Main.Version from runtime/debug.ReadBuildInfo, else devel; read only Main.Version so the Go 1.14 jobs in the workflow still compile. Set rootCmd.Version from it in init so Cobra adds --version and the -v shorthand, and set a version template that also prints runtime.Version(). Add -ldflags to the gox build in the Makefile. Write cmd/version_test.go that executes the root command with --version against a buffer and asserts the output prefix and a non-empty value. Run go build ./..., go vet ./..., gofmt -l and go test ./..., build the binary with and without the ldflags and run --version on both, and open a pull request that shows both outputs and explains the resolution order.","resources":[{"url":"https://github.com/your-org/your-app"}]}