
policyctl
Provider-agnostic policy runtime for coding agents
3 followers
Provider-agnostic policy runtime for coding agents
3 followers
PolicyCtl is a provider-agnostic policy runtime for AI coding agents. It enforces rules deterministically before actions execute, instead of relying on prompt instructions. One `.policyctl.yml` policy works across Claude Code, Cursor, OpenAI Codex, and CI, with sub-12ms local evaluation, pre-execution blocking, secret detection, policy-file protection, and native hook generation.


Free Options
Launch Team / Built With

Render: Get up to $100K in startup creditsThe fastest way to launch and scale your startup in the cloud
Promoted

Quick launch story: this started as a weekend hack after my coding agent rewrote a migration file that my instructions explicitly said (three messages earlier!) not to touch. Prompts are advice; advice degrades as context fills up. So I built a runtime instead — one YAML file compiled to pattern tables, enforced at the agent's tool-call layer before files hit disk. Under 12ms per call, no LLM in the decision path, 100% local.
Free, MIT, local-first — try it in 30 seconds: npx @policyctl/cli init
Ask me anything about the matcher design (file, command, diff, AST, regex, glob, tool, semantic) — genuinely my favorite part of this project.