cli-agent-os
Global rules, guard hooks and shared skills for coding agents (Claude Code, Codex, Antigravity) on Windows, with a private overlay for personal settings.
At a Glance
Self-hosted core (rules, guard hooks, shared skills) released under the Apache License 2.0.
Engagement
Available On
Listed Nov 2026
About cli-agent-os
cli-agent-os is an open-source, user-level layer for coding agents on Windows, published by pspiotto under the Apache License 2.0. It installs one set of global rules, guard hooks and shared skills for Claude Code, Codex CLI and Google's Antigravity CLI (agy) from a single repo. Any agent that reads the shared ~/.agents/skills folder can also use the skills.
What It Is
The project is a configuration and guardrail layer rather than an agent itself. A canonical RULES.md is rendered for each agent with a short preamble that maps generic terms such as "the file tool" and "the shell" onto that agent's own tools. Per-project CLAUDE.md and AGENTS.md files can then keep only domain facts. Personal details (names, machines, projects, extra rules and permission rules) live in a separate private overlay folder, so the repo stays generic.
What the Hooks Enforce
- A shell-edit guard blocks heredocs,
sed -i,perl -i, and PowerShell write forms, and tells the model to use its file tool instead. - A claims hook holds a session that ends on a bare claim of done or fixed, based on four claim tiers: observed, tested, inferred and hypothesis.
- An ASCII-punctuation check reports em dashes, en dashes and curly quotes in newly written text.
- A Stop hook reminds the session to write a NOTES.md entry after edits.
- A post-compaction hook orders a re-read of registered charter files.
Bundled Skills
The repo ships slash-command skills including enable/disable of the global rules, /statusline, /adhd-ste, /promote (turns a repeated correction into a rule), /entropy-sweep and /verify-docs (documentation drift checks), /commit-tickets (one commit per ticket key), /glm-backend (points a project at Z.ai's GLM endpoint), /verify-sql and /workers.
Setup Path
It requires Windows, git, Node and PowerShell 5.1 or 7. After cloning, run install.ps1 with a machine name and optional overlay path. The installer merges into existing settings without clobbering them, uninstall.ps1 reverses it, and rerunning the installer after a pull refreshes the copies of the rules that Codex and agy hold.
Community Discussions
Be the first to start a conversation about cli-agent-os
Share your experience with cli-agent-os, ask questions, or help others learn from your insights.
Pricing
Open Source
Self-hosted core (rules, guard hooks, shared skills) released under the Apache License 2.0.
- License: Apache License 2.0 (Apache-2.0)
- Global rules, guard hooks and shared skills for Claude Code, Codex CLI and Antigravity on Windows
- Private overlay folder for personal rules and settings
Capabilities
Key Features
- One canonical RULES.md rendered per agent
- Shell-edit guard hook
- Claims-versus-evidence Stop hook
- ASCII punctuation check
- NOTES.md session-end reminder
- Post-compaction charter re-read hook
- Shared skills in ~/.agents/skills
- Private overlay for personal rules, machine profiles and skills
- Idempotent install and uninstall with backups
- Opt-in startup banner and status line
