Sapling
$ sl Official Med RiskMeta's scalable distributed source control CLI (sl) built to handle massive monorepos and stacked commit workflows, with Git repository compatibility. Supports machine-readable -T json templates and --noninteractive execution alongside visual smartlog navigation.
brew install sapling Core VCS CLI; direct sl commands with -T json are far leaner than exposing VCS operations over MCP.
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
Inherits Mercurial's -T json template engine, revset queries, and --noninteractive flag, though default smartlog/status outputs use Unicode tree art.
-T jsonprovides structured JSON acrossstatusandlog--noninteractiveprevents blocking prompts
Full VCS mutation capabilities (rebase, hide, push) with undo/smartlog safety, but lacks a universal --dry-run flag across write subcommands.
- Supports
sl undofor local history mistakes, but mutates remote/local stacks
Distributed for macOS, Linux, and Windows, though binary footprint is larger and fewer CI images preinstall sl compared to git.
- Available via Homebrew and releases, less ubiquitous than
git
Excellent revsets and stacked-commit ergonomics for large monorepos.
- Revset filtering (
draft(),ancestors()) reduces log inspection scope
Official Meta open-source project (meta/sapling) actively developed for monorepo scale.
- First-party Meta engineering tool
Well-organized documentation at sapling-scm.com and built-in sl help topics.
- Official docs and
sl help -v <cmd>reference
Security, Auth & Guardrails
Reads Git/SSH credentials and .sl/config or ~/.config/sapling/sapling.conf settings.
GPL-2.0 open-source CLI by Meta; free to use.
# Sapling (sl) Agent Rules - Always pass `--noninteractive` and `-T json` on read commands (`sl status`, `sl log`). - Avoid interactive commands like `sl commit -i` or `sl histedit` without explicit user oversight. - Pass `-m` on `sl commit` / `sl amend` so an editor is never launched.
Agent-Ready Command Recipes
Safe Read-Only Queries
sl status -T json --noninteractive
Returns modified, added, removed, and untracked files in structured JSON without prompting.
sl log -r 'draft()' -T json --noninteractive
Lists draft commits in the local stack using revsets and JSON templating.
Controlled Writes & Previews
sl commit -m "feat: update module" --noninteractive
Creates a commit non-interactively without opening an editor.
Strengths for Agents
- +
-T jsonplus revset expressions (draft(),stack()) let agents query exact commit stacks without regex parsing. - +
--noninteractiveandsl undomake headless commit workflows safer.
Caveats & Pitfalls
- ! Most coding agents default to
gitconventions; runningslrequires repo-specific agent rules. - ! Interactive modes (
sl commit -i,sl isl) and editors will block unless--noninteractiveand-mare provided.