HomeAI EditorsNew Relic Preflight で Claude Code と Cursor の挙動を計測する
New Relic Preflight で Claude Code と Cursor の挙動を計測する

New Relic Preflight で Claude Code と Cursor の挙動を計測するThe author walks through integrating New Relic's open-source Preflight tool…

AI要点サマリSummary highlight

New RelicのOSS「Preflight」をClaude CodeとCursorに導入し、トークン消費やボトルネックを定量的に把握する方法を、公式手順との差異も含めて解説している。

The author walks through integrating New Relic's open-source Preflight tool into Claude Code and Cursor to objectively measure token usage and bottlenecks, noting where the official setup steps diverge from reality.

要約と収集メタデータをもとに生成した AI 解説本文です。元記事全文の転載・翻訳ではありません。This AI explainer is generated from the summaries and collected metadata, not from a reproduction or translation of the full source article.

Claude Code や Cursor といった AI コーディングツールを日常的に使う開発者は増えているが、どの作業にどれだけのトークンを消費し、どこで処理が滞っているのかを客観的に把握するのは難しい。New Relic が公開したオープンソースツール「Preflight」は、そうした AI コーディングの利用実態を計測するためのものだ。ある技術者が、Claude Code と Cursor の両方に実際に導入した手順を、公式ドキュメントとの食い違いも含めて解説している。

Preflight は New Relic の実験的リポジトリ(newrelic-experimental)で公開されている OSS で、記事では v1.14.34 を検証対象としている。狙いは、これまで「体感」でしか捉えられていなかったトークン消費量やボトルネックを、定量的なデータとして可視化する点にある。何にいくら使っているのか、どの工程で詰まっているのかが数値で見えるようになれば、コスト管理や作業効率の改善につなげやすくなると見られる。

背景には、生成 AI を組み込んだ開発ワークフローの広がりがある。Claude Code や Cursor はいずれもモデルへの問い合わせに応じてトークンを消費し、使い方次第で費用が変動するため、利用状況の可視化、いわゆるオブザーバビリティ(可観測性)の重要性が高まっている。従来はアプリケーション監視の分野で強みを持つ New Relic のような企業が、AI や LLM を対象とした計測領域に踏み出している構図と言える。

一方で記事は、実際の導入が公式手順どおりには進まなかった点も率直に伝えている。ドキュメントと現実の挙動に差異があったとのことで、これから試す人にとっては、つまずきやすいポイントを事前に知る手がかりになりそうだ。ツールが実験的な位置づけであることを踏まえると、バージョンによって手順や挙動が変わる可能性もある。

なお本記事は MCP(Model Context Protocol)関連のトピックとして分類されている。AI コーディング環境の計測手段はまだ発展途上であり、Preflight のような OSS がどこまで実用的な指標を提供できるかは、今後の検証と利用者の知見の蓄積にかかっていると言えそうだ。

Developers who rely on AI coding assistants such as Claude Code and Cursor often lack a clear picture of what those tools actually cost and where they slow down. A blog post on Zenn walks through using New Relic's open-source Preflight tool to turn that vague sense into measurable data, documenting both the setup process and the places where the official instructions do not match reality.

The author frames the problem in familiar terms: they use Claude Code and Cursor every day, but their understanding of how much each tool consumes, what it costs, and where bottlenecks occur has been based only on intuition. Preflight, released by New Relic as open-source software, is designed to instrument exactly that gap. The project is hosted under the newrelic-experimental organization on GitHub, and the author tested version v1.14.34 across both Claude Code and Cursor.

Preflight fits into the broader category of observability tooling, a discipline that New Relic has built its business around. Observability traditionally refers to collecting metrics, logs, and traces from running software so engineers can understand system behavior after the fact rather than guessing. Applying that mindset to AI coding agents is a comparatively new idea. Instead of monitoring a web service, Preflight appears to capture signals about how these assistants operate: token consumption, cost, and the points where a workflow stalls.

The connection to the Model Context Protocol (MCP) is central to why this matters for the current tooling landscape. MCP is an open standard for connecting AI models to external tools and data sources, and it has become a common integration layer for editors and agents including Claude Code and Cursor. Tagging this work under MCP and mcp-server">mcp-server suggests Preflight plugs into that ecosystem, allowing it to sit between the coding assistant and the services it calls. That positioning is what makes a single instrumentation approach viable across two different products.

Token usage is the practical concern the article emphasizes. Large language models are billed by tokens, the chunks of text a model reads and generates, so a developer's real spending is tied directly to how much context each request carries and how often the assistant re-reads files or repeats work. Without measurement, it is difficult to know whether a slow or expensive session stems from a large codebase, an inefficient prompt, or the tool's own behavior. Preflight's stated purpose is to make those quantities visible so they can be compared and optimized rather than estimated.

A notable part of the write-up is the author's candor about friction during installation. They report that following the official procedure did not go smoothly and that the documented steps diverged from what actually happened when installing v1.14.34. This kind of first-hand account is useful precisely because experimental projects often move faster than their documentation. Readers considering the same setup should expect to adapt the instructions, and the fact that the repository lives under newrelic-experimental reinforces that the tool is still evolving.

For context, the timing aligns with a wider industry push to bring cost and performance monitoring to AI-assisted development. As teams adopt agentic coding tools, questions about budget control, latency, and reliability have grown, and vendors across the observability space have started extending their platforms toward large language model workloads. New Relic's decision to release Preflight as open source, referenced in a company press announcement dated to late July, is consistent with that trend and lowers the barrier for developers to experiment without committing to a paid tier first.

The practical takeaway is modest but concrete. If you already work in Claude Code or Cursor and want to replace guesswork with numbers, Preflight offers one path to instrument token usage and locate bottlenecks, provided you are prepared to troubleshoot a setup that is not yet fully polished. As with any experimental release, behavior may change between versions, and the author's experience with v1.14.34 is a snapshot rather than a guarantee. Still, the underlying shift it represents, treating AI coding sessions as something to be measured like any other production system, is likely to become more common as these assistants move deeper into everyday workflows.

  • 出典SourceZenn CursorコミュニティCommunity
  • 直近30件の平均重要度Avg importance, last 301=Info · 2=Medium · 3=High
  • 配信形式FormatブログBlog
  • 重要度Importance重要度 MediumMedium priority(AI Editors 200件中、同等以上 196件)(196 of 200 AI Editors entries are equal or higher)
  • 情報の寿命Half-life📘 中期 (チュートリアル)Medium-term (tutorial)
  • 原文言語Source languageJA
  • 収集日時Collected2026/08/17 21:17

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (zenn.dev) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (zenn.dev).

🖱️AI Editors の他の記事More from AI Editorsもっと見る →View more →