Protocol Buffers Compiler
$ protoc Official Low RiskGoogle's official .proto IDL compiler (protoc) supporting multi-language code generation via built-in generators and external --*_out plugins. Supports --descriptor_set_out to validate schemas without generating source files, though diagnostics are plain text and -I include path errors are common.
brew install protobuf Local schema compiler generating language stubs directly into repository source trees.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive and deterministic, but has no JSON diagnostic format, no native --dry-run, and sensitive -I import path semantics.
- Plain-text stderr diagnostics only
- Descriptor validation workaround via
--descriptor_set_out=/dev/null
Local schema compilation only, though --*_out invokes external protoc-gen-* plugin binaries discovered on PATH.
- Zero network/auth exposure; explicit output directories
protoc itself installs cleanly via brew or GitHub releases, though language-specific plugins (protoc-gen-go, etc.) must be installed separately.
- Core binary portable across OSes; plugins managed per ecosystem
Canonical protobuf compiler, though teams increasingly wrap complex -I and plugin flags with buf.
- Required underlying compiler for protobuf IDL ecosystems
First-party Google tool maintained in protocolbuffers/protobuf under BSD-3-Clause.
- Official Google
protocolbuffers/protobufrepository
Well-documented proto3/edition specifications at protobuf.dev and clear --help.
- Official documentation at protobuf.dev
Security, Auth & Guardrails
No authentication required; operates strictly on local .proto files and plugin binaries on PATH.
BSD-3-Clause open-source compiler; completely free.
# Protocol Buffers Compiler (protoc) Agent Rules - Validate edits with `--descriptor_set_out=/dev/null` before overwriting generated code directories. - Always pass explicit `-I <root>` include paths and verify plugin binaries (`protoc-gen-*`) exist on `PATH`.
Agent-Ready Command Recipes
Safe Read-Only Queries
protoc -I proto --descriptor_set_out=/dev/null proto/service.proto
Parses and validates .proto imports and types without writing any generated source files.
protoc --version
Reports the libprotoc version so agents can verify proto3/edition compatibility.
Controlled Writes & Previews
protoc -I proto --python_out=gen/python proto/service.proto
Generates Python protobuf bindings from proto/service.proto into gen/python.
Strengths for Agents
- + Canonical schema compiler supporting every major backend language via plugins.
- +
--descriptor_set_out=/dev/nullenables clean syntax validation without emitting generated files.
Caveats & Pitfalls
- ! No JSON diagnostic output and
-Iproto-path mismatches produce terse errors. - ! Requires separate installation and version alignment of
protoc-gen-*plugins per target language.