npx claudepluginhub grafana/wiresmithGuidance for migrating Go repositories from gogoproto to wiresmith. Ships the wiresmith-migrator agent alongside the compiler so its migration knowledge stays in sync with the generator.
Custom protobuf compiler that generates high-performance Go code from .proto files, originally built for OpenTelemetry and observability workloads. Built on google.golang.org/protobuf/encoding/protowire and reverse-write marshaling.
Beta. Generated code and the CLI now follow protoc/buf conventions (proto_path-relative import keying, official-runtime registration with a documented no_registration opt-out), and the custom options schema is published on the Buf Schema Registry as buf.build/grafana/wiresmith. The compiler is exercised by four production-scale migrations — Mimir, Tempo, and Loki (draft PRs) plus a Prometheus fork PR — all building and CI-green against their pinned wiresmith versions. Breaking changes are no longer expected as routine; future ones will be deliberate and called out.
The official Go protobuf runtime marshals via reflection, which is slow at scale. wiresmith takes a different approach: value-type structs with generated, reflection-free marshal/unmarshal code. Message fields are values (Resource Resource, not *Resource), so there are fewer allocations and better cache locality, and pre-scan pre-allocation removes the slice-growth penalty value types would otherwise pay.
On a full trace payload (100 spans, Apple M4 Pro) wiresmith marshals in 6.4 µs/op and unmarshals in 33.4 µs/op — vs ~7.7 / ~37 µs for vtproto/gogoproto and 46 / 70 µs for the official runtime — using 30–40% less memory on unmarshal (2026-05-22 numbers; reproduce with make bench-compare).
See docs/overview.md for the performance advantages and the full list of supported proto3 features.
go install github.com/grafana/wiresmith/cmd/wiresmith@latest
Or build from a checkout:
git clone https://github.com/grafana/wiresmith.git
cd wiresmith
go build -o wiresmith ./cmd/wiresmith
./wiresmith --proto_path=proto --out=gen --module=github.com/your/module
--proto_path walks the .proto tree, --out is the destination for generated .pb.go files (source-relative under that root), and --module is the Go module prefix used in cross-file imports. Passing one or more .proto paths as positional arguments scopes emission to just those files and their transitive imports. See docs/cli.md for the full reference, and docs/buf.md to run it as a protoc / buf plugin.
Inside the repo, the Makefile is the canonical entry point: make generate, make build, make test, make bench. See Makefile for all targets.
This repo doubles as a Claude Code plugin marketplace (.claude-plugin/), shipping the wiresmith-migrator agent: guidance for migrating a Go repository from gogoproto-generated code to wiresmith, kept in sync with the compiler as it evolves. See agents/wiresmith-migrator.md.
protoc / buf plugin7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.