惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
美团技术团队
D
Docker
WordPress大学
WordPress大学
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
Y
Y Combinator Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - av29nassh-sketch/PreFlight: The local security g...
Avenassh · 2026-06-23 · via Hacker News: Show HN

Stop AI Coding Drift before it becomes production technical debt. PreFlight is a local-first safety gate for AI-generated code, built to catch unsafe auth, RLS, SQL, SSRF, command execution, dependency, and secret-handling changes before they get committed.

Website: https://preflight-vibe.vercel.app

Choose Your Remediation Depth

PreFlight runs in two distinct tiers depending on what your codebase needs.

Free Tier: PreFlight Guardian

  • What it does: Unlimited local scanning plus 10 free patch applications across local deterministic fixes and proxy-backed AI fixes.
  • Setup: Zero config for scanning. A Pro key is only required after the 10 free patches are used.
  • Commands:
npm install -g preflight-pro
preflight init
preflight scan . --fix

Installing preflight-pro exposes the universal preflight command in your shell.

Pro Tier: PreFlight Pro

  • What it does: Unlimited scans and unlimited fixes, including deep reasoning remediation for complex multi-file architectural flaws, tenant isolation logic, and parametric SQL injections.
  • Setup: Requires an active PREFLIGHT_PRO_KEY or a saved key from preflight auth.
  • PowerShell:
$env:PREFLIGHT_PRO_KEY="PREFLIGHT-BETA-XXXXX"
preflight scan . --fix
  • Bash / macOS:
export PREFLIGHT_PRO_KEY="PREFLIGHT-BETA-XXXXX"
preflight scan . --fix

Installation Flow

PreFlight supports both a terminal-first workflow and an IDE-first workflow. Both paths end with preflight init, because that wizard connects your editor, MCP clients, and Pro/Beta key in one place.

Path A: CLI

npm install -g preflight-pro
preflight init

Then scan any project from its root:

Path B: VS Code / Cursor

  1. Install the global CLI command. The VSIX gives you the in-editor UI, but the extension still uses the global preflight command to start The Eye daemon and run fixes.
npm install -g preflight-pro
  1. Download and install the PreFlight Companion VSIX extension:
  1. Run the setup wizard once:
  1. Open your project in the IDE. The extension starts The Eye automatically, watches file saves, and surfaces PreFlight alerts in-editor.

The Eye and MCP

  • The Eye: The VS Code/Cursor extension starts PreFlight's local daemon automatically. It watches file saves and raises in-editor alerts when AI-generated code introduces a hard-block issue.
  • MCP bridge: preflight init can also wire preflight mcp into supported AI editors so agents can call PreFlight tools without leaving the coding flow.

Beta / Pro Keys

Free users get unlimited scans and 10 total patches across local fixes and proxy-backed AI fixes. After the 10 free patches are used, unlimited fixes require a Pro/Beta key.

You can add your key during preflight init, or activate it directly:

preflight auth PREFLIGHT-BETA-XXXXX

For one terminal session, you can also set it manually:

$env:PREFLIGHT_PRO_KEY="PREFLIGHT-BETA-XXXXX"
export PREFLIGHT_PRO_KEY="PREFLIGHT-BETA-XXXXX"

Pricing

  • Free Tier: Unlimited scans, 10 Free Patches (Local + Deep-Reasoning AI).
  • Solo Pro: $19/mo for unlimited scans and fixes.
  • Teams: $49/seat/mo for team rollout, shared onboarding, and unlimited scans and fixes.

Engine Upgrades

PreFlight is now powered by deeper local analysis primitives:

  • Micro-Fuzzer: Generates focused security payloads for risky data-flow paths, such as SQL injection, command injection, auth bypass, SSRF, and path traversal.
  • Quantized CPG (Code Property Graph): Builds a compact in-memory graph of syntax, control flow, and data flow so PreFlight can trace untrusted input into dangerous sinks instead of relying on brittle string matching.
  • The Eye daemon: Runs locally through the CLI/extension workflow and watches file saves so issues appear while the AI coding session is still active.

Tri-State Risk Score Engine

This is the core PreFlight signal. Every scan resolves into one of three clear outcomes so you know whether to stop, review, or ship.

Score Meaning What It Catches
🔴 Hard Block Stop immediately. This change is unsafe to ship. Exposed frontend secrets, leaking database service roles, command execution, SQL injection, or missing Supabase Row Level Security (RLS).
🟡 High-Risk Drift Review carefully. The code may be structurally wrong even if it runs. Structural state inconsistencies, un-idempotent webhooks, weak validation, or open CORS contexts.
🟢 Pass Safe to continue. No blocking structural risk was detected. Standard local edits matching your expected stack rules.

2-Phase Pipeline

PreFlight runs fixes in a strict sequence:

  1. Phase 1: Offline Local AST Sweep PreFlight completes an ultra-fast offline structural pass first and applies any deterministic local fixes it can resolve safely.
  2. Phase 2: PreFlight Pro Deep Reasoning Handoff Remaining SQL, fuzzer, and complex architectural flaws are handed off through the secure proxy-backed reasoning path when a patch requires deeper context.

The first 10 patch applications are free across both phases. After that, a PREFLIGHT_PRO_KEY is required.

Editor & MCP Usage

PreFlight can run directly in the terminal, through the VS Code/Cursor extension, or as an MCP server for AI-native editors.

Start the MCP server locally:

Available MCP tools include:

  • scan_project
  • preflight_fix
  • audit_dependencies

scan_project remains free and unlimited. preflight_fix shares the global 10-patch free allowance before a PREFLIGHT_PRO_KEY is required.

Post-Fix Verification Loop

PreFlight is designed to be used as a closed loop, not a one-shot scanner:

  1. Generate or modify code with your AI coding assistant.
  2. Run preflight scan . to classify the change under the Tri-State Risk Score.
  3. If PreFlight returns Hard Block, stop and repair the structural issue before moving forward.
  4. If PreFlight returns High-Risk Drift, run preflight scan . --fix and inspect every proposed fix before applying it.
  5. Re-run preflight scan . after each accepted fix to confirm the repository settles into Pass.
  6. Ship only after the final verification pass is green and the structural receipt matches the architecture boundary you intended.

This verification loop is the product: scan, review, patch, re-scan, then deploy with confidence.