Skip to content

Evaluate Code Mode to batch independent tool calls #1987

Closed

Description

@sentry-junior

Problem

Tool-heavy research turns can involve many serial tool calls, each requiring another model round trip and adding latency, cost, and repeated context processing. Independent provider/API lookups may be batchable, and filtering or joining results before returning them could also keep bulky intermediate data out of conversation history.

Proposal

Evaluate a Code Mode–style capability that lets the model compose one bounded execution to run independent tool/API calls, filter and join results, and return a compact result.

Scope and caveats

  • Start with independent MCP/provider lookups; establish which workflows are actually bundleable before implementing broadly.
  • This will not automatically solve sequential shell workflows or polling. Polling may need a wait/subscription mechanism, and any in-execution waits must be bounded.
  • This does not address unrelated context compaction, model routing, cache behavior, or backend latency.
  • Preserve existing authorization and credential boundaries for calls made within an execution.

Success metrics

Evaluate against comparable tool-heavy tasks:

  • Model round trips and tool calls per task
  • Input tokens and cost per task
  • p50/p95 end-to-end latency
  • Task accuracy, with no regression

via David Cramer.

--

View Junior Session [Sentry]

Activity

  1. sentry-junior commented on Nov 9, 2026

    @sentry-junior
    ContributorAuthor

    Fixed on main: Code Mode shipped (#2528–#2531, #2539; chat/codemode/).

    Closed during a tracker cleanup. Reopen if something here is still missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions