{"id":49580360,"url":"https://github.com/nizos/probity","last_synced_at":"2026-05-03T19:05:19.939Z","repository":{"id":352190529,"uuid":"1214130539","full_name":"nizos/probity","owner":"nizos","description":"Process discipline for AI coding agents","archived":false,"fork":false,"pushed_at":"2026-05-02T20:59:54.000Z","size":6810,"stargazers_count":32,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-02T21:26:15.630Z","etag":null,"topics":["agentic-coding","claude-code","codex","coding-agent","github-copilot","guardrails","hooks","policy","tdd"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nizos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-18T06:47:34.000Z","updated_at":"2026-05-02T20:59:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nizos/probity","commit_stats":null,"previous_names":["nizos/conduct"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/nizos/probity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nizos%2Fprobity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nizos%2Fprobity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nizos%2Fprobity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nizos%2Fprobity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nizos","download_url":"https://codeload.github.com/nizos/probity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nizos%2Fprobity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32581053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic-coding","claude-code","codex","coding-agent","github-copilot","guardrails","hooks","policy","tdd"],"created_at":"2026-05-03T19:05:18.874Z","updated_at":"2026-05-03T19:05:19.928Z","avatar_url":"https://github.com/nizos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probity\n\n[![npm version](https://badge.fury.io/js/@nizos%2Fprobity.svg)](https://www.npmjs.com/package/@nizos/probity)\n[![npm downloads](https://img.shields.io/npm/dt/@nizos/probity)](https://www.npmjs.com/package/@nizos/probity)\n[![CI](https://github.com/nizos/probity/actions/workflows/ci.yml/badge.svg)](https://github.com/nizos/probity/actions/workflows/ci.yml)\n[![Security](https://github.com/nizos/probity/actions/workflows/security.yml/badge.svg)](https://github.com/nizos/probity/actions/workflows/security.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nProcess discipline for AI coding agents.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/probity-tdd-demo.gif\" alt=\"Probity blocking an over-implementation attempt\" width=\"1200\"\u003e\n\u003c/p\u003e\n\nProbity catches what coding agents do wrong (over-implementing past the failing test, disabling tests instead of fixing them, reaching for `rm -rf`) using the hook system your agent already exposes.\n\n## How it works\n\nEach agent action (file write, shell command) fires a hook. Probity evaluates the action against your configured rules and decides whether it goes through. When it blocks, the agent gets a reason and a path forward:\n\n```\nprobity: production code is being added before any failing test was written\nor observed.\n\nThe next TDD-legal step is to add one focused test in src/cart.test.ts and\nrun it to a clean assertion failure before implementing only the minimum code\nto pass it.\n```\n\nProbity grew out of [tdd-guard](https://github.com/nizos/tdd-guard), built to be the better foundation for the work ahead: rules beyond TDD, agents beyond Claude Code.\n\n## Features\n\n- Catches over-implementation and missing tests by reading your agent's session history (works with any test runner, in any language)\n- Same config across Claude Code, Codex, GitHub Copilot Chat, and Copilot CLI: one rule set, every agent\n- Pattern blocks for commands and content (string or regex) for the deterministic checks\n- Custom rules in a few lines of TypeScript\n\n## Getting started\n\nInstall Probity as a dev dependency, then [wire it into your agent](docs/setup.md):\n\n```\nnpm install -D @nizos/probity\n```\n\nCreate a `probity.config.ts` at your project root.\n\nHere's a starter that enforces TDD on `src/` and `test/`, and blocks `eslint-disable` comments:\n\n```ts\nimport { defineConfig, enforceTdd, forbidContentPattern } from '@nizos/probity'\n\nexport default defineConfig({\n  rules: [\n    {\n      files: ['src/**', 'test/**'],\n      rules: [\n        enforceTdd(),\n        forbidContentPattern({\n          match: 'eslint-disable',\n          reason: 'Fix the lint violation rather than disabling the rule',\n        }),\n      ],\n    },\n  ],\n})\n```\n\n## Documentation\n\n- [Setup](docs/setup.md): wire probity into your agent\n- [Configuration](docs/configuration.md): config file shape, path scoping, and custom rules\n- [Rules](docs/rules.md): built-in rules and their options\n\n## Contributing\n\nContributions are welcome! See the [contributing guidelines](CONTRIBUTING.md) to get started.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnizos%2Fprobity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnizos%2Fprobity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnizos%2Fprobity/lists"}