Cursor、クラウドエージェント向け開発環境の構築方法を公開
本文の状態
日本語全文を表示中
詳細モードで約8分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Cursor Research
Cursor はクラウドエージェントが自社のコードベースでテストと変更を可能にするため、開発環境を製品化し、ローカル環境との整合性を確保する取り組みを進めている。
AI深層分析を開く2026年8月4日 14:16
AI深層分析
キーポイント
開発環境の製品化
Cursor はクラウドエージェント向けの開発環境を「ユーザーがエージェントである製品」と位置づけ、その健全性と使いやすさを追求している。
ローカルとクラウドの統合
Mac で開発するエンジニア向けに設計されたコードベースを Linux ベースのクラウド VM でも同等に動作させるため、依存関係やスクリプトの非同期化を進めた。
エージェントによる PR 作成の増加
環境整備の結果、12 月には結合された Pull Request の約 10% をクラウドエージェントが作成していたが、現在は半数以上を占めるに至っている。
セキュリティ機能の強化
ネットワークの出口制限やスコープ付きプロキシされたGitアクセス、コミット内のシークレットスキャン、ツール結果でのシークレット隠蔽などの機能を追加し、ユーザーが環境に機密情報を安全に注入できるようにした。
anydev CLIによる開発体験の簡素化
複雑なビルドコマンドや脚注を排除するため、anydevというCLIを開発し、エージェントがサービスを開始したり、長_runningプロセスを監視・再起動する責任から解放された。これにより、エージェントはコードを確実に実行できるようになり、ローカル環境でのチェックアウトなしで変更をマージ・デプロイ可能になった。
重要な引用
Getting our monorepo working for cloud agents taught us that the development environment is a product in its own right, only one whose users are agents.
You have to make cloud match local development, make the repo legible enough that agents can run and test code without tribal knowledge, and keep that environment healthy as the codebase changes.
anydev also has a supervisor process which monitors and restarts long-running build commands, removing that responsibility from the model entirely.
They could also share agent-recorded demos in Slack when someone fixed a bug report, or on a PR when they opened a change.
編集コメントを表示
編集コメント
この記事は、AI エージェントの活用において「環境構築」がいかに決定的な要素かを浮き彫りにしている。従来のツールとしての AI から、自律的な開発者として機能するエージェントへの進化には、人間が想定しないトラブルを排除する堅牢な基盤が不可欠であることが示唆されている。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
クラウドエージェントにコンピューターを使用できるようにして変更のテストを行えるようにした際、最初のステップは、彼らが自社のコードベースでテストを適切に行えるようにすることでした。
モノレポをクラウドエージェント向けに動作させる過程から、開発環境自体が一つの製品であるという教訓を得ました。ただし、そのユーザーは人間ではなくエージェントです。クラウド上の環境とローカル開発の整合性を保ち、暗黙知なしにエージェントがコードを実行・テストできるほどリポジトリを見やすくし、コードベースが変化する中でも環境を健全に維持する必要があります。
この環境構築により、私たちの働き方自体が変わりました。12 月には、Cursor のモノレポにマージされたプルリクエストの約 10% をクラウドエージェントが作成していました。現在は、その割合は半数を超えています。
クラウドとローカル開発の整合性確保
クラウドエージェントをリポジトリで円滑に動作させるための第一歩は、リポジトリ自体をクラウド VM で快適に使えるようにすることでした。この段階は、初めてリモート開発環境を設定するエンジニアなら誰でも経験するものです。
Cursor の開発者の多くは Mac 上でローカル開発を行っていますが、クラウド上の VM は Linux で稼働しています。そのため、さまざまな開発ユーティリティやセットアップスクリプトを Ubuntu VM でも動作するように汎用化する必要がありました。これに対応するため、cloud agents の開始イメージとして機能する Cursor 定義の Dockerfile に、重要な開発依存パッケージを追加しました。

クラウドエージェント製品にはセキュリティチームと連携して機能を実装しました。これにより、ユーザーは必要なシークレットをエージェント環境に安全に注入できるようになります。
具体的には、ネットワークの外部接続制限(egress restrictions)、スコープ限定かつプロキシ経由での Git リモートアクセス、コミットやコミットメッセージ内でのシークレット検出、ツール実行結果におけるシークレットの隠蔽機能などが含まれます。これにより、エージェントが意図的にシークレット値を読み取ろうとしても、実際には取得できないようにしています。
エージェント向けのシンプルなインターフェース
Ubuntu 上の VM で開発環境を構築できた後も、エージェントはコードの実行において依然として不十分でした。これは驚くべきことではありません。なぜなら、私たちの開発体験(devex)は複雑怪奇で、多数のビルドコマンドやフラグ、ユーティリティスクリプトを学習し記憶する必要があったからです。
システム各部のビルドと実行方法を記述したスキルを作成しましたが、それは限定的な効果しか生みませんでした。スキルでは正しいコマンドを文書化できますが、そのコマンド自体が複雑怪奇で、落とし穴(footguns)に満ちていたのです。
複雑さを減らすため、エージェントがすべてのサービスを起動できる CLI「anydev」を開発しました。一般的なユーティリティスクリプトも anydev を経由してルーティングし、各サブコマンドの使い方を説明する複数の --help メニューを備えています。また、anydev には監視プロセス(supervisor process)があり、長時間実行されるビルドコマンドを監視・再起動します。これにより、モデルがその責任を負う必要はなくなりました。
anydev のおかげで開発体験がシンプルになり、エージェントはコードを確実に実行できるようになりました。スキル(Skills)は使い方の文書化に役立ちましたが、より大きな変化は、エージェントがもはやニッチな多段階ビルドコマンドを捌いたり、隠れた落とし穴を避けたり、長時間実行されるプロセスを見守ったりする必要がなくなった点です。
こうして、それぞれが独自のコンピュータを持つクラウドエージェントは、ローカルエージェントに比べて真の価値を発揮し始めました。コンピューター操作機能と画面記録ツール(recordScreen)、そして動作する開発環境があれば、エージェントは変更をエンドツーエンドでテストでき、その成果の正しさをユーザーに証明できるようになりました。
バグレポートが解決された際に Slack でエージェントが記録したデモを共有したり、変更を開いた際のプロダクトリクエスト(PR)で公開したりすることも可能です。多くのタスクにおいて、エンジニアはローカルでブランチをチェックアウトすることなく、クラウドエージェントのコードを自信を持ってマージ・デプロイできるようになりました。
*内部のクラウドエージェントは、改善されたエージェントセッションのリトライテストのために、クラウド環境内で Cursor エージェントを使用しています。
自己修復型環境
エージェントを取り巻く環境は常に変化するため、それを稼働状態に保つには、実行方法やアクセス権限を継続的に更新し続ける必要があります。
不健全な環境が障害を起こした際に診断して復旧させるため、私たちは Cursor Cloud MCP を構築しました。MCP を選んだのは、エージェントループを再構築せずにインターフェースを変更できる動的に検出可能なツールを提供してくれたからです。クラウドエージェントはこの仕組みを使って、セットアップの失敗や外部通信ポリシーの変更、シークレット情報の更新などを自環境で検査します。これにより、問題が発生した瞬間に診断・修正が可能になり、不健全な環境を早期に復旧させることができます。
Cursor Cloud MCP の導入に伴い、Cloud Doctor という自動化プロセスも整備しました。このシステムは定期的に障害を検出し、一時的なエラーと恒久的な問題を区別して記憶します。さらに根本原因の分析を行い、高い信頼性を持って修正のためのプルリクエストを自動作成することも可能です。
エージェント体験の向上
環境が健全であっても、エージェントが変更を確認するために時間のかかる迂回経路を選んだり、無理のある手順を踏んでしまったりすることがあります。間違ったスキルを使用したり、回避可能な VM 上の問題に直面したり、本来より長いワークフローを実行してしまうケースも発生します。
こうした課題に対しても Cursor Cloud MCP を活用しています。Cloud Doctor エージェントはトレースを検査し、他のエージェントがどこで間違えたか、どのスキルやコマンドが誤解を招いたか、どのワークフローが体系的に遅いかを特定します。その分析結果に基づき、Cloud Doctor はスキルの修正、経路の簡素化、あるいは環境自体の変更を行い、次回のエージェントがよりスムーズに作業できるよう支援します。
このループは、エージェント自体の開発者体験を継続的に向上させています。環境が健全で自己修復機能を持っていれば、エージェントは確実に動作し、開発者はクラウドエージェントにより重要な業務を任せるようになります。
これにより、社内でクラウドエージェントの導入規模を拡大することが可能になりました。現在では、出荷するコードの過半数をエージェントが作成しています。

クラウドエージェントに最適な環境を整える
クラウドエージェントが活躍できるかどうかは、ほとんどが環境次第です。コードベースが準備できているか確認するには、以下の 3 つの質問に答えてみましょう。
- エージェントには、開発者が使うのと同じツールとデータへのアクセス権があるか?
- 開発者の実際の作業方法を記述したスキルを、エージェントは見つけられるか?
- エージェントは主要なワークフローを検証・テストできるか?
環境を整えるお手伝いが欲しい場合は、こちらからご連絡ください。
さらに詳しく知りたい方は、Faire がクラウドエージェントを導入して週次 PR 処理量を倍増させた事例をご覧ください。
原文を表示
When we decided to give cloud agents computers so they could test their changes, the first step was to make sure they were good at testing them in our own codebase.
Getting our monorepo working for cloud agents taught us that the development environment is a product in its own right, only one whose users are agents. You have to make cloud match local development, make the repo legible enough that agents can run and test code without tribal knowledge, and keep that environment healthy as the codebase changes.
Building that environment has changed the way we work. In December, cloud agents authored roughly one in ten PRs merged to the Cursor monorepo. Today, they write more than half.
Matching cloud to local development
The first step to making cloud agents work well in our repo was making our repo work well in a cloud VM. This stage is familiar to any engineer who has set up a remote development environment for the first time.
Most Cursor devs develop locally on Mac machines, but our cloud VMs run on Linux. This meant we had to agnosticize various dev utilities and setup scripts to work on Ubuntu VMs. We added critical dev dependencies to a Cursor-defined Dockerfile that serves as the starting image for cloud agents.

