SYNAPTIC Sentinel
The vibe-coding security sentinel. Apache-2.0. Five deterministic scouts scan your repo; a multi-provider Brain Layer decides what really matters and how to fix it — all in the IDE, with cost visibility per session.
SYNAPTIC Sentinel is the security companion of the SYNAPTIC family (sibling of SYNAPTIC Expert). Where Expert helps you write AI-assisted code with traceability, Sentinel audits what gets written — your own code, your AI's code, your dependencies, your config — and explains why it matters. All capabilities are open under Apache-2.0; there is no premium tier, no proprietary gating, and the Brain Layer runs against any LLM provider you choose.
Built for three kinds of users:
- Developers shipping AI-assisted code who want to catch the classic mistakes (eval-of-user-input, SQL injection by concatenation, secrets in commits, vulnerable deps) before the PR.
- Tech leads who want SARIF in CI as a quality gate, a "living tome" of audited findings to ship as evidence, and per-session cost visibility to pick the cheapest LLM that still gives quality triage.
- AppSec engineers who want taint analysis + secrets + SCA + IaC + AI-anti-patterns in one place, with a Brain Layer that explains exploitability instead of just listing CVEs.
What it does
Five scouts, deterministic and parallel
The Scout Layer runs five auditors in parallel, each best-in-class for its category. Binaries are downloaded on-demand from their official GitHub releases with SHA-256 verification — no Docker, no Python toolchain on the client.
| Scout |
Category |
Source |
What it catches |
| OpenGrep |
SAST |
opengrep/opengrep |
17 curated rules (11 pattern-based + 6 taint) covering CWE-22 (path traversal), CWE-78 (command injection), CWE-79 (XSS), CWE-89 (SQL injection), CWE-95 (eval-family), CWE-327 (weak crypto), CWE-502 (deserialization). Taint mode follows request.* → dangerous sink in JS/TS and Python. |
| Gitleaks |
Secrets |
gitleaks/gitleaks |
Credentials, API keys, tokens checked in by accident — redacted in the output by default. |
| Trivy |
SCA |
aquasecurity/trivy |
Vulnerable dependencies (CVE database), severity-mapped, with fixed-in info. |
| Checkov |
IaC |
bridgecrewio/checkov |
Misconfigurations in Dockerfiles, Terraform, Kubernetes manifests. |
| Vibe-Detect |
VibeCoded |
(native, no binary) |
Anti-patterns specific to AI-generated code — 6 heuristic detectors, runs offline. |
Multi-provider Brain Layer (BYOK any provider)
Three LLM agents wired into the scan flow:
- Triage Agent — for each finding, decides true positive / false positive / inconclusive with a confidence score and a one-sentence rationale.
- Context Agent — for confirmed true positives, explains the exploitability chain:
entry point → propagation → sink → exposure.
- Remediation Agent — proposes a concrete fix, with a code snippet you can copy.
If an agent cannot succeed — a rejected API key, an account without credit, a model that does not exist — triage stops calling it after the first failure (or after three identical failures in a row for other errors) instead of repeating the same error for every finding, and the summary quotes the provider's actual error. Nothing is deleted: the next Triage Findings run triages what was skipped and generates the missing context/remediation for earlier true positives without re-triaging them.
Pick a different provider per agent. Run Triage on DeepSeek v4-flash (cheap), Context on Anthropic Haiku (quality), Remediation on Ollama locally (free / private). Or use one provider for everything. Mix-and-match by cost / quality / privacy.
| Provider |
Models supported |
Notes |
| Anthropic (native adapter) |
Claude Haiku 4.5 / Sonnet 4.6 / Opus 4.7 |
Prompt caching + extended thinking preserved. Default if ANTHROPIC_API_KEY is set. |
| OpenAI |
gpt-4.1 / gpt-5 family and later / o-series |
Reasoning models (gpt-5 and later, o-series) get max_completion_tokens and their default temperature automatically. |
| DeepSeek |
v4-flash / v4-pro / R1 |
v4-flash is the empirical cost/performance winner of our cross-provider benchmark. |
| Groq |
Llama 3.3 70B / Llama 4 Scout 17B |
Speed king (sub-second latency typical). Free tier has a 100K-token/day cap. |
| Gemini |
gemini-2.5-flash / gemini-2.5-pro |
Via Google's OpenAI-compat layer. |
| Mistral / Together / Fireworks / Perplexity / xAI |
All OpenAI-compatible chat-completion models |
Just set the API key — the generic adapter handles the rest. |
| AWS Bedrock / Azure OpenAI |
Any chat-completion model |
Requires explicit baseUrl in agents.yaml (region/instance varies). |
| Ollama (local) + LM Studio + vLLM |
Whatever you have pulled locally |
Ollama native API with XGrammar opt-in for ~99% JSON validity. Free. Private. Caveats below. |
The model names above are examples. The Configure Brain Layer Providers panel lists the models each provider offers right now, queried live with your key (see below).
Cost visibility — see what each session actually costs you
At the end of every triage session you get a summary block:
Cost summary (~estimated — tokens are chars/4 proxy, ±15-20% vs provider usage):
provider/model agent calls input output cost USD latency
anthropic/claude-haiku-4-5-20251001 triage 3 calls 450 in 180 out $0.0014 1842ms avg
anthropic/claude-haiku-4-5-20251001 context 2 calls 890 in 420 out $0.0030 2104ms avg
anthropic/claude-haiku-4-5-20251001 remediation 2 calls 870 in 510 out $0.0034 2851ms avg
Total: 2210 input tokens · 1110 output tokens · $0.0078 (~estimated USD)
The synaptic-sentinel cost-history [--limit N] sub-command shows a rollup across the last N sessions, grouped by provider+agent — useful to compare empirically (on your findings, not synthetic benchmarks) which provider gives you the best cost/quality trade-off.
When the provider reports token usage in its response (Anthropic, OpenAI-compatible providers and Ollama do), the summary uses those counts and its header reads Cost summary (tokens & cost from provider usage):. When it does not, Sentinel falls back to a chars / 4 proxy (±15-20% vs the billed usage) and labels the figures ~estimated, as in the example above. Cost in USD is always an estimate from a built-in price table (public list prices as of 2026-05-23); models that are not in the table are shown as $0 — that means unknown, not free.
Configuring providers (three equivalent paths)
A. From the IDE — Command Palette → SYNAPTIC Sentinel: Configure Brain Layer Providers opens a Settings panel:
- Active Configuration — pick a provider + model for each agent (Triage / Context / Remediation), then click Apply. The provider drop-down only lists providers whose API key is configured (plus Ollama if its daemon is reachable). Next to the model field, a model picker lists the chat models that provider currently offers, fetched live with your key (new in v0.3.23); picking one fills the field, which stays editable for ids that are not listed. AWS Bedrock and Azure OpenAI have no listing — type the model or deployment name. Clicking Apply writes
.sentinel/agents.yaml in your workspace — same file format the CLI reads (path B below).
- Managed Credentials — Save / Delete / Test API keys for 12 providers. Test validates the key against the provider with an authenticated, free request and shows either
Key accepted by <provider> — N chat models available or the actual error (e.g. HTTP 401: the API key was rejected). Bedrock and Azure cannot be validated this way and stay configured. Keys never cross to the webview in plain text (state is configured: boolean, real value lives in vscode.SecretStorage); model listing and key validation run in the extension host, and only model names reach the panel.
- Local Models — auto-discovers your Ollama daemon at
localhost:11434 and lists models you've pulled. Models above 5 GB get a ⚠ heavy badge and the panel shows a one-time warning about RAM saturation (with a "Don't remind me again" toggle that persists cross-workspace).
B. From .sentinel/agents.yaml in your project root (versionable):
agents:
triage:
provider: deepseek
model: deepseek-v4-flash
context:
provider: anthropic
model: claude-haiku-4-5-20251001
remediation:
provider: ollama
model: gemma3:4b
C. From the CLI — repeatable --agent-provider <agent>=<provider>/<model> flag:
synaptic-sentinel triage \
--agent-provider triage=deepseek/deepseek-v4-flash \
--agent-provider context=anthropic/claude-haiku-4-5-20251001 \
--agent-provider remediation=ollama/gemma3:4b
API keys come from SENTINEL_<PROVIDER>_API_KEY environment variables (SENTINEL_ANTHROPIC_API_KEY, SENTINEL_OPENAI_API_KEY, SENTINEL_DEEPSEEK_API_KEY, etc). The legacy ANTHROPIC_API_KEY is also accepted for backward compatibility with v0.2.0. Keys never appear in command-line arguments; they always travel via environment variables or vscode.SecretStorage.
Backward-compatible: users on v0.2.0 with only ANTHROPIC_API_KEY set continue to work identically — Anthropic Haiku 4.5 runs all three agents (the implicit fallback).
Memory of the swarm
The three agents share a learning store on disk in your repo (.sentinel/colony.db — same .sentinel/ directory that holds agents.yaml): a triage pattern seen with strong evidence is pre-classified on the next scan without spending an LLM token. Re-triage all deliberately skips this memory, so every finding is re-evaluated by the model you configured. Backward-compat: if your repo still has the legacy .synaptic-sentinel/colony.db from v0.3.5 or earlier, the CLI keeps reading it and emits a log suggesting you move it; no automatic migration to avoid data loss.
Trust cross-session (new in v0.3.22 — FASE III)
Cross-provider triage is inherently noisy: the same finding can come back TP one day and INC the next after you swap providers. Instead of hiding this variance, Sentinel makes it visible:
- Previously (N prior verdicts) — a collapsible section under every finding card in the sidebar showing the full triage history for that fingerprint (timestamp +
providerLabel + full rationale). The verdict trajectory across every scan you've ever run is one click away.
- ⚠ Verdict changed since last scan banner — when the current verdict differs from the previous, the sidebar shows a warning banner with a reason heuristic:
Different provider (X → Y) — cross-provider agreement is not guaranteed. / Verdict reclassified — likely new context signals available. / Confidence changed significantly (Δ 0.XX).
- Scan diff line — both the terminal and the sidebar summary card show
Scan diff vs previous triage: N new · M re-classified (X class, Y confidence, Z provider) · K unchanged with reason breakdown. The empirical validation of FASE III collected a dramatic reproducibility case (fast-xml-parser CVE-2026-41650 oscillated between 0.0 and 1.0 confidence across 5 scans with 2 providers) — now nothing about that shift is hidden from the user.
- Cross-finding correlation (grouping) — when N ≥ 2 findings share the same rule + package + version, only the group representative pays the LLM token cost; members inherit the verdict with a 0.9× confidence downgrade (epistemic honesty: high confidence on the group, medium on each member individually). The sidebar shows
GROUPED REP (purple) on the representative and GROUPED (lighter purple) on members, plus a [group SCA:pkg@ver:CVE, member N of M] rationale suffix. Empirically saved 12 LLM calls in a single re-triage of a real-world workspace (44 findings → 8 calls + 24 colony-memory + 12 propagated).
--no-group CLI flag — global escape hatch if you want per-finding autonomy over the cost savings.
- Chip filter (new in v0.3.23) — when the latest triage has diff activity or grouped findings, the sidebar summary shows chips with live counts:
new, reclassified, unchanged, grouped, untriaged. reclassified expands into class / confidence / provider sub-chips to isolate one reason. Diff-status chips combine with OR, grouped with AND; × clears the filter. The filter is per view and not persisted.
Turnkey from install to first scan
- Install the extension.
- Command Palette → "SYNAPTIC Sentinel: Install Scanners" — downloads and verifies the five scout binaries to a per-user cache (
~/.synaptic-sentinel/scanners). Once.
- Command Palette → "SYNAPTIC Sentinel: Scan Workspace" — findings appear as inline diagnostics, in the Problems panel, and in the living tome side view.
- (Optional, BYOK) Configure Brain Layer Providers → Triage Findings (Brain Layer) to enrich findings with classification + context + remediation.
- (Optional) Export report button in the sidebar (or Command Palette → "SYNAPTIC Sentinel: Export Report...") — save the latest scan as an HTML report, SARIF 2.1.0 or JSON. No re-scan, no LLM tokens.
Commands
Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
| Command |
What |
SYNAPTIC Sentinel: Scan Workspace |
Runs the five scouts and paints findings as diagnostics. Also bound to the Sentinel item in the status bar. |
SYNAPTIC Sentinel: Triage Findings (Brain Layer) |
Runs the three Brain Layer agents over the last scan, and backfills missing context/remediation of earlier true positives. Requires BYOK. |
SYNAPTIC Sentinel: Export Report... |
Saves the latest scan as HTML, SARIF 2.1.0 or JSON (new in v0.3.23). No re-scan, no LLM tokens. |
SYNAPTIC Sentinel: Configure Brain Layer Providers |
Opens the multi-provider Settings panel (provider + model per agent, API keys, Ollama discovery). |
SYNAPTIC Sentinel: Set Anthropic API Key (BYOK) |
Stores (or clears) the Anthropic key in the OS secret store. Kept for backward compatibility; the Settings panel covers all providers. |
SYNAPTIC Sentinel: Install Scanners |
One-time download of the scout binaries to the per-user cache. |
Sidebar buttons (shown when relevant):
- Export report — same as the Export Report... command: saves the latest scan as HTML, SARIF 2.1.0 or JSON. Shown whenever there are findings.
- Triage N untriaged — triages the findings a previous capped run left untriaged.
- Re-triage all — after a confirmation, sends every finding of the last scan back to the configured triage model, skipping the colony memory (useful after changing providers in
agents.yaml). Each finding's verdict, context and remediation are replaced only when its new verdict arrives; a finding whose triage fails keeps what it had. Verdict history and known false positives are preserved.
Plus Code Actions on each finding: mark as false positive (suppressed in future scans), and copy suggested remediation.
CI-native
Sentinel's CLI bundle ships with the extension and is also runnable standalone. The audit tome can be exported to JSON, HTML (an audit report you can hand to a reviewer or to an AI coding agent as a work list — it opens with an upgrade plan, one target version per vulnerable package that fixes all its known CVEs, with the override snippet for transitive dependencies; then each finding with its triage verdict, context and remediation when the Brain Layer produced them, group members showing their representative's remediation), and SARIF 2.1.0 (GitHub Code Scanning, Azure DevOps):
synaptic-sentinel scan --export <file> --export-html <file> --export-sarif <file> — scan and export in one step.
synaptic-sentinel show --export <file> --export-html <file> --export-sarif <file> — export the latest stored scan without re-scanning (new in v0.3.23 for HTML/SARIF). Useful after triage, so the report includes the Brain Layer results. Zero cost: no scanners, no LLM.
- In VS Code: the sidebar's Export report button (or SYNAPTIC Sentinel: Export Report...) does the same as
show.
The --fail-on <severity> flag turns the scan into a CI gate (exit code 2 if there are findings at or above the threshold).
Diff-aware CI (new in v0.3.22 — DG-132 A):
synaptic-sentinel diff --json [--path <dir>] [--confidence-delta-threshold <n>] — structured JSON output comparing the latest triage against the previous one. Shape: { scanId, summary, reclassifiedByReason, newFindings[], reclassified[], unchanged[] }. Feed to a dashboard, gate a PR, alert on drift. Read-only — no re-triage, no LLM tokens.
synaptic-sentinel triage --fail-on-new-tp-critical <n> --fail-on-new-tp-high <n> --fail-on-new-tp-medium <n> — per-severity CI gates on the triage step. Exit code 1 if the number of NEW true-positive findings (first-time triaged or reclassified to TP from a different classification) at that severity exceeds the threshold. Use --fail-on-new-tp-critical 0 --fail-on-new-tp-high 3 for zero-tolerance critical + tolerate up to 3 high per PR.
synaptic-sentinel triage --no-group — escape hatch: disables the cross-finding correlation grouping (R20) and forces one LLM call per finding. Trade cost for per-finding autonomy.
The synaptic-sentinel cost-history sub-command lets you wire cost reports into your CI summary too.
Privacy and data flow
- Your code never leaves your machine for the deterministic scans. The five scouts run locally as child processes.
- For the Brain Layer (optional), each finding's snippet goes directly to the LLM provider you chose — no proxy, no middleman, no Synaptic backend. BYOK. With Ollama / LM Studio / vLLM, the code never leaves your machine at all.
- The audit memory (
colony.db) lives in your repo's .sentinel/ directory (alongside agents.yaml). You decide whether to commit it. Workspaces from v0.3.5 or earlier: if your repo has .synaptic-sentinel/colony.db, the CLI keeps reading the legacy path (dual-read, no auto-migration to avoid data loss).
Known Limitations
Honest caveats — none affect your real source code, but you should know them:
- Cost in USD is an estimate, and unknown models show
$0. Prices come from a built-in table (public list prices as of 2026-05-23). Models that are not in the table — including many recent ones the model picker may offer — are shown as $0, which means unknown, not free. Token counts are provider-reported when the provider returns them, otherwise a chars / 4 proxy labelled ~estimated.
- Local LLMs with >5 GB models can saturate RAM on consumer hardware during long batch operations (
pnpm benchmark:run). Normal triage on a handful of findings is fine. For benchmark batches, prefer the ≤3 GB tier — the Configure Brain Layer Providers panel shows each Ollama model's size and a ⚠ badge for models above 5 GB (with a "Don't remind me again" option). Recommended lightweight models: gemma3:4b (~3 GB), qwen2.5-coder:7b (~4.4 GB), llama3.2:3b (~2 GB).
- Free-tier quotas exhaust quickly on Groq (100K tokens/day) and Gemini (RPM-limited). Fine for everyday triage on a few findings; use the paid tier for full benchmark runs.
- Model listing and key validation use each provider's default endpoint. A custom
baseUrl in agents.yaml is not used by the panel, and AWS Bedrock / Azure OpenAI can be neither listed nor validated from it. A model being listed does not guarantee it handles the Brain Layer's structured JSON output well.
- Group members never get their own context or remediation — the group representative carries them (see Cross-finding correlation above).
- Dependency (SCA) findings often come back inconclusive, even with a high confidence. The Triage Agent sees the vulnerable package and version from the lockfile, but not whether your code reaches the vulnerable function, so many models decline to call them true or false positives. The SCA grouped remediation (upgrade target) in the sidebar does not depend on the verdict.
See the CHANGELOG for the full, per-release list of known limitations and their rationale.
License
All packages — extension, Scout Layer, Brain Layer — are licensed under Apache License 2.0. Source code, including the three LLM agents, is open and redistributable.
Part of the SYNAPTIC family — Apache-2.0 toolkit for engineers shipping AI-assisted code with traceability.