Cursor Research、エージェント群集実験と新モデル経済を報告
本文の状態
日本語全文を表示中
詳細モードで約23分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Cursor Research
Cursor Research はエージェント群の進化を検証し、SQLite の再構築において新システムが旧システムを大幅に上回る性能を示したと発表した。
AI深層分析を開く2026年8月4日 14:25
AI深層分析
キーポイント
エージェント群の性能向上検証
Cursor Research は SQLite を Rust でゼロから構築するタスクを用いて、新旧のエージェント群を比較し、新システムがすべてのモデル構成で優位な結果を出したと発表した。
コスト対効果の最適化
単一モデルの使用や、プランニングと実行を異なるモデルに分担させるなど構成を変えた実験において、品質は同等ながらコストが劇的に変動することが確認された。
実証的アプローチからの進化
昨年のブラウザ構築プロジェクトで得た経験に基づき、同社は単なる試行錯誤から意図的なエンジニアリングへと方針を転換し、その成果が今回の実験で裏付けられた。
ツリー構造に基づく役割分担
プランナーエージェントが最も賢いモデルを用いて目標を分割し、ワーカーエージェントは高速で安価なモデルを使って実行する。この設計により、問題の複雑さに応じて計算リソースとコンテキストが動的にスケールする。
単一エージェントのドリフト現象
単一のエージェントが全体を処理すると、詳細に集中して大局を見失うか、大局を維持しながら作業品質が低下するというジレンマが生じる。これに対し、プランナーは詳細を持たずワーカーは計画を行わないことでコンテキスト効率を最大化する。
重要な引用
The new swarm did better in every model configuration.
Every mix produced similar quality, but the costs varied enormously.
Rather than imposing a fixed topology on the problem, the swarm's shape grows to cover the problem's contours
In a swarm, a planner never implements, so its context never fills with low-level detail, and a worker never plans, so it can spend all its context on one narrow piece of work.
編集コメントを表示
編集コメント
エージェント群の協調によるソフトウェア構築能力が、単なるプロトタイプから実用レベルへと到達しつつあることを示す重要なデータである。特にコストと性能のトレードオフ関係を可視化した点は、実際の導入を検討する企業にとって極めて参考になる。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
今年初、私たちはエージェントをスケーリングして協調させる限界を試す実験を行いました。その仮説は、これによってタスクの規模と複雑さの新たな段階が切り開かれるというものでした。
象徴的なプロジェクトとして、ゼロから Web ブラウザを構築する長期にわたるアーム(群)がありました。これは概念実証としては成功しましたが、完成されたソフトウェアには程遠い結果でした。
この取り組みは意図的に経験則に基づいたものでした。私たちは白紙の状態から始め、安定して効果的なシステムへと「ヒルクライム」しました。それ以来の目標は、エージェント群を十分に理解し、意図的に設計することです。
その進捗を検証するため、旧来のアームが苦戦していたタスクに再び挑戦しました。それは SQLite をゼロから、Rust で、ドキュメントのみを頼りに構築するというものです。
初期の結果は有望なものでした。新旧のアームに同じモデルと時間予算を与えて同一のタスクを実行し、それぞれが保持された SQL テストスイートのどの程度を通過できるかを測定しました。
新しいアームはすべてのモデル構成でより良い結果を出しました。Grok 4.5 を使用した場合、4時間で80%に達しましたが、旧来のアームは2時間目に入る前に暴走し、一時停止せざるを得ませんでした。
また、どのモデルがどの役割を担うかも変化させました。ある実験では1つのモデルがすべてを担当しましたが、別の実験では最先端のモデルが計画を立て、高速で安価なモデルが作業を実行しました。すべての組み合わせで同程度の品質が得られましたが、コストは劇的に異なりました。1

