Approvals, branch rules, push checks, audit and your agent sessions, right where you already push code. Open a session and type / to pick a command.
curl -fsSL https://gitroots.com/cli/install.sh | bashA single binary, no Node needed. It installs to ~/.local/bin and every download is checked against SHA256SUMS. Read the script first →
irm https://gitroots.com/cli/install.ps1 | iexRun in PowerShell. A single binary for Windows x64, checked against SHA256SUMS. Read the script first →
npm install -g gitrootsFor teams that already manage tools with npm. Requires Node.js. See the release manifest →
Four steps. Your workspace's rules come with you, so nothing new to configure on the command line.
gitrootsOpens a gitroots session in your terminal. Type / to pick a command./loginApprove the sign-in in your browser. Your workspace, approvals, audit and agents load from gitroots./hooks installRun it inside a repository. Every git push is then checked against your workspace's branch rules and scanned for secrets before it leaves./agentsYour Claude Code and Codex sessions, on your machines and this computer. Approve, message, stop or resume them.
✓ Signed in · workspace rules in sync ❯ gitroots hooks install ✓ Push checks installed for odoo-erp ❯ git push origin main → gitroots · checking policy for dev-01 ✕ REJECTED main is protected. dev-01 may push to feature/* only — open a pull request instead. ❯ git push origin feature/inventory ✓ Allowed · branch rules and secret scan passed
/status shows what needs you, your workspace's posture and your agents.
Protected branches, protected paths, secrets, authors and migrations, checked on every git push.
/approvals to review merge and access requests, then approve, decline or request changes.
/audit and /pushes: who did what, when, and which pushes were blocked.
/watch and /attach follow live Claude Code and Codex sessions. Approve with y, deny with n.
Every command also runs on its own, such as gitroots status --json, for scripts and CI.