{"repo":"nizos/probity","free":true,"listed":false,"github":"https://github.com/nizos/probity","clone":"git clone https://github.com/nizos/probity.git","description":"TDD enforcement and guardrails for Claude Code, Codex, and GitHub Copilot CLI","language":"TypeScript","stars":167,"topics":["claude-code","codex","coding-agent","github-copilot","guardrails","hooks","policy","tdd","agentic-coding"],"license":"MIT","category":"cli-tools","readme_excerpt":"Probity Probity forces AI coding agents to follow your rules. It hooks into your agent and checks every file write and shell command before it happens. When an action breaks a rule, Probity blocks it and tells the agent why. You can use it to enforce Test-Driven Development with the built-in rule, block destructive commands, or keep unwanted patterns out of your code. Writing your own rules takes a few lines of TypeScript, and one config works across most coding agents. Probity is featured on the Modern Software Engineering channel, where Emily Bache and Nizar Selander discuss what TDD looks like when an agent writes the code. A separate Q&A with factor10's Jimmy Nilsson covers using Probity on real projects, and links the full kata run. How it works When a rule is broken, the agent sees a reason and a path forward: The agent corrects course and continues. Rules can be deterministic, matching commands or file content by string or regex, or AI-validated using official SDKs. Both kinds can read recent session activity, so actions are judged in context. Quick start Create probity.config.ts at your project root: Then wire it into your agent. One-time setup per agent. Built-in rules - enforceTdd() : failing test first, minimal implementation, refactor on green - forbidCommandPattern() : block shell commands by pattern - requireCommand() : require a prior command (e.g. tests before commit) - forbidContentPattern() : block writes containing a pattern - enforceFilenameCasing() : enfo","default_branch":null,"files":null,"tree":[],"storefront":"/r/nizos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nizos/probity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}