Agent offers the same functionality as Chat, while also including tools in the request to the model and an interface for handling tool calls and responses.
Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a read_file
tool with a filepath
argument will give the model the ability to request the contents of a specific file.
The following handshake describes how Agent uses tools:
user
chat requestsAutomatic
In Chat mode, tools are not included in the request to the model.
Continue includes several built-in tools which provide the model access to IDE functionality:
read_file
): read the contents of a file within the projectread_currently_open_file
): read the contents of the currently open filecreate_new_file
): Create a new file within the project, with path and contents specified by the modelexact_search
): perform a ripgrep
search within the projectfile_glob_search
): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached.run_terminal_command
): run a terminal command from the workspace rootsearch_web
): Perform a web search to get top resultsview_diff
): View the current working git diffview_repo_map
): request a copy of the repository map—same as the Repo Map Context Providerview_subdirectory
): request a copy of a repo map for a specific directory within the projectcreate_rule_block
): creates a new rule block in .continue/rules
based on the contents of the conversation