ツリー構造のメリット
大規模なタスクの説明は、自然とツリー状の構造をとります。根元に目標があり、それが再帰的に分割されて作業の基本単位へと分かれていくのです。
私たちのエージェント・スウォームには、このツリー構造を軸に構成された 2 つの役割があります。
- プランナーエージェント: 最も高性能なモデルを搭載し、目標を細分化して各タスクを割り振ります。
- ワーカーエージェント: 一般的に高速で低コストなモデルを搭載し、割り振られたタスクを実行します。
この設計は、より硬直したオーケストレーションシステムの上位互換となるものです。問題に対して固定されたトポロジー(構造)を押し付けるのではなく、スウォームの形状が問題の輪郭に合わせて成長し、計算リソースやコンテキスト量はタスクの複雑さに比例して拡張されます。
このため、本設計は ブラウザの構築 や 数学的問題の解決、GPU カーネルの最適化 など、多様なタスクに一般化して適用できると考えています。また社内では、オープンソースソフトウェアの脆弱性発見と修正、自社コードベースのテストカバレッジ向上、数十億トークン規模の合成トレーニングデータ生成などにも活用しています。
ツリー構造がメモリに与える影響
単一のエージェントがタスク全体を担う場合、そのエージェント自身でツリー全体を辿る必要があります。各葉ノードに降りながら、祖先の情報を保持し、現在の位置と広範な目標という文脈を常に意識し続けることになります。
この仕組みこそが、長時間稼働する単一エージェントが徐々に目的を見失う(ドリフトする)理由の説明になるでしょう。彼らは目の前の作業に集中して全体像を見失うか、あるいは全体像を保持しながらも個々の作業の質が低下するか、どちらかの選択を迫られます。
一方、アームズ(群れ)では、プランナーは実装を行わないため、そのコンテキストが低レベルの詳細で埋め尽くされることはありません。また、ワーカーは計画を立てないため、コンテキストを一つの狭い作業領域に集中させることができます。

エージェント群の拡張性が、並列処理そのものよりも、このコンテキスト効率に由来する可能性が高いと考えています。この効率はアームズのあらゆる規模で発揮されるため、中規模のタスクであっても、この分解アプローチがエージェントのパフォーマンス向上に寄与します。
このような構造は他の分野でも見られます。経済学者ロナルド・コースは「なぜ企業が存在するのか」という問いに対し、調整コストが作業量よりも速く増加するため、組織は全員が全員と直接連絡を取り合うのではなく、制限されたユニットの階層構造として定着すると論じました。
エージェントのためのバージョン管理システム
swarm に関する以前の投稿で、Git や Cargo といったツールが並行処理制御のために粗いロック(coarse locks)に依存している点に触れました。これは開発者一人にとっては問題ありませんが、数百人のエージェントが同時に作業を行う規模では現実的ではありません。
今年初めに導入されたブラウザ用 swarm は、Git 上で時間あたり約 1,000 コミットを記録しましたが、新しいシステムではその速度は時間あたりではなく、1 秒間に約 1,000 コミットに達します。
この処理速度を実現するために、私たちはゼロから新しいバージョン管理システム(VCS)を開発しました。スループットの向上だけがこのレイヤーを自社で構築する理由ではありません。システム内のすべての変更は VCS を経由するため、衝突が最初に検出される場所であり、次のセクションで説明する調整メカニズムのいくつかも、その内部に直接実装されています。
1 秒間に 1,000 コミットでの障害モード
人間のエンジニアチームでは、コードレビュー、所有権の明確化、定例ミーティング、マージキューといった標準的な調整メカニズムが存在します。これらの仕組みは人間のリズムには適していますが、swarm のコミット速度になると、人間チームが日常的に遭遇しないような障害モードが発生します。
分裂脳(Split-brain)設計の課題
互いの存在を知らない 2 つのプランナーが、コードベースの異なる部分で同じ概念を別々の方法で実装してしまうケースです。
この問題はプロンプトによって解決しました。プランナーは設計決定を他者に委ねるのではなく、自ら下すようにし、委任されたサブツリー同士が同じ問いに対して重複して判断しないことを保証するよう要求しています。
より深刻な競合は、2 つのプランナーが互いの存在を知り合い、同じファイルを巡って互いに反発し合うケースです。
問題の本質は「現実に対する認識のズレ」にあり、マージツールではこの不一致を解消できません。そこで私たちは、エージェントが決定事項を共有設計ドキュメントに記録する仕組みを採用しました。その決定に依存するコードには、文書への参照リンクをコンパイル時に検証可能な形で埋め込みます。プランナーが知らず知らずのうちに互いの決定と矛盾した場合、調整役(リコンサイラー)がドキュメントを統合し、その解決策が参照を通じて下流へ伝播します。
マージ競合
スウォーム内では、エージェント同士が頻繁に同じファイルで衝突します。これを解決するには、一旦作業を停止して相手の文脈を理解し、その上でマージを行う必要があります。しかし、ワーカーエージェントはこの処理が苦手で、実務的には「相手の変更を上書きする」か「自らの変更を放棄する」かのどちらかになります。
この課題に対処するため、私たちは中立的な第三者のエージェントが介入し、全関係者の代わりにマージ競合を解決するシステムを構築しました。その唯一の目的は公平性と効率性の確保であり、エンジニアリングチームにおけるマージキューの運用と似た役割を果たします。
メガファイル
一部のファイルは、エージェントが特に頻繁に作業を行う「ホットスポット」です。各エージェントが追加するのはわずかなコード量ですが、誰一人としてファイルサイズを小さく保つ責任を負っていません。
こうした「メガファイル」はシステム全体を窒息させます。転送コストが高く、差分計算やマージ処理も重くなり、常に衝突の温床となります。
これを解決するため、ワーカーエージェントに肥大化したファイルを報告する仕組みを用意しました。一度報告されると新しいコミットがブロックされ、外部のエージェントがその過剰に成長したファイルを小さなモジュールに分解します。
硬直化(Ossification)
人間をループに組み込んだ既存のコードベースで作業する中で、エージェントは「たとえ変更が必要でもコアコードには手を出さない」という学習をしてしまいました。
これを解決するために、意図的な破壊を許可する仕組みを導入しました。コアへの変更が価値あると判断したエージェントは、その範囲外で焦点を絞ったパッチを作成し、なぜそれを行ったのかを説明するコメントを残します。
コンパイラはその変更をシステム全体に伝播させ、古い設計に依存していたすべての部分がビルドエラーを起こします。そのエラーに遭遇した各エージェントがコメントを見つけ、理由を読み取り、自身の作業部分をそれに合わせて更新します。
審査レンズ(Review lenses)
長期稼働かつマルチエージェントのシステムではエラーが蓄積するため、小さなミスが基盤的な問題になる前に、群れ自体が修正できる仕組みが必要です。
私たちはさまざまな種類の「審査レンズ」を実験しました。例えば、レビュー担当エージェントにワーカーの完全なトランスクリプトを見せるか、出力のみを渡すか、あるいはコードベースだけを与えるかなどです。また、異なるモデルで実行され、トレーニング内容や性格が異なるレビュー担当者も試みました。
単一の視点ですべてを捉えることはできませんが、相関のない複数の視点を積み重ねることで、自律走行システムが完璧なコンポーネント一つなくても人間を超えた信頼性を達成するのと同じ原理が働きます。レビューに費やす計算リソースは高いリターンを生みます。なぜなら、監査対象となる作業そのものよりも、レビュー自体の方が圧倒的に安価だからです。このように積み重ねられたレビューシステムこそが、一貫した高品質な実行結果をもたらす主要な要因だったと推測しています。
エージェントが環境を形作る
スティグマーギーとは、アリやシロアリなどの群生生物が直接的な通信なしに協調するメカニズムです。彼らは環境を形成し、その環境が次の個体の行動を決定づけます。
過去の試行では、「メモを残す」「意思決定を文書化する」といったルールを事前に設定していました。これらは直感的に正しいように思えたからです。振り返れば、これらのルールはエージェントが自分自身の未来やチームメイトのために知識を制度化する手段として機能していたのです。
私たちはこれをさらに発展させ、エージェント自身が作成・共有するコンテキスト「フィールドガイド」の実験を行いました。これは完全にエージェントが所有するフォルダで、index.md ファイルは各エージェントの起動時に自動的に読み込まれます。ガイドに何を含めるかはエージェントの役割であり、唯一の制約は行単位の予算制限のみです。
このガイドの根底にある論理は、モデルの重み(weights)が固定されているため、予測不能な遭遇こそを記録する価値があり、それによって次のエージェントの行動経路を短縮できるという点にあります。
「The Field Guide」は有望な結果をもたらす初期の実験でした。エージェントがコードベースを完全に所有していない場合、その恩恵はさらに大きくなると予想されます。後継者が書くためのモデルを訓練し、より良いキャプチャがより良い報酬につながるような研究は、興味深い次のステップとなるでしょう。
SQLite の実験
私たちは、上記のすべての改善を備えた新しいバージョンのスウォームに、835 ページにわたる SQLite のマニュアル全体を Rust で実装するよう指示しました。ソースコード、テストスイート、SQLite バイナリ、そしてインターネットへのアクセスは提供しませんでした。
進捗を測定するために、sqllogictest に基づいて採点を行いました。これは SQLite プロジェクトが作成したテストスイートで、異なるデータベースエンジンが同じクエリに対して同じ結果を返すかを確認するために作られています。このスイートには数百万の既知の正解を持つクエリが含まれており、スウォームが作成したデータベースがどれだけの割合で正解するかをスコアとしています。進捗は、実行中の曲線が上昇する様子として現れます。
スウォームに対してはこのテストスイートの存在自体は一切伝えられていませんでした。各実行後、私たちは手動でコードと実行プロセスを検証し、不正や近道がないかを確認するとともに、システムがテストの都合の良い箇所だけではなく、全体にわたって均等に構築されていることを確認しました。
グラフを読み進める際は、エージェントが自ら戦略を選んだことを念頭に置いてください。広範な基盤を構築し、長時間スコアが低かった後に急上昇したケースもあれば、特定の領域に深く掘り下げて早期にスコアを獲得し、その後は頭打ちになりつつ残りの部分を埋めていくケースもありました。正確な瞬間のスコアよりも、全体のトレンドの方が重要です。
モデル構成ごとの結果
私たちは、能力とコストのバランスを考慮した 4 つの構成でテストを行いました。
- プランナーとワーカーに GPT-5.5 を採用。全体的に強力なフロンティアモデルです。2
- プランナーとワーカーに Grok 4.5 を採用。比較対象として、コスト効率に優れたフロンティアモデルを使用しました。
- プランナーに Opus 4.8、ワーカーに Composer 2.5 を採用。フロンティア級の判断力と、効率的な実行力を組み合わせました。
- プランナーに Fable 5、ワーカーに Composer 2.5 を採用。次世代のプランナーがハイブリッド構成をより有益にするか、あるいは逆効果になるかを検証しました。
新しいハッチス(harness)は、すべての構成において従来のものよりも優れた結果を出しました。
Fable 5 を採用したハイブリッド構成では、最初の 1 時間でスイートの約 3 分の 2 をクリアしました。4 時間の制限時間までに、新バージョンの実行結果は 73% から 85% の範囲にありましたが、旧バージョンは 11% から 77% と幅広くなりました。
旧版の Grok 4.5 は 2 時間経過する前に一時停止されました(詳細は後述)。一方、すべての新構成ではスイートの 100% をクリアすることができました。
将来的には、プランナーとワーカーの組み合わせをすべて網羅した N×N マトリックスでの実行も検討したいと考えています。今回のサイクルにおいては、比較すべきはハッチス(harness)のバージョン差であり、スコアの差以上に行動特性の違いが顕著であることが判明しました。




