---
title: "promptguard"
type: "tool"
slug: "mturac-promptguard"
canonical_url: "https://www.graphcanon.com/tools/mturac-promptguard"
github_url: "https://github.com/mturac/promptguard"
homepage_url: "https://github.com/mturac/promptguard"
stars: 82
forks: 0
primary_language: "Python"
license: "MIT"
archived: false
categories: ["ai-agents", "developer-tools", "llm-frameworks"]
tags: ["ai-agents", "audit", "claude", "claude-code", "codex", "guard", "guardrails", "llm"]
updated_at: "2026-07-15T10:44:00.449448+00:00"
---

# promptguard

> Audits prompts as behavioral contracts. Pre-write guard for agents that ship code.

Audits prompts as behavioral contracts. Pre-write guard for agents that ship code.

## Facts

- Repository: https://github.com/mturac/promptguard
- Homepage: https://github.com/mturac/promptguard
- Stars: 82 · Forks: 0 · Open issues: 0 · Watchers: 9
- Primary language: Python
- License: MIT
- Last pushed: 2026-05-17T00:18:56+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Steady (computed 2026-07-15T10:43:58.570Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-15T10:43:59.068Z
- Full report: [trust report](/tools/mturac-promptguard/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/mturac-promptguard/trust)

## Categories

- [AI Agents](/categories/ai-agents.md)
- [Developer Tools](/categories/developer-tools.md)
- [LLM Frameworks](/categories/llm-frameworks.md)

## Tags

ai-agents, audit, claude, claude code, codex, guard, guardrails, llm

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [awesome](/tools/sindresorhus-awesome.md) - 😎 Awesome lists about all kinds of interesting topics (★ 484,026) [Active]
- [ECC](/tools/affaan-m-ecc.md) - The agent harness performance optimization system for AI agents (★ 228,395) [Very active]
- [hermes-agent](/tools/nousresearch-hermes-agent.md) - The agent that grows with you (★ 212,994) [Very active]
- [n8n](/tools/n8n-io-n8n.md) - Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations. (★ 196,027) [Very active]
- [AutoGPT](/tools/significant-gravitas-autogpt.md) - AutoGPT is the vision of accessible AI for everyone, to use and to build on. (★ 185,464) [Very active]
- [ollama](/tools/ollama-ollama.md) - Get up and running with various large language models using Ollama. (★ 175,936) [Very active]

_+ 2 more not listed._

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

````text
## Quick Start

Run without installing:

```bash
python3 -m promptguard audit prompts.py
printf '%s' 'Fix this bug and write code.' | python3 -m promptguard audit - --format markdown
```

Install as a local CLI:

```bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
promptguard audit prompts.py
```

Install as an app with `pipx`:

```bash
pipx install promptguard
promptguard audit prompts.py
```

Install from GitHub before a package release:

```bash
pipx install "git+https://github.com/<owner>/promptguard.git"
```

Save reports:

```bash
promptguard audit prompts.py --format json --save
```

Saved reports go to:

```text
.promptguard/reports.jsonl
```
````

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/mturac-promptguard`](/api/graphcanon/tools/mturac-promptguard)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
