Replit Assistant
What is Replit Assistant?
Replit Assistant is a new AI tool that works alongside Replit Agent (or independently) to improve your code, fix errors, and build specific features. Built for efficiency and cost-effectiveness, it lets you harness the power of AI while coding without stressing about cost.
How does Replit Assistant work?
Understanding The Basics
How do I access the Assistant?
To access the Advanced Assistant, you’ll need to be on a Replit Core or Team membership.
The Assistant chat pane is one of the primary tools in your workspace. You can always open it by clicking its icon in the tools dock in the left sidebar.
What's the difference between Basic and Advanced Assistant?
- Basic Assistant can answer questions using code base knowledge & Replit documentation. It's free to use.
- Advanced Assistant can propose & automatically apply code changes via edit requests (in addition to Basic capabilities). It costs 5 cents per edit request.
What can the Assistant do? Think of the Assistant as your dedicated engineering specialist. While it can't handle a full team's workload like the Agent, it maintains deep knowledge of your codebase and works efficiently to make precise edits to your project. Here are some key capabilities of the Assistant:
- Build micro features such as adding buttons and styling UI
- Fix errors, from syntax issues to runtime errors and more
- Analyze the codebase to help you understand technical details
What can’t the Assistant do? To optimize the Assistant's efficiency, we made some necessary tradeoffs. Therefore, the Assistant is not able to:
- Access the Secrets tool for API keys during integrations. You'll need to manually add your API keys through the Secrets pane or edit the variables in the code directly.
- Automatically run Shell commands. However, you can click the suggested command cards to run them yourself using the Shell tool.
Managing Settings
How do I automatically apply proposed code changes from the Advanced Assistant?
The Advanced Assistant is able to automatically apply changes to your codebase. However, you’ll need to enable this setting in order for it to be in effect. Steps:
- Navigate to Assistant Settings in the top right corner of the pane
- Toggle on “Assistant: Auto Apply Changes”
Why is workflow restarting automatically turned on for the Advanced Assistant? Automatic workflow restart will rerun your application whenever your code changes. This default setting helps you debug and see changes to your application in real time as you edit your code. However, you can manage these settings to fit your preferences. Steps:
- Navigate to Assistant Settings in the top right corner of the pane
- Toggle “Assistant: Auto Apply Changes”
How do I personalize my Assistant's behavior? You can customize your Assistant by providing your own rules or instructions for it to follow. For instance, you might want your Assistant to be more detailed and thorough to get comprehensive answers to your questions. You can ask it to respond to you in that way by creating a custom "prompt". Steps:
- Navigate to Assistant Settings in the top right corner of the pane
- Select the settings icon beside the drop down
- Create a new prompt from the Manage Prompts modal
- Select your prompt from the drop down
Assistant Billing
The Replit Assistant has two modes, Basic and Advanced. Basic Assistant is free to use.
Just like the Agent, the Advanced Assistant operates on a usage-based billing system where you pay 5 cents per edit request.
An edit request occurs when you send a message in Advanced mode and the Assistant responds to your request by writing code or generating shell commands. These typically occur when you ask for help building a feature or fixing an error, but they may occur in a variety of cases (not all of which are listed in this document). We're always working to improve the Assistant's effectiveness & comprehension, so its behavior may change over time.
Core subscribers receive $25 in monthly credits, while Teams subscribers get $40 in monthly credits per user. These credits automatically apply to Advanced Assistant usage and other Replit cloud service costs.