Skip to content

Allow for multiple edit commands at once. #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bhouston opened this issue Mar 29, 2025 · 1 comment
Open

Allow for multiple edit commands at once. #387

bhouston opened this issue Mar 29, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@bhouston
Copy link
Member

Doing a bunch of small edits one at a time can be very inefficient for token usage.

@bhouston
Copy link
Member Author

Issue Triage Analysis

Thank you for submitting this issue! I've analyzed it according to our triage guidelines.

Issue Classification

  • Type: Feature Request
  • Labels: enhancement

Analysis

This is a valid feature request that aligns well with the project's focus on efficiency. Executing multiple small edits one at a time can indeed be inefficient for token usage.

Implementation Possibilities

I propose adding a new 'batch' command to the textEditor tool that accepts an array of operations to be executed sequentially. This would allow multiple edits to be performed in a single API call, improving token efficiency.

Implementation approach:

  1. Extend the parameter schema to include a 'batch' command
  2. Implement the batch command functionality to execute multiple operations sequentially
  3. Add proper error handling and maintain the undo history
  4. Add tests for the new batch command functionality

Potential Challenges

  • Ensuring atomicity: if one operation fails, should all be rolled back?
  • Maintaining proper error reporting for each operation
  • Ensuring the undo history is properly maintained

Estimation

  • Medium complexity
  • Estimated implementation time: 2-4 hours including testing

I'm labeling this as an enhancement. Would you like me to proceed with implementing this feature?

@bhouston bhouston added the enhancement New feature or request label Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant