这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@homanp
Copy link
Contributor

@homanp homanp commented Aug 4, 2025

What does this PR do?

This pull request introduces a new feature to control the maximum number of tool execution rounds in the Grok CLI, enhancing flexibility for handling tasks of varying complexity. It includes updates to the CLI, internal logic, and documentation to support this feature.

New Feature: Tool Execution Control

  • src/agent/grok-agent.ts: Added a maxToolRounds parameter to the GrokAgent class, defaulting to 400, and replaced hardcoded limits with this configurable value. [1] [2] [3]
  • src/index.ts: Updated CLI options and internal logic to accept and pass the --max-tool-rounds parameter, allowing users to specify the limit for tool execution rounds. [1] [2] [3] [4] [5] [6] [7] [8]

Documentation Updates

  • README.md: Documented the new --max-tool-rounds option, including examples and use cases for controlling tool execution limits in different scenarios. [1] [2] [3]

Version Update

  • package.json: Bumped the version from 0.0.18 to 0.0.19 to reflect the new feature addition.

Fixes #62

Checklist

  • I tested my changes
  • I reviewed my own code

@homanp homanp self-assigned this Aug 4, 2025
@homanp homanp merged commit 243436d into main Aug 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Grok-CLI hangs in terminal-bench agent evaluation, ends with "Maximum tool execution rounds reached"

2 participants