Skip to content

[FEATURE]: select/replace tools #9701

@koush

Description

@koush

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The search/replace mechanism that has become the defacto workflow for edits in all agentic tools has a couple problems:

The LLM has to perfectly recall and generate the code it wants to replace in full. Granted, the edit tool has lenient matching here.
LLM token generation/output is an order of more expensive and several order of magnitudes slower than prefill/input.
Failures are expensive and slow. If the match fails, the entire tool call needs to be reexecuted.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions