Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.replit.com/llms.txt

Use this file to discover all available pages before exploring further.

Agent is Replit’s AI builder and your companion for turning ideas into software. Agent can plan changes, write code, explain behavior, debug issues, and improve your app. Vibe coding 101 explains the mindset, while this page explains how to work with Agent in practice. Effective prompting explains how to write clearer instructions. Think of Agent as the quarterback on the field: it reads the situation, chooses a path, and moves the work forward. You are the coach: you set the strategy, call the play, review what happened, and decide the next move. Agent can do a lot, but it works best when you lead the process: be specific, plan the work, add context, review and test, and use checkpoints when you need to recover.

Five tips for building with Agent

Use these habits when you work with Agent:
  1. Be specific.
  2. Plan the work.
  3. Add context.
  4. Review and test.
  5. Use checkpoints.

Be specific

Agent can handle complex work, but it needs clear direction. A useful request explains what you want, what matters, and what should stay the same. It does not need to describe every implementation detail, but it should give Agent enough direction to make good decisions. Instead of: Try: The second prompt gives Agent a goal, a focus area, and constraints. When your request has several parts, say what matters most. Agent can break that work into steps, but your direction tells it what success looks like. For more examples of specific instructions, see Effective prompting.

Plan the work

Planning helps when the work has uncertainty, multiple steps, tradeoffs, or anything you want to approve before files change. You can ask Agent to make a plan in the conversation: Use Plan mode when you want Agent to think first and wait for your approval before changing files. Toggle Plan in the prompt composer before submitting.
The Replit home prompt box with a running app prompt typed in and the Plan checkbox toggled on
When Agent finishes thinking, you will see a task plan is ready for review banner with a Review now button.
A task plan is ready for review banner with a Review now button at the bottom of the Agent panel

Add context

Context helps Agent understand what matters. You can add context with text, screenshots, sketches, files, data, errors, or Canvas annotations. Use the format that best explains the problem. Use text when the change is about behavior, goals, or constraints: Use screenshots or sketches when layout is hard to describe in words: Use Canvas annotations when the change is visual and you want to point to a specific part of the app.
A fitness app frame on the Canvas with a rectangle, arrow, and text label pointing at the progress card, plus a pen sketch and label on the form area
Good context also includes what should not change. That helps Agent improve one area without accidentally rewriting another.

Review and test

Agent may propose a plan before building, and it may summarize what changed afterward. Read both. Open the plan by selecting View on the task plan card. The expanded plan shows what Agent intends to build, the success criteria, what is out of scope, and the steps Agent will follow.
Expanded task plan showing What and Why, Done looks like criteria, Out of scope items, and numbered build steps
Before Agent builds, review the plan:
  • Does this solve the right problem?
  • Is anything missing?
  • Is anything out of scope?
  • Is there a smaller version to build first?
  • Does it explain how you should test the result?
If the plan is too broad, ask Agent to reduce it. After Agent builds, test the app yourself. Open Preview and use it like the person it is for. Check:
  • Can someone complete the main action?
  • Did the requested change happen?
  • Does the app still work on mobile?
  • Did any important behavior break?
  • Did Agent change something unrelated?
  • Is the result good enough to keep building on?
If something is wrong, describe what you saw. Instead of: Try: Specific feedback helps Agent fix the right issue.

Use checkpoints

Checkpoints help you recover when a change goes in the wrong direction. Use focused feedback when the result is close: Use a checkpoint when the app is worse than before, important behavior broke, or Agent changed more than expected. Open History in the Agent panel to see checkpoints. Each checkpoint shows what changed, with Rollback here and Changes controls.
The Agent History panel showing a checkpoint labeled 'Transitioned from Plan to Build mode' with Rollback here and Changes buttons
When you select Rollback here, Agent confirms what will be restored before applying the rollback.
The Rollback to checkpoint confirmation dialog listing the target checkpoint and what will be impacted: files, Agent memory, tasks, and a Database checkbox
If you are unsure whether to fix forward or roll back, ask Agent to help compare. Wrong turns are normal. Checkpoints let you explore without losing the ability to return to a safer version. For more recovery guidance, see Checkpoints and rollbacks.

What good Agent collaboration feels like

You are on the right track when:
  • Your requests explain the goal and constraints
  • Agent’s plan is clear enough to review
  • You add screenshots, files, or Canvas notes when words are not enough
  • You test important flows after changes
  • You give focused feedback when something is off
  • You use checkpoints instead of trying to untangle a bad change forever

Next step

Learn how to write clearer instructions that Agent can act on confidently.

Checkpoints and rollbacks

Learn how to return to a safer state when needed.