Deep Agents v0.7 が公開、6 分で読める更新内容
Deep Agents は v0.7 をリリースし、コンテキスト工学の最新知見を反映させてベースハネスを簡素化し、同等性能で入力トークンを65%削減するコスト効率の向上を実現した。
AI深層分析を開く2026年7月30日 23:41
AI深層分析
キーポイント
トークン削減とコスト効率化
Deep Agents は v0.7 のリリースによりベースハネスを簡素化し、同等のパフォーマンスを維持しながら入力トークンを65%削減した。
コンテキスト工学の最新知見の反映
OpenAI、Anthropic、Google がモデル能力向上に伴いガイドラインを変更する中、Deep Agents はこれらの変化に対応してハネスをアップデートした。
インターフェース重視のアプローチ
Anthropic の調査結果に基づき、ツールスキーマによる使用法の指導が少数ショット例より優れていると判断し、その方針を採用した。
重複指示の排除
システムプロンプトとツールの説明で同じ指示を繰り返すことは意味のある強化にならないという知見に基づき、不要な重複を削除した。
基本入力の削減と構成変更
ベースシステムプロンプトの削除、ツール説明の43%削減、デフォルトでのTodoListMiddleware非採用により、1ターンあたりの基本入力トークンを65%(約6k→約2k)削減した。
重要な引用
This release simplifies the base harness, resulting in 65% fewer base input tokens at comparable performance.
Interfaces beat examples: good tool schemas teach usage better than the once popular few shot examples
Avoid repetition: repeating an instruction in both the system prompt and a tool's description doesn't offer meaningful reinforcement.
Together, these changes drop base input tokens on a default-agent turn by 65% (~6k → ~2k).
編集コメントを表示
編集コメント
Deep Agents の今回のアップデートは、単なるバージョンアップではなく、各社が提示するプロンプトガイドの矛盾や変化を吸収し、実務レベルでの効率化を図った重要な一歩である。特に「インターフェース重視」や「重複排除」といった具体的な指針は、現場の開発者がすぐに適用可能な実践的な知見と言える。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。

本日、Deep Agents v0.7 をリリースしました。今回のアップデートでは基盤となるハーン(harness)を簡素化し、同等の性能を維持しながらベース入力トークンを 65% 削減することに成功しています。
効果的なエージェント構築の鍵は「コンテキストエンジニアリング」にあります。モデルの能力は、与えるコンテキストの質によって決まります。つまり、重要なのはプロンプトに何を含めるかです。このプロンプトをどう組み立てるかはハーンの仕事ですが、その指針は常に変化しています。
OpenAI、Anthropic、Google はそれぞれ独自のプレンディングガイドを公開しており、モデルの能力向上に伴い、これらすべてがガイド内容を刷新しました。ハーンもこれらの変化に追いついていかなければなりません。そうでなければ、モデルがすでに必要としなくなったプロンプティングの重荷を背負うことになってしまいます。
最近、Anthropic は現代のモデル向けにコンテキストエンジニアリングに関する更新版ガイドを発表すると同時に、Opus 5 や Fable 5 などのモデルにおいて Claude Code のシステムプロンプトから 80% 以上を削減したというレポートも公開しました。その結果、コーディング評価における性能低下は確認されていません。
彼らの発見には、v0.7 を構築する過程で私たちが得た知見と共通する点もあります。
インターフェースは例よりも優れています。優れたツールスキーマは、モデルの探索範囲を狭めてしまうことがあった従来の「数ショット」例よりも、ツールの使い方をより効果的に伝えます。
指示の繰り返しは避けましょう。システムプロンプトとツールの説明の両方に同じ指示を入れるのは、意味のある強化にはなりません。
Deep Agents v0.7 は、トークンコストと費用対効率を向上させた、より軽量で設定可能なベースハーンスを提供します。
より軽量なベースハーンス
私たちの仮説は、ベース入力プロンプトから不要なトークンを削ぐことで、パフォーマンスを維持しつつトークン使用量とコスト効率を高められるというものです。これを検証するために 3 つの変更を行いました。
- ベースシステムプロンプトの削除:Deep Agents が内部で利用していた、一般的なガイドラインやツール使用に関する記述を含むシステムプロンプト(#4859)を削除しました。
- ツール説明の短縮:組み込みツールの説明を 43% 削減しました(#5009)。
- Todo のオプトイン方式へ変更:
create_deep_agentはデフォルトでTodoListMiddlewareを含む不再となりました。評価結果から、プランニングプロンプトやwrite_todosツールはパフォーマンスに大きな改善をもたらさないことが示されました(#4929)。
これらの変更により、デフォルトエージェントの 1 ターンあたりの*ベース入力トークン数*が 65% 削減され(約 6,000 → 約 2,000)、大幅な効率化を実現しました。
base input tokens: *組み込みプロンプト、ツール、ミドルウェアに関連するトークンの総称*
これらの変更の検証方法
パフォーマンスが低下していないことを確認するため、3 つのカテゴリから構成される新しい評価スイートを用いて検証を行いました。各カテゴリは、異なる種類のエージェント作業を対象としています。
Deep Agents v0.7 では、コード作成やデータ分析といった「自律的なタスク」、シミュレーションされたユーザーとの「多段階会話」、そして長い文脈からの情報検索と推論を要する「長文コンテキスト対応」の 3 つのカテゴリで評価が行われました。gpt-5.6-luna、gemini-3.6-flash、claude-sonnet-4-6、claude-opus-4-8 の 4 つのモデルを対象に、v0.7 と既存のベースライン(v0.6.12)を比較した結果です。
全体的な報酬スコアは横ばいでしたが、トークン使用量とコストは概ね低下しました。特筆すべきは gpt-5.6-luna で、トークン使用量が 34%、コストが 15% 減少し、一方で報酬は 4% 向上しています。例外は claude-sonnet-4-6 で、LangSmith のトレースを分析したところ、コスト増の大部分は 2 つの難易度の高い自律タスクに起因することが判明しました。
※すべてのモデルで報酬の信頼区間はゼロを含んでいます。Luna と Opus は統計的に明確なトークン削減を示しており、Luna はさらにコスト削減も統計的に有意です。詳細なレポートは こちら で確認できます。
Deep Agents の評価手法については、最近のブログ記事「Deep Agents のベンチマーク方法について」をご覧ください。
Todo リストに関する注記
TodoListMiddleware は現在オプトイン方式となりました。3 つのカテゴリと 3 つのモデルを対象とした評価では、Todo リストを無効にした方が報酬がわずかに向上しコストも低下したため、ベースラインハネスから write_tools ツールは削除されました。詳細な変更点と実験結果は こちら でご覧いただけます。
ただし、以下の 3 つのケースでは依然として有効です。
- 長期にわたる多段階タスク。エージェントが多数のターンにわたり軌道に乗るために、明示的な計画が必要となる場合。
- 能力が限られたモデル。ステップを飛ばしたり、文脈を見失ったりしないよう、より多くの支援構造(スケフォールディング)が必要な場合。
- UI を介したユースケース。実行そのものと同様に、可視化された計画と進捗状況が重要となる場合。
もしあなたのユースケースが上記のいずれかに該当するなら、有効化する は 1 行で済みます:middleware=[TodoListMiddleware()]。
より高い設定自由度
過去 6 ヶ月間、Deep Agents のユーザーから最も多かった要望は、設定の柔軟性でした。具体的には、FilesystemMiddleware の上書きや、SummarizationMiddleware の閾値のカスタマイズ、ベースプロンプトのグローバル変更などが求められていました。
しかし、これらすべてが壁にぶつかりました。デフォルトのハッチ(harness)スタックの動作を変更する公式な方法が存在しなかったのです。
v0.7 では、この課題を 2 つの方法で解決しました。
プロンプトに対する完全なコントロール。
隠れたプロンプトを排除した結果、副作用として生じたのが「独自のプロンプト効果の向上」です。内部で動作するプロンプトが不要になったため、プロンプトの肥大化を防げるだけでなく、最悪の場合に起こりうる競合も解消されました。
ミドルウェアスタックへのフルコントロールが可能に。v0.7 では、組み込みミドルウェアのオーバーライドを正式な機能としてサポートしました。デフォルトの名前と一致する middleware= インスタンスを渡すだけで、重複エラーになるのではなく、そのデフォルトが即座に置き換えられます。
あるパワーユーザーはこう語っています。「以前はデフォルトミドルウェアの一部を削除するために、少し強引なハックを行っていました。ミドルウェアのオーバーライド機能が追加されたのは非常に歓迎すべきことです。」
要約用ミドルウェア(SummarizationMiddleware)はその好例です。デフォルトでは、会話のコンテキストウィンドウ使用率が 85% に達した時点で、汎用的なプロンプトを使って要約処理が開始されます。しかし、アプリケーションによって必要なプロンプトは異なり、文脈劣化(context rot)や「ダムゾーン」を回避するために、要約トリガーの閾値も用途に合わせて調整したいという要望があります。
これにより、独自の設定を持つ要約用ミドルウェアを簡単に差し込むことが可能になりました。
from deepagents import create_deep_agent
from deepagents.middleware import SummarizationMiddleware
agent = create_deep_agent(
model="anthropic:claude-sonnet-5",
middleware=[
SummarizationMiddleware(
model="fireworks:accounts/fireworks/models/kimi-k3",
# summarize at 50% of the context window instead of the default
trigger=("fraction", 0.5),
summary_prompt="Summarize the conversation so far, keeping any file paths and decisions verbatim...",
),
],
)
このパターンは、プロンプトキャッシュの TTL(有効時間)など、他の組み込みデフォルト値を再調整する場合にも適用できます。
ファイルシステムのパフォーマンス
ファイルシステムは Deep Agents の中核となるコンテキスト管理レイヤーです。エージェントが状態を読み書きし、移動するための環境を提供します。今回のリリースでは、評価スイートに基づく最適化と、実際の dcode 利用から得られた軌道(トラジェクトリ)の分析結果を反映した最適化を行いました。これにはオープンモデルとクローズドモデルの両方が含まれています。
write_file 機能が更新され、既存ファイルが存在する際にエラーを返す代わりに上書き処理を行うようになりました(#4109)。また、ページネーションされた read_file では、総行数と残りの行数、そして次のオフセットが報告されるようになり、grep/glob は大規模なツリーでフリーズする代わりに、切り捨てフラグ付きで部分的な結果を返すようになりました。さらに grep には最大 1,000 件のマッチ制限、ストリーム出力、オプションのコンテキスト行表示機能が追加されています(#4063、#4570、#4706)。
破壊的変更
今回のリリースでは、互換性用の shim が削除され、いくつかのデフォルト動作が変更されています:
- TodoListMiddleware はデフォルトで有効化されなくなりました(#4929)。ただし、
TodoListMiddleware()を明示的に指定することでオプトイン可能です。 - v0.5 で非推奨となっていたバックエンドファクトリのサポートを削除し、代わりに具体的な BackendProtocol インスタンスを使用するようになりました(#4541)。v0.5 で非推奨となった他のファイル形式やバックエンドプロトコルに関するサポートもすべて削除されています。
- デフォルトのファイルシステムツールリストに delete ツールが追加されました。FilesystemMiddleware ではツールのホワイトリストを指定できるため、必要に応じてこの機能をオフにすることも可能です(#4325、#4698)。
マイグレーションノートやコーディングエージェント向けのアップグレードプロンプトを含む詳細は、changelog をご覧ください。
試してみる
deepagents v0.7 が PyPI で公開されました:
uv pip install -U deepagents
また npm でも利用可能です:
npm install deepagents@latest
最新の Deep Agents をぜひお試しください。ご意見は GitHub の issues、フォーラム、X(旧 Twitter)または LinkedIn でお聞かせください。
リファレンス
- リリースノート:deepagents v0.7.0
- ドキュメント:組み込みミドルウェアのカスタマイズと上書き
- ドキュメント:ファイルシステムツールと仮想ファイルシステムへのアクセス
- ドキュメント:オプトイン型タスク(todos)
- 評価スイートブログ:Deep Agents のベンチマーク手法について
関連コンテンツ

エージェントアーキテクチャ
LangChain のエージェントファーストデータスタックの構築方法

Emily Hawkins
2026 年 7 月 27 日
14 分

オープンソース
観測性と評価
Deep Agents のベンチマーク手法について


N. Hollon、H. Chase
2026 年 7 月 23 日
4 分
image.png)
オープンソース
LangGraph
エージェントアーキテクチャ
LangGraph によるグラフエンジニアリングの 3 年


S. Runkle, H. Chase
2026 年 7 月 22 日
7 分
エージェントの本当の動作を確認する
エージェントエンジニアリングプラットフォーム「LangSmith」を使えば、開発者はすべての意思決定をデバッグし、変更の評価を行い、ワンクリックでデプロイできます。
原文を表示

Today we're shipping deep agents v0.7. This release simplifies the base harness, resulting in 65% fewer base input tokens at comparable performance.
Building effective agents comes down to context engineering: a model is only as powerful as the context you give it, and that context comes down to what's in the prompt. Assembling that prompt well is the harness's job. But the guidance on how to do it changes constantly: OpenAI, Anthropic, and Google all publish their own prompting guides, and all three have rewritten them as models got more capable. Harnesses need to keep pace, or they end up carrying prompting the model has outgrown.
Anthropic just published an updated guide on context engineering for modern models, alongside a report that they cut over 80% of Claude Code's system prompt for models like Opus 5 and Fable 5, with no measurable drop in coding evals. A couple of their findings mirror what we saw building v0.7:
- Interfaces beat examples: good tool schemas teach usage better than the once popular few shot examples, which can narrow how the model explores.
- Avoid repetition: repeating an instruction in both the system prompt and a tool's description doesn't offer meaningful reinforcement.
Deep Agents v0.7 offers a leaner, more configurable base harness that's more token and cost-efficient.
Leaner base harness
Our hypothesis: trimming unnecessary tokens from the base input prompt would boost token and cost efficiency while holding performance steady. We made three changes to test this:
- Removed base system prompt: We cut the system prompt that Deep Agents used under the hood, which included general guidelines and tool-usage prose (#4859).
- Trimmed tool descriptions: We trimmed builtin tool descriptions by 43% (#5009).
- Opt-in todos: create_deep_agent no longer includes TodoListMiddleware by default. Our evals showed the planning prompt and write_todos tool did not significantly improve performance (#4929).
Together, these changes drop *base input tokens** on a default-agent turn by 65% (~6k → ~2k).
**base input tokens*: *tokens associated with the builtin prompt, tools, and middleware*
How we validated these changes
We validated that performance didn't drop using a new eval suite built around three categories of benchmarks. Each targets a different kind of agent work:
- Autonomous: end-to-end tasks like coding and data analysis
- Conversational: multi-turn conversation with a simulated user
- Long-context: tasks that require retrieval and reasoning over long-context
We ran the new v0.7 harness against the old baseline (v0.6.12) through a matrix of all three eval categories across four models: gpt-5.6-luna, gemini-3.6-flash, claude-sonnet-4-6, and claude-opus-4-8.
Reward held steady overall, and tokens/cost generally dropped*. Most notably gpt-5.6-luna was down 34% on tokens and 15% on cost with reward up 4%. claude-sonnet-4-6 was the exception; analyzing the LangSmith traces showed that a significant cost increase was largely from two challenging autonomous tasks.
*Reward confidence intervals span zero for every model. Luna and Opus show statistically clear token reductions, and Luna also shows a statistically clear cost reduction. Our full report can be found here.
For more information, see our recent blog on how we run evals for Deep Agents.
A note on todo lists
TodoListMiddleware is now opt-in. Our evals across three categories and three models showed slightly better rewards and lower cost with todos disabled, so we removed the write_todos tool from the base harness. The changes and full experiment results can be found here.
That said, it still earns its keep in a few cases:
- Long, multi-step tasks, where an agent benefits from an explicit plan to stay on track across many turns.
- Less capable models, which need more scaffolding to avoid dropping steps or losing the thread.
- UI-facing use cases, where a visible plan and progress matter as much as the underlying execution.
If your use case is one of the three above, turning it back on is one line: middleware=[TodoListMiddleware()].
More configurability
Configurability was the top ask from Deep Agents users over the last six months, including requests to override FilesystemMiddleware, customize SummarizationMiddleware thresholds, and override the base prompt globally. They all hit the same wall: there was no supported way to change what the default harness stack does. v0.7 fixes that in two ways.
Full control over your prompts. Removing hidden prompting has a side effect: your own custom prompting gets more effective, since there’s not prompting under the hood that might cause bloating at best and conflicts at worst.
Full control over the middleware stack. v0.7 makes overriding built-in middleware first-class: pass a middleware= instance whose .name matches a default, and it replaces that default in place instead of erroring on a duplicate. (#4251)
As one power user shared:
"We [used to do] some hacky stuff to remove some of the default middleware. Overriding middleware is a very welcome addition."
SummarizationMiddleware is a good example. By default it kicks in once a conversation crosses 85% of the context window, using a generic summarization prompt. Different applications call for different prompting, and developers want to trigger summarization at different thresholds too, to stay ahead of context rot and the "dumb zone". You can now drop in a summarization middleware with your own settings:
from deepagents import create_deep_agent
from deepagents.middleware import SummarizationMiddleware
agent = create_deep_agent(
model="anthropic:claude-sonnet-5",
middleware=[
SummarizationMiddleware(
model="fireworks:accounts/fireworks/models/kimi-k3",
summarize at 50% of the context window instead of the default
trigger=("fraction", 0.5),
summary_prompt="Summarize the conversation so far, keeping any file paths and decisions verbatim...",
),
],
)
The same pattern works for any other builtin default you want to retune, like prompt-caching TTLs.
Filesystem performance
The filesystem is Deep Agents' core context management layer: the environment agents read, write, and navigate state through. This release makes some optimizations driven by the same eval suite plus trajectory optimizations identified from real dcode usage, with open and closed models.
write_file now overwrites an existing file instead of erroring (#4109), paginated read_file reports total and remaining lines plus the next offset (#4540), and grep/glob return partial results with a truncated flag instead of hanging on large trees, with grep also gaining a 1,000-match cap, streamed output, and optional context lines (#4063, #4570, #4706).
Breaking changes
This release removes some compatibility shims and changes a few default behaviors:
- TodoListMiddleware is no longer on by default (#4929), though it's opt-in with TodoListMiddleware().
- Support for backend factories, deprecated in v0.5, is removed in favor of concrete BackendProtocol instances (#4541). Other file format / backend protocol deprecations from v0.5 are also removed.
- The delete tool was added to the default filesystem tool list. FilesystemMiddleware accepts a tool allowlist so you can opt out of this if desired (#4325, #4698).
Full details, including migration notes and an “upgrade” prompt for coding agents, are in the changelog.
Try it
deepagents v0.7 is out now on PyPI:
uv pip install -U deepagents
and on npm:
npm install deepagents@latest
Give the latest deepagents a try, and let us know what you think via GitHub issues, the forum, or on X / LinkedIn.
References
- Release notes: deepagents v0.7.0
- Docs: customizing and overriding built-in middleware
- Docs: filesystem tools and virtual filesystem access
- Docs: opt in todos
- Eval suite blog: how we benchmark Deep Agents
Related content

Agent Architecture
How we built LangChain’s agent-first data stack

Emily Hawkins
July 27, 2026
14
min

Open Source
Observability & Evals
How We Benchmark Deep Agents


N. Hollon,
H. Chase
July 23, 2026
4
min
.png)
Open Source
LangGraph
Agent Architecture
3 Years of Graph Engineering with LangGraph


S. Runkle,
H. Chase
July 22, 2026
7
min
See what your agent is really doing
LangSmith, our agent engineering platform, helps developers debug every agent decision, eval changes, and deploy in one click.
他社はどう報じたか
同じ出来事を扱う別媒体の記事です。見出しと公開時刻を比較できます。
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み