Claude on Daytona still defers agenta-tools behind ToolSearch despite ENABLE_TOOL_SEARCH=false

オープン
#7,147 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

Start with services/runner/src/engines/sandbox_agent/runtime-policy.ts and trace how applyClaudeConnectionEnv passes ENABLE_TOOL_SEARCH=false into the Claude process in the Daytona sandbox. Then check whether the Claude Code version in the Daytona snapshot honors the variable; reproduce by looking for ToolSearch before the first mcp__agenta-tools__* call. Done when the cause is identified and staging Claude runs no longer defer these tools.

索引モデルが issue の本文から書いたものです。

説明

On staging (Daytona), Claude runs still defer the agenta-tools MCP tools behind Claude's ToolSearch tool. The runner is meant to turn that off: applyClaudeConnectionEnv in services/runner/src/engines/sandbox_agent/runtime-policy.ts sets ENABLE_TOOL_SEARCH=false for every Claude run.

What happens

Staging QA of v0.121.2 used Claude Haiku on Daytona with an Agenta-managed key. Before its first call to each Agenta tool, Haiku called ToolSearch, for example select:mcp__agenta-tools__search_channel_messages. Until a tool is loaded that way, the model sees only its name, not its description.

The visible effect: asked "where can you post in Slack?", Haiku often answered from memory instead of calling list_channel_destinations. It hit only 7 of 13 tries across five phrasings.

On a local stack (local sandbox, Claude subscription), the tools are not deferred and the same phrasings hit 14 of 15.

The comment above that env line says deferral is worse than a bad prompt: Claude can call a deferred tool before its schema loads and send empty arguments. That breaks tools with arguments, such as commit_revision.

To reproduce

Run any staging agent with the Claude harness on Daytona and a platform tool. Look for a ToolSearch tool call before the first mcp__agenta-tools__* call.

To find out

  • Does ENABLE_TOOL_SEARCH reach the Claude process inside the Daytona sandbox?
  • Does the Claude Code version in the Daytona snapshot still honor the variable?

PR #7145 works around the symptom for the channel tools with a line in the platform prompt. The deferral itself is not fixed.

主要言語
TypeScript
スター
4.8k
フォーク
690
平均マージ
23時間 39分
マージ済み PR(30日)
482

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Agenta-AI/agenta のほかの issue

Agenta-AI/agenta の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。