実行結果の深掘り
まず、最も単純な活動指標であるコミット頻度を見てみましょう。旧ハーンと新ハーンにおける Grok 4.5 の比較です。
旧環境での実行では、最初の 2 時間で約 68,000 コミットが生成されました。これは新環境のペースの約 70 倍に相当します。
この結果には二つの解釈が可能です。一つは「より生産的だった」という見方です。もう一つは、その大半が実質的な作業ではなく、単なる忙しさ(スラッシュ、競合、変更の繰り返し)に過ぎなかったという見方です。
Grok 4.5 の累積コミット数(アクティブ分)の推移:旧ハーンと新ハーンの比較

マージ競合のデータは、後者の解釈を裏付けています。旧ハーンでは一時停止するまでに 7 万 7,000 件以上の競合が発生し、状況が安定するどころか悪化していました。一方、新ハーンでは 4 時間のフル稼働中も競合は 1,000 件未満でした。

競合はファイルサイズが最も大きくなる箇所に集中しました。旧ハーンでは、最大のファイルが稼働中ずっと成長し続け、その中で最も争われた 1 つのファイルには 7,771 件の競合が発生し、1,173 人の異なるエージェントが関与していました。新ハーンでは、コードベース全体で最も争われたファイルでも競合は 47 件にとどまりました。

従来のエージェント群で最も深刻な協調失敗の一つが、分裂脳(split-brain)現象、つまりプランナー同士が重複した作業を行ってしまう問題でした。これはパッケージ構造に顕著に現れています。
Rust のコードは「クレート」と呼ばれるパッケージ単位で整理されており、このようなプロジェクトでは各クレートがほぼ主要なコンポーネント一つに対応します。
従来の実行環境では 54 個のクレートにまで膨れ上がり、その中には SQL パッケージが 3 つ含まれていました。一方、新しい実行環境では初期段階ですでに 9 個のクレートに収束し、それ以上増えることはありませんでした。

これらの違いは最終的なコードベースにも如実に表れています。Fable 5 の組み合わせでは、新旧どちらのエージェント群もフルスイートに合格しましたが、旧環境ではエンジンコードが 64,305 行必要だったのに対し、新環境ではわずか 9,908 行で完了しました。
Opus の組み合わせでも同様の傾向が見られ、旧ハッチでは 19,013 行で評価点 97% を達成したものが、新ハッチでは 4,645 行で満点の 100% を記録しています。

モデル経済学
冒頭でお伝えした通り、どのモデル構成を選んでも出力品質はほぼ同じでしたが、コストには大きな差がありました。Opus 4.8 のハイブリッド構成では 1,339 ドルだったものが、GPT-5.5 を単体で使った場合は 10,565 ドルに跳ね上がります。この差の正体は、トークンの使用データから明らかになります。
コストの内訳構造はすべての試行で一貫しており、ワーカーが処理するトークン数は常に全体の 69% 以上を占め、多くのケースでは 90% を超えていました。
しかし、ドル建てでの内訳はトークン数の配分とは異なります。プランナーのトークンは単価が高いためです。Opus 4.8 と Composer 2.5 の組み合わせでは、プランナーとして機能した Opus が生成するトークンの数はごく一部でしたが、コストの約 3 分の 2 を占めました。一方、ワーカーとして機能した Composer は、残りのトークンの大半を処理し、コストは全体の残り 3 分の 1 に収まりました。

大規模なタスクにおいて、最先端の知能(フロンティア・インテリジェンス)を本当に必要とするのはごく一部の瞬間だけです。例えば、タスクの初期分解や設計判断、そして特定のトレードオフの検討などが該当します。一度、最先端のプランナーが曖昧さを解消し、詳細で明確な指示へと落とし込んでしまえば、その後は安価なモデルでもその指示に従うだけで十分です。これこそが、コスト削減における大きな可能性を秘めています。
GPT-5.5 をプランナーにもワーカーにも使った試行では、ワーカー側のみのコストが 9,373 ドルに達しました。一方、プランナーに Opus 4.8 を使い、作業を Composer 2.5 に任せた試行では、ワーカー全体の総コストはわずか 411 ドルでした。
2 つのハイブリッド実行を比較すると、興味深い事実が浮かび上がります。Opus 4.8 プランナーに比べて Fable 5 プランナーの方がトークンあたりの単価は約 2 倍高いにもかかわらず、使用したプランニング用のトークン数が圧倒的に少なかったため、総コストはわずかに抑えられました。しかし、Fable の実行ではワーカーが処理するトークン数が数倍に達し、結果として全体のコストは大幅に増加しました。
仕様をプロンプトとして
AI の能力が一段階上がるたびに、エンジニアが作業を行う抽象度のレベルも引き上げられてきました。
オートコンプリート(自動補完)は、エンジニアがコードを一行ずつ記述する時代をもたらしました。初期のモデルではそれがコードブロック単位になり、エージェントが登場してからはファイルや機能単位で作業できるようになりました。
そして、スウォーム(群れ)においては、作業の最小単位が「仕様」そのものへと変化します。
これが機能するためには、スウォームが実際に仕様に従う必要があります。この記事の大半はこの点に焦点を当てています。私たちはスウォームに 835 ページにも及ぶ文章による記述を与え、データベースという成果物を受け取りました。この実験において、そして今後ソフトウェアエンジニアリングにおいて希少となるのは、意図(インテント)を正確に記述した「仕様」です。
この視点で捉えると、スウォームはコンパイラに似てきます。コンパイラは中間ステップを経てソースコードを機械語に変換しますが、スウォームも同様に「意図」を変換します。プランナーは目標をタツリーとして解析し、それを段階的に実行可能な作業へと落とし込みます。違いは、コンパイラが各ステップで意味を保証するのに対し、スウォームは確率的な振る舞いをする点です。この記事で説明されているすべての仕組みは、このギャップを埋めるために存在しています。
ぜひ、スワームの出力をご覧ください。ソロでの Opus 4.8 実行から得られたコードベースは、github.com/cursor/minisqlite で公開されています。最初の確認では非常に良好な印象ですが、詳細な手動分析はまだ行っておりません。皆様もご自身で確認し、発見したことを教えていただければ幸いです。
- ソロでの最前線コスト感を把握するため、Opus 4.8 と Fable 5 をそれぞれ単独でも実行しました。これらの結果は非公式に評価しただけであり、品質についての結論を導き出すものではありませんが、経験則から両モデルとも良好なパフォーマンスを発揮すると予想されます。そのコストは、チャートの斜線が入ったバーとして示されています。↩
- 当初は GPT-5.6 Sol を最前線の構成案として想定していましたが、この新しいモデルは他のテスト対象に比べて文字通りの表現や強調された語句に対して敏感であり、他モデルでは見られなかった暴走する連鎖(runaway spirals)が発生しました。直近で登場したばかりのモデル向けにプロンプトを調整する時間がなく、また一つのモデルのみを微調整して他を放置すれば比較が不正確になるため、やむを得ず GPT-5.5 に切り替えました。↩
原文を表示
Earlier this year, we ran experiments to test the limits of scaling agents to cooperate toward a goal. Our hypothesis was that this would unlock a new tier of task scale and complexity.
The flagship project was a long-running swarm building a web browser from scratch. It succeeded as a proof of concept, but fell far short of polished software.
That work was deliberately empirical. We started from a blank canvas and hill-climbed toward a stable, effective system. Since then, our goal has been to understand the agent swarm well enough to engineer it deliberately.
To test that progress, we returned to a task the old swarm had struggled with: building SQLite from scratch, in Rust, from nothing but its documentation.
Our initial results have been promising. We ran the old and new swarms on the same task, with the same models and the same time budget, and measured how much of a held-out SQL test suite each could pass.
The new swarm did better in every model configuration. Using Grok 4.5, it reached 80% in four hours, while the old swarm spiraled and had to be paused before its second hour.
We also varied which models did which jobs. In some runs, one model handled everything while in others, a frontier model planned while a fast, inexpensive model carried out the work. Every mix produced similar quality, but the costs varied enormously.1

Trees and leaves
Descriptions of large tasks naturally take the shape of trees, with a goal at the root that subdivides recursively into basic units of work. Our swarm has two roles, both organized around that same tree-like decomposition:
- Planner agents, powered by the smartest models, split a goal into pieces and delegate them.
- Worker agents, generally powered by faster and less expensive models, execute those pieces.
The design is a superset of more rigid orchestration systems. Rather than imposing a fixed topology on the problem, the swarm’s shape grows to cover the problem’s contours, and compute and context scale in proportion to the task’s complexity.
We think this is why the design generalizes to tasks as diverse as building a browser, solving math problems, and optimizing GPU kernels. We’ve also used it internally to find and fix vulnerabilities in open-source software, raise test coverage on our own codebase, and generate billions of tokens of synthetic training data.
What the tree does for memory
When a single agent takes on a complete task, it has to walk the entire tree itself, descending to each leaf while holding its ancestors, its current position, and the wider goal in context the whole time.
We think this explains why long-running single agents drift. They can either focus on the work in front of them and lose sight of the bigger picture, or hold the big picture and do a worse job on the piece.
In a swarm, a planner never implements, so its context never fills with low-level detail, and a worker never plans, so it can spend all its context on one narrow piece of work.

We suspect the ability to scale the agent swarm comes from this context efficiency, more than from parallelism itself. That efficiency is present in the swarm at every scale, which is why this decomposition helps agent performance even on moderately sized tasks.
There are echoes of this structure elsewhere. The economist Ronald Coase, asking why firms exist at all, argued that coordination costs grow faster than the work itself, so organizations settle into tiers of bounded units rather than letting everyone talk to everyone.
A version control system for agents
In an earlier post about the swarm, we noted that tools like Git and Cargo rely on coarse locks for concurrency control. This is fine for one developer but unworkable for the volume of work produced by hundreds of concurrent agents.
The browser swarm from earlier this year peaked at roughly 1,000 commits per hour on Git. The new system peaks at around 1,000 commits per second.
To facilitate this rate of activity, we built a new version control system (VCS) from scratch. Throughput was not the only reason to own this layer. Every change in the system passes through the VCS, so it is where collisions first become visible, and several of the coordination mechanisms in the next section are implemented directly inside of it.
Failure modes at 1,000 commits per second
Human engineering teams have standard coordination mechanisms like code review, ownership, standups, and merge queues. Those systems work at human tempo, but at the commit-rate of the swarm, we see failure modes that human teams don’t routinely encounter.
Split-brain design
Two planners, unaware of each other, implement the same concept in different ways in different parts of the codebase.
We fixed this through prompting. Planners make design decisions themselves rather than delegating them, and we require them to ensure that no two delegated subtrees decide the same question.
Contention between planners
A harder form of contention is when two planners know about each other and fight through back-and-forth changes over the same files.
The problem is two pictures of reality, and merge tooling can't fix a disagreement. Instead, we have agents record decisions in shared design docs. Code that depends on a decision carries a compile-checked reference back to its doc. When planners unknowingly contradict each other, a reconciler merges the docs and the references propagate the resolution downstream.
Merge conflicts
Within the swarm, agents constantly collide on the same files. In order to resolve a collision they would have to stop, absorb the other agent's context, and merge around it. Worker agents are bad at this and, in practice, either overwrite the other change or abandon their own.
To fix this, we created a system where a neutral third-party agent intervenes on merge conflicts and resolves them on behalf of all parties. Its only goal is to be impartial and efficient, similar to the way merge queues work in engineering teams.
Megafiles
Some files are particularly popular places for agents to work. Each agent might add only a small amount of code, and no single agent is responsible for keeping the files small.
These “megafiles” choke everything. They’re expensive to transport, diff, and merge, and become the site of constant collisions.
To fix this, we gave worker agents a way to flag bloated files. Once flagged, we block new commits and an outside agent decomposes the overgrown file into smaller modules.
Ossification
Agents have learned, from working in existing codebases with humans in the loop, not to touch core code even when it needs to change.
To fix this, we license intentional breakage. An agent that judges a core change worthwhile can make a focused patch outside its scope and leave a comment explaining why it did it.
The compiler carries the change through the rest of the system, and everything depending on the old design fails to build. Each agent that hits one of those errors finds the comment, reads the reasoning, and updates its own piece of work to match.
Review lenses
In a system that is both long-running and multi-agent, errors accumulate, and the swarm needs a way to correct itself before small mistakes become foundational.
We experimented with many kinds of review lenses, such as giving a review agent the worker's full transcript, or only its output, or nothing but the codebase. We also tried reviewers running on different models, with different training and a different personality.
No single lens catches everything, but decorrelated lenses stack, the way self-driving systems reach above-human reliability without any single perfect component. The compute spent on review is high return, since review is much cheaper than the work it audits. We suspect this stacked review system was a major contributor to the sustained quality of the runs.
Letting agents shape the environment
Stigmergy is the mechanism by which swarm organisms like ants and termites coordinate without direct communication. They shape the environment, and the environment shapes the next organism.
We had encoded rules like “keep notes” and “document decisions” in earlier runs because they seemed obviously good. In retrospect, they were letting agents institutionalize knowledge for their future selves and teammates.
We pushed this further with an experiment in self-authored, shared context we call the Field Guide. It’s a folder owned entirely by the agents, whose index.md is automatically injected into every agent at start. It is the agents’ job to curate what goes into the guide and their only constraint is a line budget.
The underlying logic of the guide is that model weights are frozen, so it’s precisely surprise encounters that are worth capturing so the next agent trajectory is shorter.
The Field Guide is an early experiment with promising results. We’d expect the benefits to be even larger on codebases agents don’t fully own. Training models to write for their successors, where better capture leads to better rewards, is an interesting follow-up area of research.
The SQLite experiment
We instructed the new version of the swarm, equipped with all the improvements described above, to implement the whole of the 835-page SQLite manual in Rust. We withheld the source code, test suites, SQLite binary, and internet access.
To measure progress, we graded against sqllogictest, a test suite from the SQLite project built to check that different database engines return the same results for the same queries. It contains millions of queries with known correct answers, and the grade is the fraction the swarm's database gets right. Progress shows up as a rising curve over the course of a run.
The swarm was never told the suite existed. After each run, we manually reviewed the code and the run itself, checking for cheating and shortcuts, and confirming the system was built out evenly, rather than just in the places where the tests look.
As you read the curves, keep in mind that agents chose their own strategies. Some built broad foundations and scored low for hours before a late spike while others went deep on one area, scored early, then plateaued while filling in the rest. Trends matter more than exact scores at exact moments.
Results across model mixes
We tested four configurations spanning capability and cost:
- GPT-5.5 as both planner and worker. A strong frontier model throughout.2
- Grok 4.5 as both planner and worker. Our cost-efficient frontier model, as a comparison point.
- Opus 4.8 as planner and Composer 2.5 as worker. Frontier judgment paired with efficient execution.
- Fable 5 as planner and Composer 2.5 as worker. To see whether a next-tier planner makes the hybrid more or less worthwhile.
The new harness outperformed the old in every mix.
The Fable 5 hybrid passed about two-thirds of the suite within the first hour. By the four-hour cutoff, the new runs sat between 73% and 85%, while the old runs ranged from 11% to 77%.
The old Grok 4.5 run was paused before its two-hour mark (more below). Every new configuration went on to pass 100% of the suite.
In the future we’d like to run the full N×N matrix of planner-worker combinations. For this cycle, the comparison that matters is between harness versions, and the behavioral differences turned out to be much larger than the score differences suggest.




