コーディングエージェント向けクラウド環境構築のガイドラインを公開
本文の状態
日本語全文を表示中
詳細モードで約8分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
TLDR AI
Cursor はクラウド環境でのコーディングエージェントの運用を成功させ、開発環境自体がエージェント向け製品として再構築されたことを発表し、現在では同社のマノリポへのプルリクエストの半数以上をエージェントが作成している。
AI深層分析を開く2026年7月31日 23:37
AI深層分析
キーポイント
クラウドとローカルの環境整合性の実現
多くの開発者が Mac で作業する一方でクラウド VM は Linux を使用するため、Cursor は開発ユーティリティやセットアップスクリプトを Ubuntu 上で動作するように非依存化し、Dockerfile に必要な依存関係を追加した。
エージェント向け開発環境の製品化
開発環境は単なるインフラではなく、ユーザーがエージェントである製品として扱われ、トリビア知識なしにコードを実行・テストできるような可読性の高いリポジトリ設計が求められた。
エージェントによるコード作成の急増
12 月にクラウドエージェントがマノリポへのプルリクエストの約 10% を作成したのに対し、現在はその割合が半数を超え、開発プロセスに深く組み込まれている。
環境健全性の維持戦略
コードベースの変化に伴ってクラウド環境を常に健全な状態に保つことが重要視され、これによりエージェントのテストと変更適用が安定して行えるようになった。
セキュリティ機能の強化
ネットワーク出口制限やスコープ付きプロキシアクセス、コミット内のシークレット検出とツール結果からの赤色化などにより、エージェントへの機密情報注入を安全に行える。
重要な引用
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.
In December, cloud agents authored roughly one in ten PRs merged to the Cursor monorepo. Today, they write more than half.
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.
anydev made the development experience simple enough that agents could run their code reliably.
編集コメントを表示
編集コメント
開発環境をエージェント向けに最適化するという視点は、AI ツールの進化における重要な転換点である。単にツールが賢くなったというだけでなく、人間が使うためのインフラから機械が使うためのインフラへとパラダイムシフトが起きていることを示唆している。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
クラウドエージェントにコンピューターを与えて変更を検証できるようにした際、最初のステップは彼らが自社のコードベースでテストを適切に行えるようにすることでした。
モノレポをクラウドエージェント向けに動作させる過程から、開発環境そのものが一つの製品であることがわかりました。ただし、そのユーザーは人間ではなくエージェントです。クラウド上の環境とローカル開発の整合性を保ち、特定の暗黙知なしにエージェントがコードを実行・検証できるほどリポジトリを見やすくし、コードベースの変化に伴って環境を健全に維持する必要があります。
この環境構築により、私たちの働き方そのものが変わりました。12 月には、Cursor のモノレポにマージされたプルリクエストの約 10% がクラウドエージェントによって作成されましたが、現在は半数以上を占めています。
クラウドとローカル開発の整合性確保
クラウドエージェントをリポジトリ内で円滑に動作させる最初のステップは、リポジトリ自体をクラウド VM でスムーズに動かせるようにすることでした。これは初めてリモート開発環境を設定するエンジニアなら誰でも経験する段階です。
Cursor の開発者の多くは Mac 上でローカル開発を行っていますが、クラウド VM は Linux 上で稼働しています。そのため、さまざまな開発ユーティリティやセットアップスクリプトを Ubuntu VM でも動作するように汎用化する必要がありました。これに応じて、クラウドエージェントの起動イメージとして機能する Cursor 定義の Dockerfile に、重要な開発依存関係を追加しました。
image
image
セキュリティチームと連携して、クラウドエージェント製品にセキュリティ機能を追加しました。これにより、ユーザーは必要なシークレットをエージェントの環境に安全に注入できるようになります。具体的には、ネットワークの外部通信制限、スコープ限定かつプロキシ経由での Git リモートアクセス、コミットやコミットメッセージ内でのシークレット検出、ツール結果におけるシークレットの隠蔽機能などです。これにより、エージェントがシークレット値にアクセスしようとしても読み取れないようにしています。
エージェント向けのシンプルなインターフェース
Ubuntu VM 上で開発環境を構築できた後も、エージェントはコードの実行がまだ苦手でした。これは驚くべきことではありません。なぜなら、私たちの開発体験(DevEx)は複雑で、多数のビルドコマンドやフラグ、ユーティリティスクリプトを学習して記憶する必要があるからです。
システム内の多くの部分をビルド・実行するためのスキルを作成しましたが、効果は限定的でした。スキルでは正しいコマンドを文書化できますが、そのコマンド自体が複雑怪奇で、落とし穴(フットガン)に満ちていたのです。
この複雑さを軽減するため、エージェントがすべてのサービスを起動できる CLI「anydev」を開発しました。共通のユーティリティスクリプトも anydev を経由してルーティングし、各サブコマンドの使い方を説明する複数の --help メニューを装備しています。また、anydev にはスーパーバイザープロセスを搭載しており、長時間実行されるビルドコマンドを監視・再起動します。これにより、モデルがこれらの責任を負う必要はなくなりました。
anydev の導入により開発体験が大幅に簡素化され、エージェントはコードを確実に実行できるようになりました。スキル(機能)の追加で使い方を文書化するだけでなく、本質的な変化は、エージェントがもはやニッチな多段階ビルドコマンドを操ったり、隠れた落とし穴を避けたり、長時間プロセスの手元を見守ったりする必要がなくなった点にあります。
こうして、それぞれに専用のコンピュータを持つクラウド型エージェントが、ローカル型エージェントに対して真の価値を発揮し始めました。コンピューター操作機能と画面録画ツール、そして動作する開発環境を活用することで、エージェントは変更をエンドツーエンドでテストでき、その成果の正しさをユーザーに証明できるようになりました。
バグレポートが解決された際に Slack でエージェントが記録したデモを共有したり、変更を加えた際のパッチリクエスト(PR)で公開したりすることも可能です。多くのタスクにおいて、エンジニアはローカルでブランチをチェックアウトすることなく、クラウド型エージェントのコードを自信を持ってマージ・デプロイできるようになりました。
内部のクラウド型エージェントは、クラウド環境内で Cursor エージェントを使用して、改善されたセッション再試行機能をテストしています。
自己修復型の環境
エージェントを取り巻く環境は常に変化するため、それを稼働状態に保つには、実行方法やアクセス権限を継続的に更新し続ける必要があります。
不健全な環境が失敗した際に診断して回復させるため、私たちは Cursor Cloud MCP を構築しました。MCP を選んだのは、エージェントのループを再構築せずにインターフェースを変更できる動的に検出可能なツールを提供してくれたからです。クラウドエージェントはこの仕組みを使って、セットアップの失敗や外部通信ポリシーの変更、シークレット情報の更新など、自身の環境を検査します。これにより、問題は発生した瞬間に診断・修正でき、不健全な環境への回復も早まります。
Cursor Cloud MCP の導入に伴い、Cloud Doctor という自動化システムを設けました。これは定期的に障害をチェックし、一時的なエラーと恒久的な問題を区別して記憶します。さらに根本原因の分析を行い、高い確信度で問題解決のためのプルリクエスト(PR)も自動発行できます。
エージェント体験の向上
環境が健全であっても、エージェントは変更を検証するために時間のかかる迂回経路を選んだり、無理な手順を踏んでしまったりすることがあります。間違ったスキルを使ったり、回避可能な VM 上の問題に直面したり、本来より長いワークフローに従ってしまうケースです。
ここでも Cursor Cloud MCP を活用しています。Cloud Doctor エージェントはトレースを検査し、他のエージェントがどこで間違えたか、どのスキルやコマンドが誤解を招いたか、またどのワークフローが体系的に遅いかを特定します。その分析結果に基づき、Cloud Doctor はスキルの修正、経路の簡素化、あるいは環境の変更を行い、次のエージェントがよりスムーズに作業できるようにします。
このループは、エージェント自体の開発者体験を継続的に向上させています。環境が健全で自己修復機能を持っていれば、エージェントは安定して動作し、開発者はクラウドエージェントにより重要な業務を任せるようになります。
これにより、社内でのクラウドエージェントの採用拡大が可能になりました。現在、私たちがリリースするコードの過半数をエージェントが作成しています。
image
image
クラウドエージェントに対応した環境を整える
クラウドエージェントの生産性を支えているのは、ほとんどが「環境」にあります。コードベースが準備できているかどうかを確認するには、以下の 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.
関連記事
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み