Skip to main content

Secrets protection

Blocks tool inputs that contain credentials and redacts secrets from tool outputs before they reach the model, using whichever of gitleaks, betterleaks, trufflehog, or detect-secrets is installed (gitleaks recommended). Without a scanner installed, scanning is skipped and a session-start warning explains how to enable it.

.claude/fencepost.yaml
import:
- secrets

Full preset​

presets/secrets.yaml
# Fencepost preset: secrets

secrets:
enabled: true