Sentinel Mode

Open ForceField for VS Code

Sentinel Mode for AI Coding Agents

Real-time security monitoring for Cursor, Cline, Codex, and every AI agent that writes code in your editor.

FreePython 3.9+Apache 2.0

22

Dangerous command patterns

12

Sensitive file patterns

20+

Commands available

0

Telemetry by default

Sentinel Mode

Your AI agent writes code. Sentinel watches everything it does.

AI coding agents operate inside VS Code -- creating files, running shell commands, and modifying your codebase. Sentinel Mode passively monitors all of this in real-time and alerts you to dangerous activity before it causes damage.

File Edit Monitoring

Scans every file change (debounced) for PII insertion, prompt injection payloads, and credential leaks.

File Operation Interception

Flags dangerous file creates, deletes, and renames: .env, id_rsa, secrets.json, .pem, authorized_keys, and 12 more patterns.

Terminal Command Scanning

Classifies every shell command for rm -rf, curl | sh, chmod 777, reverse shells, credential exfiltration, privilege escalation, and 22 total dangerous patterns.

Auto-Kill Dangerous Commands

Optionally sends Ctrl+C to the terminal the instant a critical command is detected -- before it finishes executing. Then asks you to review.

Three Protection Levels

Monitor

Default

Log everything, no blocking. See what your AI agent is doing without interrupting it.

Confirm

Require human confirmation for all file deletions, renames, and dangerous file creates. Recommended when using AI agents.

Strict

Require human confirmation for all file deletions, renames, AND all file creates. Maximum oversight.

Protected Paths

Designate files and folders as untouchable.

While Sentinel is active, protected paths are unconditionally blocked from deletion and rename -- no dialog, just blocked. Content modifications trigger a save-blocking dialog with an override option.

Example protected paths

.env
.gitignore
*.pem
src/config/**
id_rsa
docker-compose.yml
  • Works at any protection level, including Monitor
  • Exact, glob, and directory-recursive matching
  • External changes detected via FileSystemWatcher
  • Lock icon in editor title bar for protected files

Scanning & Detection

Scan Current File

Ctrl+Shift+F5

Detect prompt injection, data exfiltration, jailbreak attempts, and PII with inline diagnostics.

Redact PII

Ctrl+Shift+F6

Find and replace SSN, credit card, email, phone, IP, IBAN, and 12 more PII types. Five redaction strategies.

Moderate Content

Check LLM outputs for hate speech, violence, self-harm, malware code, credential leaks, and jailbreak indicators.

Content Safety Check

Azure Content Safety-compatible scoring for Hate, Violence, Sexual, and SelfHarm categories.

Validate Chat Template

Detect backdoored Jinja2 chat templates per ICLR 2026 research: hardcoded instructions, base64 payloads, suspicious macros.

Self-Test Report

Run 121 attack prompts and see results in a rich webview with detection rate, per-attack results, and risk scores.

Cloud Gateway Integration

Connect to the ForceField Gateway for DeBERTa transformer-powered detection. Sign in directly from VS Code, manage API keys, and auto-configure the gateway -- all without leaving the editor.

Sign in / create account from the Command Palette
API key management (list, create, revoke)
Auto-configure gateway or set manually
Falls back to local scanning if gateway is unreachable

How It Works

Persistent Python daemon over JSON-RPC -- no cold starts

Powered by the Open ForceField SDK (same scan_command / scan_filename APIs)

Inline diagnostics with severity-appropriate highlighting

PII highlighted with exact character positions and hover tooltips

Sentinel state survives VS Code restarts (last 500 events, cumulative stats)

Privacy-Safe Telemetry

When signed in, privacy-safe telemetry is batched and synced every 60 seconds. No filenames, file content, or raw commands are ever sent -- only event types, severities, counts, and hashes. Disable with one setting.