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

moon

$ moon Official Low Risk
moonrepo · Code & DevOps · MIT · macos / linux / windows

moon is a polyglot monorepo task runner and build system written in Rust that models project graphs, dependency-aware task pipelines, and toolchain pins. Agents can inspect projects, tasks, and affected targets in JSON via moon query and execute deterministic builds with moon run and moon ci.

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

moon evaluates local workspace graphs, runs incremental task hashes, and executes repo commands directly; CLI invocations are faster and more reliable than an MCP wrapper.

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

Provides moon query projects --json, moon query tasks --json, moon query affected --json, --color=false, and CI-oriented moon ci.

  • moon query subcommands emit structured --json graphs
  • Supports NO_COLOR=1 and non-interactive CI execution
Trust & Safety 21 / 25

moon query inspects affected scopes safely before running tasks, and build caches live in .moon/cache/ unless remote caching is configured.

  • moon query affected --json previews impacted targets without executing side effects
Setup & Portability 14 / 15

Single Rust binary installable via Homebrew, @moonrepo/cli npm wrapper, or GitHub releases across macOS, Linux, and Windows.

  • Available via brew install moon and npm install -g @moonrepo/cli
Utility & Efficiency 14 / 15

Content-hashed incremental caching and affected-target filtering dramatically shorten monorepo test and lint loops.

  • Fine-grained task graph hashing skips unchanged packages
Maintenance & Lineage 9 / 10

Actively maintained by moonrepo (moonrepo/moon) under MIT license with frequent releases.

  • Official moonrepo/moon repository under MIT license
Docs & Verifiability 9 / 10

Well-structured documentation at moonrepo.dev/docs covering CLI flags, YAML schemas, and CI recipes.

  • Comprehensive CLI and workspace config docs at moonrepo.dev/docs

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Local execution needs no auth; optional remote caching (unstable_remote / Bazel REAPI) reads tokens from environment variables or .moon/workspace.yml.

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

MIT open-source CLI; free to use locally, with optional self-hosted or third-party remote cache storage.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# moon Agent Rules
- Query `moon query projects --json` or `moon query tasks --json` before guessing task names.
- Use `moon query affected --json` to scope checks and pass `--color=false` or `NO_COLOR=1` in automation.

Agent-Ready Command Recipes

Safe Read-Only Queries

Query all monorepo projects as JSON
moon query projects --json

Returns every configured project, root path, language, and dependency edges in structured JSON.

Inspect affected tasks against base branch
moon query affected --json

Lists tasks impacted by current git changes without running them.

Controlled Writes & Previews

Run tests only for affected projects
moon ci :test --color=false

Executes affected :test targets deterministically with ANSI colors disabled for clean agent logs.

Strengths for Agents

  • + moon query projects --json and moon query affected --json give agents exact monorepo topology before running tasks.
  • + Content-hashed caching and moon ci minimize redundant test runs across large repositories.
  • + Single Rust binary works across Node, Rust, Python, Go, and polyglot workspaces.

Caveats & Pitfalls

  • ! Requires .moon/workspace.yml and moon.yml project configuration to unlock graph features.
  • ! Task execution stdout from underlying tools remains unstructured text.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI