Skip to main content

Overview

Coding agents run commands with the same access as the person who started them. Formal identifies the agent behind each connection and applies policies to that agent alone.

How Formal helps

The Endpoint runs on the laptop or sandbox where the agent runs. Network rules match traffic by process identity, so a rule can target Claude Code and leave your browser alone. Policies then block, rewrite, or log each request.

Roll it out

1

Install the Endpoint where agents run

Use MDM for laptops. For sandboxes, see Prevent Cloud Agents from Auto-Merging PRs.
2

Turn on Transparent Mode

3

Intercept agent traffic

Write a network rule that matches the agents and destinations you care about.
4

Write a policy

Start from a guide below, and test it in dry-run mode first.
5

Verify in the logs

Trigger the action from the agent, then find the blocked request in Logs.

Guides

Block agent Git pushes

Stop pushes to sensitive repositories over SSH and HTTPS

Prevent cloud agents from auto-merging PRs

Cover Cursor and Devin cloud agents

Restrict Codex Desktop to LLM and MCP

Allow only LLM and approved MCP egress

Block malicious package downloads

Block installation packages (npm, pypi) that Socket.dev flags

Protect Git tokens in command lines

Block tokens on command lines and encrypt them in logs

Install the Endpoint on Grok Bot

Cover Grok Bot computers and block Gmail

Recipes

Recipes create this configuration for you in the Control Plane.
  • Block agent Git pushes: blocks pushes to protected GitHub repositories.
  • Prevent Merges by Cloud Agents: blocks merges while agents can still prepare changes.
  • Block AI Agents: blocks specific agents, unapproved agents, or agents running without human confirmation.

Next Steps

Keep credentials from agents

Inject secrets outside the agent’s reach

Govern AI usage

Discover and approve AI harnesses