Assistant uses powerful AI technology to understand your Replit App and make improvements.

Features

Assistant offers Basic and Advanced modes to help you build your app efficiently and according to your needs.

Assistant uses the following industry-leading AI models:

  • Basic:
  • Advanced:

Basic mode

Chat with Assistant about your Replit App to receive the following support:

  • Clear explanations of your code
  • Intelligent autocomplete suggestions
  • Recommendations to improve your app

This mode is completely free for all users.

Advanced mode

Take your development to the next level with Assistant’s ability to directly interact with and modify your Replit App. In addition to Basic mode features, Advanced mode can perform the following actions:

  • Update code automatically for adding features and fixing bugs
  • Undo any of Assistant’s changes in one click
  • Install and set up packages to support added features
  • Create and update Workflows
  • Update your database structure

For your security, Assistant cannot access or modify data in Secrets, Replit’s secrets manager.

Usage

You can use Assistant in any Replit App from your Replit workspace. Access Assistant’s AI-powered features from the Assistant tool or the File editor.

Assistant tool

From the Assistant tool, you can perform the following actions:

  • Chat: Type your instructions or questions in the text area or select one of the pre-created prompts
  • Switch modes: Select Basic or Advanced mode
  • Manage conversations: Select New chat or select previous conversations from the menu icon menu icon to start or resume a conversation
  • Track usage: Select the usage icon usage icon to view your billing page
  • Customize settings: Select the gear icon gear icon to configure Assistant settings
  • Reverse changes: Select Undo these changes to roll back Assistant’s modifications or select Go to this checkpoint to reset your code to that specific revision

To switch between Basic and Advanced mode, select the dropdown arrow and select the mode.

You should see a menu that resembles the following image:

Chat prompts

To communicate your request in the Assistant tool, enter a prompt in the text area. A prompt is a natural language instruction that tells the Assistant what you need. Assistant analyzes the files in your Replit App and your prompt to create its response.

In addition to the text prompt, you can include the following to add context:

  • Attach a file by dragging it into the text area or by selecting the Paperclip icon paperclip icon
  • Specify files from your Replit App related to your request by selecting Add file context.

While Assistant intelligently determines which files are relevant to your request, identifying the files can help it create a more accurate solution.

Edit requests

In Advanced mode, Assistant creates edit requests when proposing changes to your Replit App. Edit requests contain all the code and configuration modifications it intends to make. These requests let Assistant perform the following actions:

  • Display a preview of the proposed changes
  • Let you review and approve the changes before applying them
  • Automatically create a version control checkpoint for approved changes
  • Undo changes or restore your project to a previous state

When Assistant suggests changes, select Preview code changes icon Preview code changes to view the proposed changes.

To approve the edit request, select Apply all to implement the changes.

Replit charges a fee for each approved edit request.

To learn more about pricing, see Replit AI Billing.

File editor

When viewing content in the File editor, you can access the following Assistant-powered actions:

  • Get explanations: Highlight the code and select the Assistant explain icon explain icon to receive a detailed breakdown.
  • Improve your code: Highlight the code and select the Assistant modify icon modify icon to have Assistant improve or rewrite your code.
  • Fix errors: Hover over squiggly underlined code, which indicates Assistant detects possible issues, and select “Debug with AI” to get fix suggestions. Request automatic changes or continue your conversation in the Assistant tool.

Assistant settings

From the Assistant settings, you can set the following preferences:

  • Append instructions: Add instructions automatically included in all your prompts
  • Select AI models: Choose specific AI models to process your prompts
  • Streamline changes: Skip the confirmation step for edit requests
  • Manage workflow restarts: Control whether Assistant code modifications restart the workflow