A deep dive into the runs
Starting with the simplest measure of activity, we can see how the rate of commits varied for Grok 4.5 under the old harness versus the new. The old run produced 68,000 commits in its first two hours, roughly 70 times the new run's pace.
One reading is that it was more productive. Another is that most of those commits were busywork (thrash, contention, churn).

The merge conflict data points to the latter interpretation. The old run accumulated more than 70,000 conflicts before we paused it, accelerating rather than stabilizing, while the new run logged fewer than a thousand over its full four hours.

The conflicts concentrated where files grew largest. In the old run, the biggest files kept growing for the entire run and its single hottest file collected 7,771 conflicts, touched by 1,173 different agents. In the new run, the most contested file in the whole codebase saw 47.

The old swarm's biggest coordination failure — split-brain, or planners duplicating each other's work — showed up in the package structure. Rust code is organized into packages called crates, and in a project like this, each crate is roughly one major component.
The old run sprawled to 54 crates, including three separate SQL packages. The new run settled on nine crates early and never added another.

All of this shows up in the final codebase. In the Fable 5 mix, both the old and new swarms ultimately passed the full suite, but the old one needed 64,305 lines of engine code and the new one did it in 9,908. The Opus mix shows the same shape with 19,013 lines at a 97% grade under the old harness, and 4,645 lines at 100% under the new harness.

