---
name: "Enforce Coding-Agent Write and Shell Policies with Probity"
slug: "enforce-coding-agent-write-and-shell-policies-with-probity"
description: "Use Probity when Claude Code, Codex, or GitHub Copilot CLI should be blocked from unsafe file writes or shell commands before they happen."
github_stars: 162
verification: "security_reviewed"
source: "https://github.com/nizos/probity"
author: "nizos"
publisher_type: "open-source"
category: "Security & Verification"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "nizos/probity"
  github_stars: 162
  npm_package: "@nizos/probity"
  npm_weekly_downloads: 5172
---

# Enforce Coding-Agent Write and Shell Policies with Probity

Use Probity when Claude Code, Codex, or GitHub Copilot CLI should be blocked from unsafe file writes or shell commands before they happen.

## Prerequisites

Node.js/npm; @nizos/probity package; probity.config.ts; one supported agent host such as Claude Code, Codex, or GitHub Copilot CLI.

## Installation

Install or set up from the source-backed instructions:

Install with npm install -D @nizos/probity, create probity.config.ts with scoped rules such as enforceTdd(), then follow docs/setup.md to wire Probity into Claude Code, Codex, or GitHub Copilot CLI.

- Source: https://github.com/nizos/probity

## Documentation

- https://github.com/nizos/probity

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-coding-agent-write-and-shell-policies-with-probity/)