We also worked with our security team to add security features to the cloud agent product, so that users could confidently inject required secrets into the agent's environment. These features include network egress restrictions, scoped and proxied git remote access, secret scanning in commits and commit messages, and secret redaction in tool results, which prevents the agent from reading secret values even if it tries.
A simpler interface for agents
Even after we had our dev setup working on Ubuntu VMs, agents were still bad at running our code. This wasn't surprising, because our devex was messy and involved learning and remembering numerous build commands, build flags, and utility scripts.
We wrote skills for how to build and run many parts of the system, but this only helped on the margins. Skills can document the right commands, but those commands themselves were convoluted and filled with footguns.
To reduce that complexity, we built a CLI called anydev, which agents can use to start all services. We route common utility scripts through anydev as well, and equipped anydev with multiple --help menus explaining how to use each subcommand. anydev also has a supervisor process which monitors and restarts long-running build commands, removing that responsibility from the model entirely.
anydev made the development experience simple enough that agents could run their code reliably. Skills helped document how to use it, but the bigger change was that agents no longer had to juggle niche multi-step build commands, dodge hidden footguns, or babysit long-running processes.
This is when cloud agents, each with their own computer, began to add real value over local agents. With computer use, their recordScreen tool, and a working dev environment, agents could now test their changes end-to-end, and prove the correctness of their work to the user.
They could also share agent-recorded demos in Slack when someone fixed a bug report, or on a PR when they opened a change. For many tasks, engineers could now confidently merge and deploy cloud agent code without ever checking out the branch locally.
*An internal cloud agent uses Cursor agents in its cloud environment to test improved agent session retries.*
A self-healing environment
The environment around the agent is always changing, so keeping it operational means continually updating how it runs and what it can access.
To diagnose and recover unhealthy environments as they fail, we built Cursor Cloud MCP. We chose MCP because it gave us dynamically discoverable tools with interfaces we could change without rebuilding the agent loop. Cloud agents use it to inspect their own environment for setup failures, egress policy, changed secrets, and more. That lets them diagnose and fix issues as they emerge, and recover unhealthy environments sooner.
With Cursor Cloud MCP in place, we set up an automation called Cloud Doctor, which periodically checks for failures, remembers which errors might be transient versus salient, does root cause analysis, and can open PRs to fix issues with high confidence.
Improving agent experience
Even with a healthy environment, agents sometimes take long or contrived routes to verify their changes. They may use the wrong skill, hit avoidable issues in the VM, or follow workflows that take longer than they should.
We use Cursor Cloud MCP here as well. Cloud Doctor agents inspect traces to find where another agent went wrong, which skills or commands were misleading, and which workflows are systematically slow. From those findings, Cloud Doctor fixes the skill, simplifies the path, or changes the environment so the next agent has an easier time.
That loop keeps improving the developer experience of the agents themselves. When the environment is healthy and self-healing, agents run reliably and developers trust cloud agents with more important work.
That's allowed us to scale adoption of cloud agents internally, such that they now author a majority of the code we ship.

Making your environment ready for cloud agents
Most of what makes cloud agents productive for us comes down to the environment. To find out whether your codebase is ready, start by answering three questions:
- Do agents have access to the same tools and data a developer would?
- Can agents find skills that document how your developers actually work?
- Can agents test and verify core workflows?
If you'd like help getting your environment ready, please get in touch.
Or, to learn more, read how Faire doubled weekly PR throughput with cloud agents.
AI算出
技術分析ainew評価高い
Cursor がクラウドエージェント向けに開発環境を「製品」として再設計した具体的な手法や、複雑なビルドプロセスを簡素化する CLI ツール「anydev」の紹介など、再現可能な技術的洞察が含まれており、新規性も高い。ただし、対象は Cursor 単一の事例であり、日本固有の事情や企業への直接的な影響に関する記述は限定的である。
6つの評価軸を見る
- AI関連度
- 75
- 情報源の信頼性
- 100
- 新規性
- 75
- 調べる価値
- 75
- 重複の少なさ
- 100
- 日本での有用性
- 25
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み