PrismorSec/prismor
Self-hosted AI agent control plane for tool-call approval, blocking, and audit
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Prismor is a Python control plane that sits in the tool-call path rather than replacing the agent or model. Supported agent hooks and adapter integrations feed a shared policy engine before execution. The MCP gateway is another entry point: it evaluates tools/call before forwarding and scans the upstream response for injection before it reaches model context. Calls and findings feed a tamper-evident audit trail, with session views backed by local workspace databases.
The package declares Python 3.8 or later and pyyaml>=6.0, and uses Hatchling for builds. The root tree separates prismor/, adapters/, and client integration directories such as .claude-plugin/ and .codex/. Workspace policy lives in .prismor/policy.yaml. Organization, project, and repository layers determine the applicable policy subject to a non-overridable floor. Each rule can set its own observe or enforce mode; the effective policy, not the hook's install flag alone, determines normal enforcement.
Key Capabilities & Differentiators
Operators can log findings without blocking, deny actions before execution, or require human approval for a specific MCP server or tool. MCP server allowlists match URLs, packages, or exact launch commands instead of display names. Other controls cover install-time supply-chain checks with IOC matching and risk scoring, skill and MCP scanning, and policy-driven network egress. On macOS, Seatbelt constrains an allowed shell command and its child processes, including package postinstall scripts, with restrictions on writes, credential stores, and network access.
Injection detection combines regex and heuristic screening with an optional model judge for uncertain inputs. Claude Code and Codex use existing CLI logins; the API option uses a LiteLLM model and key. A deterministic benchmark is available in scripts/bench_policy.py. The reported 30% recall improvement across 800+ cases is a separate result for the judge-enabled setup; the evaluation corpus is not checked in, so that gain should not be treated as a reproducible deployment baseline.
Trade-offs & Limitations
Compared with native permission prompts, Prismor adds shared policy, selective rollout, and a common audit view across supported clients, but it also gives operators rules and integrations to maintain. Compared with OS sandboxing or network controls alone, it can make decisions with tool and MCP server context. It cannot protect a path it does not intercept. The Seatbelt shell sandbox is macOS-specific; validate controls separately on each client, execution path, and OS rather than assuming uniform coverage.
Observe mode makes rollout less disruptive, but it does not stop anything. Strict enforcement means tuning exceptions and accounting for flows that need shell or network access. The model judge can handle ambiguous text at the cost of an extra inference step and another data-handling boundary. Apache-2.0 permits commercial self-hosting under its terms, but local traces and signed attestation bundles are audit inputs, not proof of compliance.
Hardware & Deployment Guide
Start with pip install prismor and prismor setup. The package is marked Beta, declares Python >=3.8, and lists POSIX and macOS classifiers. Run prismor dashboard for the local UI at 127.0.0.1:7070, use --no-open to leave it running without launching a browser, or use prismor traces to review sessions from a terminal. The dashboard reads local workspace databases without requiring a cloud backend. Leave the optional judge disabled if you need to avoid model-service calls from the guard; that choice alone does not isolate agent traffic.
Pilot in observe mode, inspect actual tool traffic, then move selected rules to enforce and test the result per client and entry point. No GPU or database server is listed as a prerequisite for this setup. In v1.80.14, floor rules were narrowed after blocking ordinary commands; v1.81.0 filters idle MCP gateway handshakes in the dashboard and preserves approvals when the queue is full. These are useful areas to recheck when upgrading an enforced deployment.
settings.default_mode defaults to observe; explicit rule modes let operators enforce selectively.tools/call before forwarding and scans responses before they reach model context.prismor sandbox on uses macOS Seatbelt to restrict allowed shell commands and their child processes.prismor dashboard and prismor traces expose session events and findings backed by local workspace databases.Teams rolling out shared controls for coding agents and MCP tools that want to observe real activity first, then enforce selected rules or require approval with a local audit trail.
Native permission prompts already meet your needs, or your security model requires platform-wide isolation for actions outside supported hooks, gateways, and adapters.
Quick Start & Installation
pip install prismor
prismor setupComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| prismor ★ | 885 | +214 | Python | Apache-2.0 | Self-hosted AI agent control plane for tool-call approval, blocking, and audit |
| multica | 59.1k | +891 | Go | — | A shared task board that dispatches coding agents to machines you control. |
| cua | 34.1k | +973 | Rust | MIT | Rust-backed sandboxes and cross-OS desktop controls for computer-use agents |
| OpenHands | 94.8k | +374 | TypeScript | MIT | Self-hosted control plane for coding agents across local, remote, and cloud back |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/PrismorSec/prismor.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about prismor
Where does Prismor sit in the tool-call path?
prismor mcp-gateway install can move an existing .mcp.json configuration behind the gateway. Then verify that each intended action produces an event and that a test rule blocks it when set to enforce. Calls outside the configured paths do not inherit that protection.Does Prismor need a GPU, and what drives runtime overhead?
Can a company self-host Prismor, and does that satisfy compliance requirements?
When is Prismor preferable to native agent permission prompts or OS sandboxing?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy