Cortex watches your codebase in real time, scores every file 0–100 across 7 weighted metrics, and surfaces risk before it becomes a problem. Everything runs on your machine.
Every feature runs locally, updates on every save, and gives you concrete signal, not vague advice.
Each file gets its own 0–100 risk score, recalculated on every save. No project averages, just precise, per-file signal updated in real time.
Interactive dependency graph of your import edges. Nodes colored by risk, sized by fan-in. Pan, zoom, explore the coupling, spot the dangerous files before they cause a regression.
Full scan history with an interactive trend graph. Track your project's risk score over time, by scan or by day. See exactly when complexity crept in, and when a refactor paid off.
Static pattern scan for secrets, XSS vectors, unsafe crypto, eval usage, and more. Plus npm advisory integration to catch vulnerable dependencies, without leaving the app.
Open any function directly from the detail panel. Read it with syntax highlighting, then switch to edit mode. Powered by CodeMirror 6. Save triggers an instant rescan so you see the impact immediately.
Each metric is independently computed, then combined into a single weighted risk score. Thresholds adapt to your project's own distribution. What's normal here stays green.
{ a, b, c }) are counted individually, not as one.complexity × churn, capped at 150. The real targets for refactoring.Cortex runs entirely on your hardware. There's no cloud, no account, no analytics pipeline. Your source code stays where it belongs.
npm audit. Only package names and versions reach the npm registry, never your source code.cortex.db) in Electron's userData folder. Inspect, export, or delete it anytime.npm audit · package names only
One click exports a complete snapshot of your project's health. Markdown for humans, JSON for tools.
Free, open source, local-first. No account needed. Works on any TypeScript, JavaScript or Python codebase.