Prismor runtime policy guardrails for Codex and Gemini CLI coding agents
From README links · today
Wrapped coding agents in observe/enforce policy mode with a local dashboard.
What they did
Installed Prismor from PyPI and pointed it at two coding harnesses already in use: Codex CLI and Gemini CLI. The goal was to get visibility into what the agents actually touch during a session — shell commands, file writes, network calls — before deciding whether to tighten anything. They started in observe mode so nothing would be blocked while they learned the baseline, ran a few representative tasks (a refactor, a dependency bump, a docs pass), and then reviewed the local self-serve dashboard to see which actions showed up. From there they wrote a small set of custom policies around the paths and commands that mattered for their repo, switched to enforce mode, and re-ran the same tasks to confirm the guardrails fired where expected and stayed quiet where they should.
How it went
Observe mode gave a clear baseline of agent behavior within a single session, and enforce mode blocked the targeted actions without breaking the normal refactor and docs workflows. The dashboard was enough to spot-check policy hits without extra logging. Polish is decent for a local, self-serve setup; the main work was authoring policies, not installation.
Worth knowing
Policy authoring is on you — Prismor is customizable rather than opinionated, so a weak ruleset gives weak protection. Enforce mode can block legitimate work if paths or commands are over-broad, so run observe first. The dashboard is local and self-serve, not a hosted audit trail, and coverage depends on the harness being wrapped correctly.
Wiring
Install Prismor from PyPI (pip install prismor) and confirm the CLI resolves. Start in observe mode so the agent harness runs unmodified while activity is recorded. Wrap each harness — Codex CLI and Gemini CLI — through Prismor so its tool calls pass through the policy layer, then open the local dashboard to confirm events are arriving. Author policies as a config file scoped to repo paths, shell command patterns, and network egress. Re-run the same tasks in observe mode to validate the rules would have matched, then flip to enforce mode and repeat to confirm blocks fire only on intended actions.
Try it yourself
Set up Prismor in this repo as runtime security for our coding agents. Install it from PyPI, start in observe mode, and wrap both Codex CLI and Gemini CLI so their shell commands, file writes, and network calls are recorded. Run a short representative task with each agent, then summarize from the local dashboard which paths and commands were touched. Propose a minimal enforce-mode policy file covering writes outside the repo, destructive shell commands, and outbound network calls, and explain each rule before enabling it.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-codex-and-gemini-cli-and-prismorcurl -s https://api.runchr.com/api/recipes/runchr/stack-codex-and-gemini-cli-and-prismor/manifestThis stack has no prompt yet. You get the tools and the wiring, not the prompt.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-codex-and-gemini-cli-and-prismor/manifest.