Skip to main content
Agents are continuously running LLMs that process user requests by calling a sequence of tools. Unlike workflows, they are fully autonomous and can be more flexible at coding.

Why use Agents?

Agents dynamically expand their context by calling tools that explore the codebase, run scripts, and make iterative changes. The are slower and more expensive to run, but can do much more if architected well. With the right choice of tools, you can optimize the steps the agent takes and cut down on latency/cost.

Relace Edit Tool

Here’s a tool definition and implementation we’ve seen work well with Relace apply models:

Verifying Edits

We strongly recommend passing the code changes back to the agent in UDiff format. This allows the agent to verify that the changes match its intent and make any necessary corrections.