Why Your AI Tool Needs Observability
Your AI coding assistant makes hundreds of decisions every session — what to read, what to edit, when to run commands. But you can't see any of it. You know it was fast, but was it efficient? You got a PR merged, but how much did it cost? You fixed a bug, but did it get stuck in a loop first?
Preflight is observability for agentic coding — the actions, cost, and efficiency of your AI coding assistant as it works. See exactly what's happening, how much it costs, and where your AI is wasting time.
Local-first by design. Preflight runs entirely on your machine and sends your data nowhere by default. A live dashboard at localhost:7777 shows your sessions in real time, fully offline. Connect a New Relic account only when you want more — team rollups, alerting, and cross-session history. You choose: local-only, New Relic, or both.
Cost and AI activity, not productivity. Preflight reports what AI coding costs and what the assistant did. In New Relic mode, the Adoption & Cost dashboard shows AI activity signals, such as tasks per developer and PRs the assistant created or merged. These signals are not a measure of developer or team productivity, which is out of scope, because a session has no link to a ticket and Preflight misses work done outside the assistant, such as a merge on GitHub. nr_observe_get_cost_per_outcome splits cost by inferred task type, and its ROI estimate comes from fixed hours-saved assumptions, not measured time.
Demo

See cost breakdown, efficiency scoring, anti-patterns, and live session tracking in action.
What You Get
Visibility
- Every action captured — file reads, edits, commands, searches
- Live session dashboard — see what's happening right now
- Historical trends — analyze patterns over weeks and months
Cost Control
- USD spend tracking — per session, day, and week
- Per-model and cache breakdown — know which models cost most and how efficiently context is reused
- Budget alerts — get notified before you overspend
- Forecasting — project monthly burn rate
Efficiency Insights
- Efficiency score — 0–100 score per task, based on how directly the AI worked
- Anti-pattern detection — catches re-reads, blind edits, stuck loops
- Personalized recommendations — optimize your AI workflow
- Weekly coaching reports — narrative analysis vs. your historical baseline
Dashboards
- Local dashboard — live session view at
localhost:7777, no account required
- 8 pre-built New Relic dashboards — deploy in seconds (New Relic mode):
- Overview — session stats, cost summary, top tools
- Personal — 30-day self-reflection scoped to you
- Session Detail — deep-dive into a single session's tool calls
- Team View — aggregated cost and efficiency across developers
- Manager View — high-level team metrics, no tool-call content
- Adoption & Cost — adoption momentum, spend, skill and MCP usage, and per-developer activity for engineering managers
- Platform Comparison — Claude Code vs. Cursor vs. Windsurf, etc.
- Security Audit — audit trail of sensitive file access
Quick Start
1. Install
npm install -g @newrelic/preflight
Using Smithery? Installing Preflight from the Smithery MCP registry wires up the MCP server for you, but Smithery has no mechanism to write Claude Code hooks. After install, either run preflight install in a terminal, or set "allowHeadlessInstall": true in your Preflight config (or NEW_RELIC_AI_ALLOW_HEADLESS_INSTALL=true) and ask Claude Code to call the nr_observe_install_hooks MCP tool. The tool refuses by default, because any connected MCP client can call it. With the flag on, it offers to do this automatically once nr_observe_health reports setup_required: true. Then restart Claude Code to activate monitoring.
2. Run setup
preflight setup