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

Conan

$ conan Official Med Risk
JFrog / Conan · Code & DevOps · MIT · macos / linux / windows

Conan (conan) v2 is the leading cross-platform C/C++ package and binary artifact manager supporting CMake, Meson, and MSBuild toolchains. It provides --format=json across graph info, inspect, list, and search, plus lockfiles and --dry-run on cache cleanup.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install conan
CLI vs MCP Decision CLI Preferred vs MCP

conan resolves native ABI binary compatibility, builds C/C++ recipes, and generates CMake/Meson toolchain files 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 22 / 25

Conan v2 supports --format=json on graph info, inspect, list, search, and create, runs non-interactively by default, and offers --dry-run on remove.

  • conan graph info . --format=json and conan list --format=json emit rich structured JSON
  • Non-interactive execution without TTY prompts
Trust & Safety 20 / 25

Isolated ~/.conan2 cache and lockfiles (conan.lock), though conanfile.py recipes execute arbitrary Python and build systems when --build=missing triggers compilation.

  • --build=never prevents unexpected source compilation
  • conan remove --dry-run previews cache deletions
Setup & Portability 13 / 15

Installable via Homebrew, PyPI, pipx, uvx, and standalone bundles on macOS, Linux, and Windows, requiring host C/C++ compilers to build packages.

  • Cross-platform via brew install conan and pip install conan
Utility & Efficiency 13 / 15

Handles complex C/C++ ABI settings (OS, arch, compiler, stdlib) and prebuilt ConanCenter binaries cleanly.

  • Generates ready-to-use conan_toolchain.cmake and MesonToolchain
Maintenance & Lineage 8 / 10

Official conan-io/conan project backed by JFrog under MIT license.

  • Maintained by JFrog / Conan (conan-io/conan)
Docs & Verifiability 9 / 10

Comprehensive Conan 2 documentation at docs.conan.io/2/ and detailed --help.

  • Official Conan v2 command reference at docs.conan.io/2

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key
Credential Storage

ConanCenter reads require no auth; private Artifactory/Conan remote tokens are stored in ~/.conan2/credentials.json or CONAN_LOGIN_USERNAME / CONAN_PASSWORD env vars.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source CLI; free to use with ConanCenter or self-hosted remotes.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Conan (conan) Agent Rules
- Run `conan graph info . --format=json` to inspect resolved ABI profiles and licenses before installing.
- Use `--build=never` or `--build=missing` intentionally, and never run `conan upload` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect dependency graph and licenses as JSON
conan graph info . --format=json

Evaluates the C/C++ dependency graph for the active profile and emits full node metadata as JSON.

Query local cache or remote recipes as JSON
conan list "zlib/*" --format=json

Lists matching package recipes and binary revisions in structured JSON.

Controlled Writes & Previews

Install dependencies using existing profile without building missing
conan install . --output-folder=build --build=never

Fetches prebuilt binaries and generates toolchain files while failing fast instead of compiling missing sources.

Strengths for Agents

  • + Conan v2 provides --format=json across graph info, inspect, list, and search.
  • + Seamless toolchain integration with CMake, Meson, and MSBuild.
  • + --build=never and conan.lock keep binary dependency resolution deterministic.

Caveats & Pitfalls

  • ! First-time use requires generating a default host profile (conan profile detect).
  • ! Building missing C/C++ dependencies from source (--build=missing) can be slow and noisy.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI