Bash control
Shell command policy
Allowlist or deny the commands coding agents may run in the terminal—package scripts yes, destructive or exfil patterns no.
Allow npm test, pnpm lint, scoped git helpers
Deny curl | sh, rm -rf, secrets dumpers
Claude, Cursor, Codex & OpenCode governance
Coding agent governance
Cursor and Claude can shell out, touch secrets, call MCP tools, and reshape prompts from any laptop. Relay sits on that path—org mode and policy packs return allow, ask, or deny before the damage is done.
Relay · decision wire
Claude Code, Cursor, Codex, and OpenCode ask Relay before risky actions. Org mode and policy packs return allow, ask, or deny in milliseconds — then the audit trail records the verdict.
Agents ship faster than your controls. Without a shared enforcement layer, every engineer’s agent is an unsupervised toolchain—and security only finds out after credentials leak, a risky MCP call fires, or bad code lands on main.
Discover the surface, enforce policy and behavior guards from live signals, and keep a replay you can trust
See
Inventory governed tools and active sessions across Cursor and Claude. Watch live signals—session patterns, tool bursts, and risk cues—before you need a forensic hunt.
Control
Bash, path, MCP, and prompt channels evaluate every action before it runs. Behavior guards react to those signals and tighten policy when the agent drifts—not after the fact.
Prove
Tamper-evident events capture who ran which bash, path, MCP, or prompt action—under which policy, which signal triggered a guard, and what the outcome was.
Four channels—each with allow and deny examples you can ship as org policy
Bash control
Allowlist or deny the commands coding agents may run in the terminal—package scripts yes, destructive or exfil patterns no.
Allow npm test, pnpm lint, scoped git helpers
Deny curl | sh, rm -rf, secrets dumpers
Path control
Constrain which paths agents can read or write. Keep work inside the repo; keep secrets and infra out of reach.
Allow src/**, tests/**, draft PR files
Deny .env*, ~/.ssh, production kube configs
MCP control
Decide which MCP tools and actions agents may call. Draft a PR—yes. Hit prod APIs or secret stores—not without an approval path.
Allow github.read, pr.draft, catalog lookup
Deny secrets.read, kube.apply, unrestricted HTTP
Prompt control
Shape what enters model context and what agents are instructed to do—redact secrets, block risky system prompts, keep org rules sticky.
Allow Repo conventions, approved skill prompts
Deny API keys in context, jailbreak-style overrides
Session policy · live evaluate
Allow with execution, or deny with a clear reason—then log either way
Cursor or Claude selects bash, a path write, an MCP tool, or a prompt expansion.
The matching control channel runs before any side effect.
Approved calls proceed; denied calls return a structured reason.
Outcome lands in the audit log for replay and compliance.
Concrete controls for Cursor and Claude coding agents
Bash, path, MCP, and prompt rules share one Relay policy surface—so Cursor and Claude sessions stay consistent across the team.
Example: Permit npm test and github.create_pr; deny writes to .env and any prompt that asks to paste secrets.
Agent behavior guards that react to live signals—session patterns, tool bursts, and risk cues—so policy tightens when the agent drifts, not after the fact.
Example: Spike in denied MCP calls or a burst of shell attempts triggers a stricter guard pack for that session until the signal cools.
Rules evaluate on every agent action before tools execute—command patterns, path globs, MCP scopes, and prompt redaction.
Example: Block writes to main, strip tokens from model context, and require a second engineer for infra-touching MCP tools.
Built for Cursor and Claude coding agents. Relay does not ask teams to abandon their IDE—it governs the path from agent intent to execution.
Example: Same agent, same editor—different outcome when a disallowed bash or MCP call is requested: structured deny, not a silent failure.
Tamper-evident events capture who ran which bash, path, MCP, or prompt action—under which policy, with what outcome.
Example: Replay a denied shell or MCP call for an incident review—control channel, rule, and result in one record.
One place to set bash, path, MCP, and prompt policy for IDE agents—without reviewing every engineer’s local config.
Keep Cursor and Claude in the workflow while knowing what agents can shell, touch, and call in shared repos.
Evidence of agent actions by control channel: who, which rule, what result—exportable when exams ask.
Marshal runs production AI operations—gateway, prompts, skills, and Memory. Relay governs coding agents in the IDE. Buy either alone or Full Platform for both.
Cursor and Claude can shell out, touch secrets, call MCP tools, and reshape prompts from any laptop. Relay sits on that path—org mode and policy packs return allow, ask, or deny before the damage is done.