Model economics
We said at the top that every model mix produced similar quality while the costs varied enormously, from $1,339 for the Opus 4.8 hybrid to $10,565 for GPT-5.5 alone. The token data shows where that difference comes from.
The structure of the spend was consistent across every run, with workers carrying at least 69% of the tokens, and over 90% in most.
But the dollars split differently than the tokens, because planner tokens cost more. In the Opus 4.8 and Composer 2.5 mix, the Opus-as-planner produced a small fraction of the tokens but roughly two-thirds of the cost, while Composer-as-worker handled the vast majority of the tokens for the remaining third of the cost.

Few moments in a large task genuinely require frontier intelligence, such as the original decomposition, the design decisions, and certain trade-offs. Once a frontier planner has collapsed the ambiguity into a detailed, explicit instruction, less expensive models simply have to follow it. This is a huge potential source of cost savings. In the run that used GPT-5.5 for both planners and workers, the workers alone cost $9,373. In the run where Opus 4.8 did the planning and Composer 2.5 did the work, the entire worker fleet cost $411.
One detail worth noting comes from comparing the two hybrid runs. The Fable 5 planner ran up a slightly smaller bill than the Opus 4.8 planner, despite roughly twice the per-token price, because it used far fewer planning tokens. But the Fable run's workers went through several times as many tokens, and the run as a whole came out substantially more expensive.
Specs as prompts
Each jump in AI capability has raised the level of abstraction at which an engineer can work.
Autocomplete let engineers work one line of code at a time. Early models raised that to a block of code, and agents raised it to a file or a feature.
With swarms, the unit of work becomes the spec.
For that to work, the swarm has to actually follow the spec, which is what much of this post is about. We gave the swarm 835 pages of prose and it came back with a database. What was scarce in this experiment, and what we expect to be scarce in software engineering going forward, is the right description of intent.
Seen this way, the swarm starts to resemble a compiler. A compiler translates source code down to machine code through a series of intermediate steps. The swarm does something similar with intent. Planners parse a goal into task trees, then lower it step by step into executable work. The difference is that a compiler preserves meaning at every step while the swarm is probabilistic at every one. Everything described in this post exists to close that gap.
We invite you to explore the swarm's output. The codebase from the solo Opus 4.8 run is public at github.com/cursor/minisqlite. Based on our initial glance it looks great, but we have not done a deeper manual analysis. Take your own look, and tell us what you find.
- To get a sense of solo frontier costs, we also ran Opus 4.8 and Fable 5 on their own. We graded those runs only informally, so we draw no conclusions about their quality here, though from experience we would expect both models to do well. Their costs are shown in the chart as the hatched bars. ↩
- We had wanted GPT-5.6 Sol as the frontier configuration. The new model appears more sensitive to literal and emphasized wording than the others we tested, and we encountered runaway spirals unlike anything the other models produced. There wasn’t time to tune prompts for a model that arrived so recently, and tuning for one model while leaving the rest untouched would have made the comparison inaccurate, so we fell back to GPT-5.5. ↩
AI算出
技術分析ainew評価高い
AI エージェントの協調動作に関する独自のベンチマークと技術的知見が中心であり、新規性のある数値データが含まれている。日本固有の情報は含まれていないが、開発者にとって実装の参考となる技術的分析である。
6つの評価軸を見る
- AI関連度
- 100
- 情報源の信頼性
- 100
- 新規性
- 75
- 調べる価値
- 75
- 重複の少なさ
- 100
- 日本での有用性
- 25
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み