Skip to content

[Bug]: Parallel tool-call cap (20 per turn) is enforced by the harness but omitted from the agent system prompt #191

Open

Description

@varadharajaan

What happened?

The Augment VS Code extension / agent harness enforces a hard ceiling of 20 parallel tool calls in a single model turn and cancels calls 21+ with Tool cancelled due to limit.

However, the built-in agent system prompt instructs the model to:
Parallelize independent, bounded lookups in a single turn; sequence calls only when an earlier result determines the next input.
without stating that a 20-call per-turn cap exists. Because the model has no visibility into this harness-enforced limit, broad research turns emit >20 parallel tool calls and immediately dump red Tool cancelled due to limit failures in the chat UI on a brand-new session.

What did you expect to happen?

Any hard execution limit enforced by the Augment harness should be cascaded into the agent's built-in system prompt (or tool-calling instructions) automatically so the hosted LLM knows not to emit more than 20 parallel tool calls per turn, or excess calls should be queued into a second batch by the host instead of failing loudly.

Steps to reproduce

  1. Start a new Augment Agent session in VS Code.
  2. Give the agent a broad research prompt (for example, identifying multiple unfamiliar tools/components from an attached screenshot) where >20 independent lookups are plausible.
  3. Observe the model follow the system prompt's parallelization instruction and emit >20 tool calls in one turn.
  4. Calls 1-20 run; calls 21+ fail immediately in the UI with Tool cancelled due to limit.

Auggie version

vscode-augment 0.904.1 / auggie 0.36.0 (commit 7c61e5bb)

Request ID

N/A (reproducible across VS Code Agent sessions)

Environment details

Environment
  • OS: macOS 26.7.1 (arm64)
  • Shell: bash / zsh
  • IDE: VS Code 1.146.0
  • Augment VS Code Extension: 0.904.1
  • Auggie CLI: 0.36.0 (commit 7c61e5bb)

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions