sluice
Verify each git tree once. A stack-agnostic verification queue and cache for parallel coding agents: bounded concurrency, per-tree result cache, request coalescing, CLI for git hooks and an MCP server for agents. Rust.
Install / Use
claude mcp add josegarridodigio -- npx -y github:josegarridodigio/sluiceIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of sluice
sluice scores 79/100 on our quality scale, 2542nd of 2,863 Automation skills we index.
Its MCP Server is 9.2 KB long, well organised into 8 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated yesterday, so sluice is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
sluice compared with similar skills
All 4 of these similar skills score higher than sluice; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| sluice (this skill)by josegarridodigio | 79 | 3 | 1d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.4k | 5d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 90.4k | today | MCP Server |
Frequently asked questions
- How do I install sluice?
- Run
claude mcp add josegarridodigio -- npx -y github:josegarridodigio/sluice. The install tabs above show the steps for each supported agent. - Which AI agents does sluice work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is sluice safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is sluice still maintained?
- The repository was last updated yesterday, so sluice is actively maintained.
Skill content
View source on GitHub
Six requests for the same tree: one run, five coalesced, and a repeat served from the cache.
Sluice runs each gate (tests, linters, type checks) once per git tree, under a
global concurrency budget, and caches the result. Git hooks call sluice run;
coding agents call the MCP server started by sluice mcp.
Why
You run four coding agents on the same project, each in its own git worktree,
and every one of them triggers the same pre-commit and pre-push checks.
Four copies of the full suite run at once and the machine stops answering.
Most of those runs verify a tree that already passed: the agent ran it, then
pre-commit, then pre-push, then again after a no-op rebase. Hooks live in
the shared .git/hooks, so nothing coordinates the worktrees. And an agent's
shell tool has a timeout, so a hook that waits in a queue inside git commit
makes the agent move on without the result. Sluice bounds the concurrency,
removes the redundancy and never leaves an agent hanging.
Features
- Per-tree cache. The key is the exact content of the working tree plus the gate definition, shared by every worktree. Hits return in milliseconds and never need the daemon.
- Daemon with budget and coalescing. A per-user daemon runs gates under a weighted budget; identical simultaneous requests share one run.
- PSI and memory admission. New work is held while the machine is under real pressure (Linux PSI), and a gate starts only when the memory it is expected to use (learned from its earlier runs) fits what is free.
- Git hooks for Husky, lefthook, pre-commit/prek and plain
.githooks/, failing fast inside agents instead of hanging. - Hooks entry point (optional).
sluice hooks onmakes Sluice the hooks entry point of one clone, without editing the repository, for hook files you cannot rewire. Hooks Sluice understands completely run their commands through the queue and the cache; every other hook runs as before. See Git hooks. - MCP tools and an agent plugin.
sluice mcpgives agents a blockingverifytool; the agent plugin adds a skill, a guard hook and a session hook that puts shell shims in the agent'sPATHand hands it the rules. Install it and nothing else. sluice execand queue-only gates put any command (docker build,make) under the same budget, without cache.- Path-scoped gates key on part of the tree, so unrelated changes keep the cached pass.
- Local merge queue. Agents enqueue committed branches; a human approves
one atomic landing. The train's worktree can be prepared (
[queue] prepare, for example a dependency install) before its gates run. sluice doctorandsluice updatecheck the installation (with a redacted bug-report bundle) and upgrade in place.
Install
Linux only, with git 2.31 or newer in PATH. Prebuilt static binaries for
x86_64 and aarch64 are on the
releases page.
curl -fsSL https://raw.githubusercontent.com/josegarridodigio/sluice/main/scripts/install.sh | sh
This installs the latest release into ~/.local/bin (SLUICE_VERSION pins a
tag, SLUICE_INSTALL_DIR relocates). Later, sluice update upgrades in place,
checksum-verified. From source, with a stable Rust toolchain:
cargo install --path crates/sluice-gate
The crate is sluice-gate because sluice is taken on crates.io; the binary
is sluice.
Quick start
-
Install the binary (above).
-
Install the agent plugin, in Claude Code (with
sluicein yourPATH):/plugin marketplace add josegarridodigio/sluice /plugin install sluice@sluice -
Run
sluice initin each repository (or let the agent propose it):sluice init --dry-run # detects the stack and your hooks; shows, writes nothing sluice init # writes .sluice.toml, rewires your hooksIf the hook files cannot be edited (a hook manager or a teammate owns them),
sluice init --hooks entryleaves them alone and makes Sluice the hooks entry point of your clone instead (Git hooks).
That is all: no PATH edit, no CLAUDE.md, no user config. From then on a
commit runs sluice run on a cache miss, and sluice status shows the
daemon, budget, queue and totals. Agents other than Claude Code use the MCP
server and, if they only have a shell, sluice shim install
(agents).
A gate is a named shell command in .sluice.toml:
version = 1
[gates.test]
cmd = "npm test -- --maxWorkers=2"
weight = 4
hooks = ["pre-commit", "pre-push"]
Run sluice run test twice on the same tree and the second call returns from
the cache. Recipes for Node, Python, Rust, Go, Docker and monorepos are in the
gates cookbook.
Documentation
| Document | What it covers |
|---|---|
| How it works | Architecture, cache key, scheduling, what to know before trusting a hit, prior art |
| Git hooks | The hooks entry point (sluice hooks on): what runs through the queue and the cache, what is left to the hook manager, limits |
| CLI reference | Every command with its full --help, exit codes, environment variables |
| Configuration | Every field of .sluice.toml and the user config, with defaults |
| Gates cookbook | Ready-to-adapt gate files per stack |
| Agents | Using Sluice from coding agents; the Claude Code plugin |
| Merge queue | Handing agents' branches to a local queue and landing them |
| Debugging | Logs, debug levels, sluice doctor --bundle |
| Compatibility | What stays stable across releases: cache, config format, protocol, upgrades and downgrades |
| CHANGELOG | What changed in each release |
| Design knowledge base | The plan, the architecture and one ADR per decision |
Status and limitations
Sluice is alpha: complete enough for early adopters, not yet proven by long use. The gaps you will hit first:
- Linux only, git 2.31 or newer; other platforms are not planned.
- Verdicts, not artifacts. A hit says a gate passed on this tree; it does not restore build outputs.
- Queueing covers declared gates,
sluice execand the heavy command list. In agent sessions the plugin's guard and shims queue the heavy commands; a command run by absolute path, underenv -ior from a shell that resetsPATHbypasses the queue. Since 0.5.0 such commands are still contained (cgroups) when containment is available, and your forge's branch protection remains the enforcement for what lands. - Containment needs cgroup v2 and a systemd user manager. CPU weights
need systemd 252 or newer (or an administrator's drop-in); the memory
policy needs
systemd-oomdand systemd 257 or newer, otherwise the agents' memory is only accounted (gate jobs are still admitted by memory and are the kernel's preferred OOM victims; the opt-in[admission] memory_guardcovers machines withoutsystemd-oomd). In containers, on cgroup v1 or without a user manager Sluice runs uncontained andsluice doctorsays why. It protects against accidental overload, not against a process that moves itself out. - 0.5.0 containment was validated on two Ubuntu 26.04 machines (20 and
12 threads), with real agent sessions on the command line and over SSH.
Not yet validated: the agent's Bash sandbox with its default seccomp
filter (tested only with
sandbox.network.allowAllUnixSockets), the interactive terminal UI, IDE integrations, and systems with systemd older than 257. Reports are welcome. - Shims need the agent plugin or setup by hand. Claude Code gets them
automatically; other agents need
sluice shim installand aPATHentry. A.sluice.tomlwithweight = "auto"needs 0.4.0. - A hit is a local optimisation. CI stays authoritative, and inputs git
cannot see must be declared (
key_inputs,key_files). - Per-worktree caches. Tools that keep state inside the checkout, such as
node_modules/.cache, need one copy per worktree.
The full list is in the final report.
Contributing
Issues and discussions are open; use the issue forms (a bug report asks for
sluice doctor --bundle). The quality bar is in
CONTRIBUTING.md.
License
MIT. See LICENSE.
Related Skills
Agent-Reach
106.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.7kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
90.4k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
