{"repo":"Aquifer-sea/pattern8","free":true,"listed":false,"github":"https://github.com/Aquifer-sea/pattern8","clone":"git clone https://github.com/Aquifer-sea/pattern8.git","description":"🎱 AI Agent Governance Framework — Constrain how AI Agents behave in your project. pip install pattern8","language":"Python","stars":49,"topics":["agent","ai","ai-safety","claude","cursor","devtools","framework","gemini","governance","llm"],"license":"MIT","category":"ai-agents","readme_excerpt":"Pattern 8 (P8) Zero-Trust Governance Framework to stop AI Agents from hallucinating, breaking things, and bypassing your rules. \"Your prompt is merely a suggestion. P8 is the law.\" 🇨🇳 简体中文 · Architecture (源码导读) --- Table of Contents - The Problem - Quick Start - Architecture - Project Structure - How It Works: Law vs. Police - The 5 Patterns - Anatomy of a SKILL - The 5 Built-in SKILLs - MCP Enforcement Engine - Data Flow - CLI Reference - IDE Integration - Pre-commit Hooks - Creating Custom SKILLs - Contributing - License --- The Chaos vs. The Law Are you tired of AI coding agents (Claude, Cursor, Devin) ignoring your instructions, deleting the wrong files, or pushing code without tests? Prompts are not enough. Prompt injection defence is impossible. To truly control an agent, constraints must be enforced at the OS and code level. ❌ Without P8 (The Chaos) - Agent decides to skip writing tests because it's \"too trivial\". - Agent runs rm -rf by mistake during a multi-step refactor. - Agent outputs a feature without ever writing a design doc. - Agent ignores your 5,000-word system prompt because its context window is full. 🛡️ With P8 (The Law) - MCP SecurityGuard intercepts and blocks dangerous commands at the OS level. - MCP Reviewer forces the agent into a strict retry-loop if output doesn't match the template.yaml . - Pre-commit Hooks ensure the agent hasn't tampered with the rules themselves. - Inversion Pattern forces the agent to stop and ask you clarifying questions i","default_branch":null,"files":null,"tree":[],"storefront":"/r/Aquifer-sea","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Aquifer-sea/pattern8/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}