Skip to content

Governance, RBAC, audit, DLP, and human-in-the-loop for Pi-based coding agents.

License

Notifications You must be signed in to change notification settings

Grwnd-AI/pi-governance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-governance logo

@grwnd/pi-governance

Governance, RBAC, DLP, and audit for Pi coding agents.

CI npm pi-governance npm openclaw-governance License Docs


The Problem

AI coding agents have full access to your terminal, filesystem, and secrets. Without governance, an agent can run rm -rf, read .env files, or exfiltrate API keys through tool calls — with no audit trail.

The Solution

pi-governance intercepts every tool call and enforces policy before execution.

pi install npm:@grwnd/pi-governance

What you get immediately:

  • Bash blocking — 60+ patterns classify commands as safe/dangerous/needs-review
  • DLP — API keys blocked on input, PII masked on output
  • RBAC — Role-based tool and path permissions
  • Audit — Every decision logged as structured JSON
  • HITL — Human approval for sensitive operations
  • Budgets — Per-role tool invocation limits
  • Config self-protection — Agents cannot modify their own governance files

Customize

Interactive wizard

/governance init

Opens a browser-based wizard to configure roles, DLP, audit, and HITL. Generates YAML config files.

Manual YAML

Create .pi/governance.yaml and governance-rules.yaml — see the Configuration Reference.

Set identity

export PI_GOV_ROLE=project_lead  # analyst | project_lead | admin | auditor
pi
/governance status

Documentation

Full docs at grwnd-ai.github.io/pi-governance.

License

Apache-2.0

About

Governance, RBAC, audit, DLP, and human-in-the-loop for Pi-based coding agents.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors