github / github/copilot-cli

excessive sequential tool calls instead of batching

Open
#2,983 0 comments 0 reactions 0 assignees View on GitHub
area:agents area:tools
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

When analyzing a 1.8MB JSON file with over 150 records, Copilot made 7+ separate tool calls across multiple rounds to extract data that could have been gathered in a single Python script

### Affected version

_No response_

### Steps to reproduce the behavior

Repro Steps:
1. Open Copilot CLI and point it at a JSON file
2. Ask: "Read and parse this file, extract fields a b c d e, and create categories from the data."
3. Count the number of separate tool calls Copilot makes before it has all the data it needs.

### Expected behavior

Copilot should generate a single Python script that parses the JSON, extracts all relevant fields, and outputs a consolidated summary. This should require 1-2 tool calls at most

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.