Open Source VS Code Extension

Catch regressions in your diff, not in CI or production.

Mewra PreFlight is the pre-push control tower for VS Code. It runs diff-scoped linters, formatters, type-checkers, secret scans, and manual checklists across your stack — unlocking a one-click PR launch only when your changes are clean.

> ext install mewra.mewra-preflight

The In-Editor Control Tower

Real VS Code Extension Development Host execution — click tabs to see each pipeline state.

Mewra PreFlight — VS Code Webview Panel
Shortcut: Alt+Shift+P
Mewra PreFlight: Failed Check with In-Editor QuickFix

Blockers Caught Early with Clickable Findings & One-Click QuickFix

PreFlight detects that app.tsx is unformatted. A single click on 'Fix' repairs the file. Missing tools (ESLint) degrade gracefully to 'not-configured' with an Install button instead of crashing.

1 Blocker (Red) Prettier Fix All ESLint (Not Configured) PR Launch Locked

Why In-Editor Diff Sanity Beats Pre-Push Git Hooks

Traditional pre-push hooks are friction-heavy terminal scripts. PreFlight gives you instant, visual feedback before you push.

Traditional Git Pre-Push Hooks
  • ❌
    Runs too late: Triggers only after typing git push in your shell, jarring you out of your workflow.
  • ❌
    Terminal wall of text: Unclickable file paths and lines with zero inline quick-fixes.
  • ❌
    Fragile scripts: If a teammate doesn't have a binary installed globally, the hook crashes their push entirely.
  • ❌
    Slow entire-repo scans: Often re-checks untouched code, dragging push latency to 30+ seconds.
  • ❌
    Bypassed with --no-verify: Developers get frustrated and skip verification altogether.
Mewra PreFlight Control Tower
  • ✅
    In-editor on demand: Trigger with Alt+Shift+P whenever you're ready to review your progress.
  • ✅
    Direct file:line navigation: Click any finding to open the exact file and line in your active editor.
  • ✅
    Bring Your Own Tool (BYOT): Resolves node_modules, .venv, or vendor. Missing tools show not-configured with an Install button.
  • ✅
    Strictly diff-scoped: Only analyzes modified lines against main, finishing in milliseconds (1ms–400ms).
  • ✅
    One-click PR Launcher: Pushes your branch and drafts a structured PR description on GitHub or GitLab automatically.

Polyglot Ecosystem Packs

Zero configuration required. PreFlight detects active languages and runs project-local tooling.

TypeScript / JavaScript
Built-in Pack
Prettier prettier --check
ESLint eslint --format json
TypeScript tsc --noEmit (diff-filtered)
Test Pairing *.ts ➔ *.test.ts
Python
Built-in Pack
Ruff / Black ruff format / black
Ruff / Flake8 ruff check / flake8
MyPy mypy <diff-files>
Test Pairing <mod>.py ➔ test_<mod>.py
Go
Built-in Pack
gofmt gofmt -l <diff-files>
go vet go vet ./... (packages)
golangci-lint golangci-lint run
Test Pairing *.go ➔ *_test.go
PHP
Built-in Pack
PHP-CS-Fixer php-cs-fixer --dry-run
PHPStan / Psalm phpstan analyse
Test Pairing Class.php ➔ ClassTest.php
Composer vendor/bin resolution

Language-Agnostic Guardrails & Custom Checks

Common developer pitfalls caught automatically over added diff lines only.

Universal Secret & Leak Guard

Scans only newly added git diff lines for accidentally staged credentials, OpenAI/AWS tokens, private keys, or .env file content before it reaches your repository.

API Keys JWT Tokens Private Certificates .env Staged Lines

Clean Code Sanity Checks

Catch stray debugging leftovers before code review: console.log, debugger, print(), dd(), var_dump(), hardcoded localhost:* URLs, and unresolved merge markers.

No console.log No debugger No Localhost URLs Merge Conflicts

File-Triggered Manual Checklists

Define team verification items that only appear when relevant files are touched. Did you touch prisma/migrations/**? PreFlight automatically displays: "Applied DB migration to dev cluster".

Conditional Glob Triggers Human Verification Agent Checkable

Native Model Context Protocol (MCP) Server

PreFlight exposes a native VS Code MCP server. AI coding agents running in your editor can inspect pipeline diagnostics, run verification loops, and confirm code cleanliness without terminal scraping.

Claude Code Cursor OpenCode Codex

Exposes strictly scoped tools: get_preflight_status, get_check_findings, run_check, and mark_manual_check. Arbitrary shell execution is completely locked down.

// AI Agent calls PreFlight MCP Server
const status = await mcp.get_preflight_status();

if (!status.isClean) {
  const findings = await mcp.get_check_findings("prettier");
  // Agent fixes src/webview/app.tsx:1
  await editor.applyEdit(findings);

  // Re-verify immediately
  const result = await mcp.run_check("prettier");
  // result: { status: "pass", findings: [] }
}

Designed for focused companion checks

PreFlight is the host. Companion extensions add specialized checks without turning your editor into a CI server. Follow release notes and the roadmap on GitHub.

Extension What it adds Explore
Mewra PreFlight Diff-scoped guardrails, ecosystem checks, manual checklists, direct PR/MR creation, and a native VS Code MCP bridge. View repository
Mewra Pounce Reverse call tracing and diff-scoped blast-radius route summaries in the PreFlight dashboard and PR/MR drafts. View repository
Mewra Dependency Guard Diff-scoped OSV and Trivy lockfile scanning plus secure dependency-source checks, using Docker or your local tools. View repository

Keep your git history clean.

Install Mewra PreFlight in VS Code today and never push broken code or forgotten console.logs again.

Terminal Quick Install
$ code --install-extension mewra.mewra-preflight