Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Protocol Buffers Compiler

$ protoc Official Low Risk
Google · Code & DevOps · BSD-3-Clause · macos / linux / windows

Google'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.

FCRS-1.0 Score
77 /100
Good
Medium Confidence
Zero-Friction Install
brew install protobuf
CLI vs MCP Decision CLI Only

Local schema compiler generating language stubs directly into repository source trees.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

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
Trust & Safety 20 / 25

Local schema compilation only, though --*_out invokes external protoc-gen-* plugin binaries discovered on PATH.

  • Zero network/auth exposure; explicit output directories
Setup & Portability 12 / 15

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
Utility & Efficiency 12 / 15

Canonical protobuf compiler, though teams increasingly wrap complex -I and plugin flags with buf.

  • Required underlying compiler for protobuf IDL ecosystems
Maintenance & Lineage 10 / 10

First-party Google tool maintained in protocolbuffers/protobuf under BSD-3-Clause.

  • Official Google protocolbuffers/protobuf repository
Docs & Verifiability 8 / 10

Well-documented proto3/edition specifications at protobuf.dev and clear --help.

  • Official documentation at protobuf.dev

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; operates strictly on local .proto files and plugin binaries on PATH.

Side Effects
Read-Only Local Write
Cost & Quotas

BSD-3-Clause open-source compiler; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Validate .proto syntax into /dev/null descriptor set
protoc -I proto --descriptor_set_out=/dev/null proto/service.proto

Parses and validates .proto imports and types without writing any generated source files.

Check installed protoc version
protoc --version

Reports the libprotoc version so agents can verify proto3/edition compatibility.

Controlled Writes & Previews

Generate Python stubs into an explicit directory
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/null enables clean syntax validation without emitting generated files.

Caveats & Pitfalls

  • ! No JSON diagnostic output and -I proto-path mismatches produce terse errors.
  • ! Requires separate installation and version alignment of protoc-gen-* plugins per target language.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI