PPROMPTWISE— governance layer for AI agents
MITPython 3.10+107 MCP tools
Not another agent — the record-keeper for the ones you already use

Every AI action, on the record.

PromptWise is the governance & intelligence layer for AI coding agents — model routing, cost control, security scanning, and a hash-chained audit trail — compiled down to MCP, SKILL.md, and AGENTS.md: the formats every agent already reads.

The ledger

Six links, one chain — every governed action passes through all of them.

Not a settings page. Each capability writes into the same hash-chained trail, in this order, every time a hook fires.

01
route_request

Right tier, every time

Haiku, Sonnet, or Opus, picked by task type and budget — not by habit. Reasoning effort (low / medium / high) is routed independently, with an outcome-learning adapter that fails open to the static pick when it doesn't yet have enough evidence.

02
security_check · owasp_scan

Nothing ships unchecked

Secrets, prompt injection, PII, and OWASP patterns — scanned air-gapped by default, with a red-team regression harness diffed against a stored baseline so fixes don't quietly reopen old holes.

03
check_policy · run_quality_gate

Policy, as code

An advisory quality gate and policy-as-code check run before a change merges — PASS / CONCERNS / FAIL, with a reason attached, not a silent pass.

04
grant_jit_permission

Time-boxed, not forever

Standing exceptions expire on their own — 60 minutes by default, 8 hours max — and decay back to the normal permission prompt without anyone remembering to revoke them.

05
record_audit

Hash-chained, not a log file

Every governed action links to the one before it. A tampered or missing entry breaks the chain visibly — export and verify it any time with promptwise:audit.

06
capture_learning

Corrections stick

A correction becomes a durable, searchable rule, replayed before similar work — local first, air-gapped safe, no round-trip to a vendor to remember what you told it once.

Works with what you already run

Claude Code Claude Desktop Codex Cursor Gemini CLI Copilot Windsurf JetBrains AI Assistant Cline Aider Goose OpenHands Grok CLI
107
MCP tools
81
portable skill packs
1,051
tests passing
13
agent hosts supported
MIT
license

Two commands, then /mcp

# clone and install
git clone https://github.com/u2anilgit/PromptWise.git
cd PromptWise
pip install -e .

# restart your agent, then in Claude Code
/mcp
/promptwise