Skip to main content
ClaudeWave
ToolsOfficial Registry44 stars18 forksTypeScriptNOASSERTIONUpdated today
ClaudeWave Trust Score
62/100
· OK
Passed
  • Actively maintained (<30d)
  • Documented (README)
Flags
  • !Licence file present but not machine-readable
  • !No description
Last scanned: 9/9/2026
Get started
Method: Clone
Terminal
git clone https://github.com/newrelic-experimental/preflight
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Use cases

Tools overview

<div align="center">
  <img src="demo/preflight-logo.svg" alt="Preflight" width="96" height="96" />
  <h1>Preflight</h1>
  <p><strong>Observability for AI Coding Assistants</strong></p>

[![License](https://img.shields.io/badge/License-Apache%202.0-blue)](LICENSE)
[![Node 22+](https://img.shields.io/badge/Node-22%2B-brightgreen)](.nvmrc)
[![Local First](https://img.shields.io/badge/Local%20First-Offline%20by%20default-brightgreen)](#quick-start)
[![Dashboards Included](https://img.shields.io/badge/Dashboards-7%20Included-blue)](#dashboards)

[**Docs**](https://newrelic-experimental.github.io/preflight/) • [**What's New**](https://newrelic-experimental.github.io/preflight/whats-new/) • [**Examples**](examples/) • [**Community**](https://support.newrelic.com/s/) • [**Contributing**](CONTRIBUTING.md)

</div>

---

## 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**.

---

## Demo

![Preflight dashboard animation](demo/preflight-readme.gif)

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, MCP usage, and per-developer outcomes for engineering managers
  - **Platform Comparison** — Claude Code vs. Cursor vs. Windsurf, etc.
  - **Security Audit** — audit trail of sensitive file access

---

## Quick Start

### 1. Install

```bash
npm install -g @newrelic/preflight
```

> **Using [Smithery](https://smithery.ai)?** 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, ask Claude Code to call the `nr_observe_install_hooks` MCP tool (it will offer to do this automatically once `nr_observe_health` reports `setup_required: true`), then restart Claude Code to activate monitoring.

### 2. Run setup

```bash
preflight setup
```

The wizard defaults to **local mode** — press Enter through the prompts and you're set. It wires Preflight into your AI tool (hooks + MCP server) and writes config to `~/.newrelic-preflight/`. Takes under a minute, no account required.

> **Using GitHub Copilot?** The wizard also asks to install Copilot hooks — saying yes configures both the Copilot CLI and VS Code Copilot Chat automatically (hooks, MCP registration, and the fix for VS Code's hook double-capture), so Copilot gets the same tool-call and cost metrics Claude Code does. Run it standalone anytime with `preflight install --copilot`. See [docs/ADAPTERS.md](./docs/ADAPTERS.md#github-copilot-copilot) for details.

When prompted, pick a mode:

| Mode                  | What it does                                                         | New Relic account? |
| --------------------- | -------------------------------------------------------------------- | ------------------ |
| **local** _(default)_ | Everything stays on your machine; live dashboard at `localhost:7777` | Not needed         |
| **cloud**             | Ships telemetry to New Relic                                         | Required           |
| **both**              | Local dashboard **and** New Relic                                    | Required           |

### 3. Start coding

Restart your AI tool — hooks and the MCP server load at session start. Every tool call is captured automatically. Open **http://localhost:7777** to watch your session live.

> **Using Kiro?** Add Preflight as a [Kiro Power](docs/KIRO_POWER.md) for the
> `nr_observe_*` query tools — see the doc for install steps and how to add
> automatic tool-call capture on top.

> **Using Claude Code?** You can skip the npm install above and add Preflight as a [Claude Code plugin](docs/PLUGIN.md) instead:
>
> ```
> /plugin marketplace add newrelic-experimental/preflight
> /plugin install newrelic-preflight@newrelic-preflight-marketplace
> ```

### Other ways to install

**Cursor** — [Add to Cursor](https://cursor.com/en/install-mcp?name=newrelic-preflight&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBuZXdyZWxpYy9wcmVmbGlnaHQiLCItLXN0ZGlvIl19) installs the MCP server via a one-click deeplink; run `preflight setup` afterwards for hook capture.

---

## Works With

**Claude Code** • **Cursor** • **Windsurf** • **GitHub Copilot** • **Zed** • **Continue.dev** • **Amazon Q Developer** • **Amazon Kiro**

Coverage isn't uniform — some platforms capture every built-in tool call, others (Zed, Continue.dev) only see calls routed to Preflight's own MCP tools. See [ADAPTERS.md](docs/ADAPTERS.md) for what each platform can and can't observe, and per-platform setup steps.

---

## Connect New Relic (optional)

Local mode is fully featured on its own. Connect a New Relic account to unlock:

- **Team & manager dashboards** across multiple developers
- **Alerting** on cost spikes, low efficiency, and stuck loops
- **Cross-session history**, trends, and weekly coaching reports

Re-run `preflight setup` and choose **cloud** or **both**, or configure it non-interactively:

```bash
preflight install \
  --mode cloud \
  --license-key YOUR_LICENSE_KEY \
  --account-id YOUR_ACCOUNT_ID
```

EU accounts add `--eu`. FedRAMP accounts add `--fedramp`. Japan accounts add `--jp`.

Then deploy the prebuilt dashboards:

```bash
NEW_RELIC_API_KEY=NRAK-... NEW_RELIC_ACCOUNT_ID=12345 \
  preflight deploy-dashboards --all
```

You'll need a **license key** (telemetry ingest) and your **account ID**, plus a **user API key** (`NRAK-…`) to deploy dashboards and alerts. See [ADVANCED.md](docs/ADVANCED.md) for alerts, OTLP export to other backends, and Terraform.

> **No dashboard until you run `deploy-dashboards`.** Cloud mode ships telemetry to New Relic as soon as it's configured, but nothing creates a dashboard automatically — that's the separate step above, and it needs a **different** credential (a user API key, not your license key). Until you run it, there's no UI to look at. In the meantime, query the raw events directly in New Relic's **Query Builder**, e.g.:
>
> ```sql
> SELECT * FROM AiToolCall SINCE 1 hour ago
> ```
>
> Once `deploy-dashboards` succeeds, find the dashboards under your New Relic account's **Dashboards** section.

> **Data ingest note:** Telemetry sent to New Relic counts against your account's data ingest. On paid plans, standard ingest rates apply. Monitor your usage under **NR One → Data Management → Data Ingestion**.

---

## Requirements

### Required

- **Node.js v22 or higher** ([get it](https://nodejs.org) or use [nvm](https://github.com/nvm-sh/nvm))
- **An AI coding tool** (Claude Code recommended for deepest integration)

### Optional

- **New Relic account** — only for `cloud`/`both` mode. Skip it to run local-only (the default).
- **User API key** (`NRAK-…`) — only needed to deploy dashboards and alerts

---

## Other Commands

```bash
preflight doctor               # Run 10 diagnostic checks and print actionable fix commands
preflight validate             # Check config for syntax errors and unknown keys
preflight update               # Pull latest version, rebuild, and offer to restart a running dashboard (source installs only — npm installs: npm install -g @newrelic/preflight@latest)
preflight local                # List running --local dashboard processes and live --stdio MCP processes
preflight local --clean        # Kill orphaned --local processes and --stdio processes with a missing binary (prompts for confirmation)
preflight uninstall            # Remove hooks and MCP config (prompts with a summary first)
preflight uninstall --yes      # Skip the confirmation prompt (for scripts and CI)
preflight uninstall --daemon   # Remove only the background dashboard daemon
```

Add `--project` to `install`/`uninstall` to scope changes to the current directory only.

**WSL users:** `preflight setup` will ask which Claude Code you're running. You can also set it explicitly:

- 

What people ask about preflight

What is newrelic-experimental/preflight?

+

newrelic-experimental/preflight is tools for the Claude AI ecosystem with 44 GitHub stars.

How do I install preflight?

+

You can install preflight by cloning the repository (https://github.com/newrelic-experimental/preflight) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is newrelic-experimental/preflight safe to use?

+

Our security agent has analyzed newrelic-experimental/preflight and assigned a Trust Score of 62/100 (tier: OK). See the full breakdown of passed checks and flags on this page.

Who maintains newrelic-experimental/preflight?

+

newrelic-experimental/preflight is maintained by newrelic-experimental. The last recorded GitHub activity is dated 2026-09-08, with 92 open issues.

Are there alternatives to preflight?

+

Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.

Deploy preflight to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: newrelic-experimental/preflight
[![Featured on ClaudeWave](https://claudewave.com/api/badge/newrelic-experimental-preflight)](https://claudewave.com/repo/newrelic-experimental-preflight)
<a href="https://claudewave.com/repo/newrelic-experimental-preflight"><img src="https://claudewave.com/api/badge/newrelic-experimental-preflight" alt="Featured on ClaudeWave: newrelic-experimental/preflight" width="320" height="64" /></a>

More Tools

preflight alternatives