Skip to content

Agentic Chat

The agent possesses capabilities such as autonomous decision-making, environment perception, and tool usage. It can complete coding tasks end-to-end using tools like engineering search, file editing, and terminal based on the developer's coding requirements.

Built-in Tools

  • The agent mode has multiple built-in tools for autonomous decision-making, including code search, regex search, file reading, directory reading, file editing, and command execution.
  • During the agent tool usage: The agent can make autonomous decisions and execute tasks without user confirmation or intervention. It can autonomously decide the next steps based on the tool return results, flexibly handling various development scenarios.
  • Users can view the detailed results returned by the tools. Different tools provide corresponding interactive operations, such as clicking to open the corresponding file in the editor for code search tool results.

Clear and Efficient Content Referencing

  • Automatic content filling: By default, the currently opened file is automatically filled as content.
  • One-click to add selected code blocks as context: Supports adding selected code blocks with one click using the shortcut ⌘ L, or quickly adding selected areas to the agent through the right-click menu.
  • Adding code blocks as context when copying/pasting: When copying multiple lines of code and pasting them into the input box, it supports automatically recognizing and displaying them in the context area in the form of "file + line number".

Changed Files Workspace

Displays line-by-line code changes, giving users complete control over code modifications across multiple files, with the freedom to accept or reject changes in multiple files.

  • Click the "Accept All" or "Reject All" buttons in the changed files workspace to batch process all code changes generated in the current session. -Click the "Accept" or "Reject" button for individual changed files to handle changes for a single file independently.
  • Click the accept or reject icon buttons for changed code lines to process content changes for individual code blocks separately.

Restore Checkpoint

When the code generated by the AI agent doesn't meet expectations or requirements change, you can roll back to the version before a specific conversation round with one click, ensuring that every modification is controllable and traceable. Follow these steps to roll back the project version:

  1. Locate the target conversation bubble.
  2. Hover your mouse over the conversation bubble and click the "Roll Back" button that appears.
  3. Confirm the rollback action. After rolling back, all code changes generated by the AI agent will be restored to the state before that version. If the rollback meets your expectations, click "Continue" to automatically roll back the project code, after which you can continue asking new questions.

Lints Error Auto-fixing (Beta)

After the agent completes code generation, it supports automatic checking of incremental lint errors in modified files and provides one-click fixing capability. You can choose whether to enable the lint self-checking and fixing feature in Settings > Enable Automatic Lint Issue Detection.