# Guards: what the local server holds for you | ProductSteer

> Guards in ProductSteer's local server check each action before your agent runs it and hold risky commands, like a force push, for you. See what they cover.

Source: https://productsteer.com/docs/guards

### Docs menu

Docs

Search the docs

Getting started

- [Overview](https://productsteer.com/docs)
- [Connect Claude Code](https://productsteer.com/docs/connect-claude-code)
- [Connect Codex](https://productsteer.com/docs/connect-codex)
- [Other agent tools](https://productsteer.com/docs/other-agent-tools)

How it decides

- [Evidence labels](https://productsteer.com/docs/evidence-labels)
- [Scores](https://productsteer.com/docs/scores)

Staying in control

- [Approvals and passkeys](https://productsteer.com/docs/approvals)
- [Guards](https://productsteer.com/docs/guards)

Trust

- [Security](https://productsteer.com/security)
- [Changelog](https://productsteer.com/changelog)
- [Plans and limits](https://productsteer.com/pricing)

[**Join the waitlist** One product free](https://productsteer.com/waitlist?source=docs-side)

[Docs](https://productsteer.com/docs) / Staying in control

# Guards

The local server adds a guard that checks each action before your agent tool runs it, and holds the risky ones for you.

## What guards are

Guards reduce accidents. They are not a security boundary against an agent that is trying to get around them.

They are hook scripts on your side, installed by `npx productsteer install` (or `npx productsteer install --codex`), which lists every file before it writes one.

## What they hold

- **Hard rules block locally, with no network call:** a delete without confirmed paths, a push to your live branch, a public post.
- **The four approval classes ask ProductSteer** whether a matching approval exists. With no answer, the guard blocks, with a plain message.

## When ProductSteer cannot be reached

The guard fails closed: an action that needs an approval is held until ProductSteer answers. All other work continues. You can run one explicit local override, typed by a person in your own terminal; it is logged and reported to the record when the connection returns.

## Where guards run

Guards run in the local server, with Claude Code and Codex. The remote server alone has no guards; it keeps the record, the plan and your approval queue. [Connect Claude Code](https://productsteer.com/docs/connect-claude-code) or [Connect Codex](https://productsteer.com/docs/connect-codex) to install it.

[Previous Approvals and passkeys](https://productsteer.com/docs/approvals) [Next Security](https://productsteer.com/security)

On this page

- What guards are
- What they hold
- When ProductSteer cannot be reached
- Where guards run
