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

Meson

$ meson Community Low Risk
Meson · Code & DevOps · Apache-2.0 · macos / linux / windows

Meson (meson) configures native projects using readable meson.build files, compiles via Ninja, and ships a built-in test runner (meson test). Its meson introspect subcommand exposes targets, build options, dependencies, and tests as clean JSON.

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

meson configures local C/C++/Rust build directories, drives Ninja compilation, and runs unit tests locally on disk.

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 21 / 25

Provides meson introspect JSON output across targets, tests, buildoptions, and dependencies, plus meson install --dry-run and meson test --print-errorlogs.

  • meson introspect --targets --tests returns structured JSON
  • meson install --dry-run previews install mutations
Trust & Safety 20 / 25

Enforces out-of-source build directories (refusing in-source pollution) and offers --dry-run on meson install.

  • Out-of-source build directories keep source trees clean
Setup & Portability 13 / 15

Installable via Homebrew, PyPI, pipx, uvx, and MSI installers across macOS, Linux, and Windows, requiring Python and ninja.

  • Cross-platform Python CLI paired with ninja
Utility & Efficiency 13 / 15

Clean setup -> compile -> test workflow with automatic Ninja backend and --print-errorlogs noise reduction.

  • Built-in meson test --print-errorlogs and meson format
Maintenance & Lineage 8 / 10

Mature community project (mesonbuild/meson) under Apache-2.0 license, standard across GNOME, Mesa, systemd, and QEMU.

  • Active mesonbuild/meson repository under Apache-2.0
Docs & Verifiability 9 / 10

Well-structured command and introspection docs at mesonbuild.com.

  • Official docs at mesonbuild.com/Commands.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; build state and WrapDB downloads live inside the configured build directory and subprojects/.

Side Effects
Read-Only Local Write
Cost & Quotas

Apache-2.0 open-source CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Meson (meson) Agent Rules
- Always configure out-of-source (`meson setup builddir`) and inspect targets via `meson introspect builddir --targets`.
- Run `meson test -C builddir --print-errorlogs` to avoid noisy passing-test logs.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect configured build targets as JSON
meson introspect builddir --targets --indent

Dumps all executables, libraries, and output paths in structured JSON.

List project tests as JSON
meson introspect builddir --tests --indent

Exports all registered meson test suites and commands in JSON.

Controlled Writes & Previews

Compile and run tests with failure logs only
meson test -C builddir --print-errorlogs

Rebuilds stale targets and runs tests while printing logs only for failing cases.

Strengths for Agents

  • + meson introspect gives agents complete JSON visibility into targets, tests, and build options.
  • + Enforces out-of-source builds by default and supports meson install --dry-run.
  • + meson test --print-errorlogs surfaces only failing test logs cleanly.

Caveats & Pitfalls

  • ! Requires both Python and ninja (plus host C/C++ compilers) to configure and build.
  • ! meson setup and meson compile emit plain text rather than JSON.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI