What is prompting?
Prompting is how you communicate with Same to build your project. Treat a chat as a conversation with Same, where every message is a prompt. Remember, Same is not a human, so it is important to be clear and concise in your prompts.Simple prompts
Each prompt should relate to a single task or change. This helps keep Same focused on a single task and improves the quality of the output. Instead of: “Rebuild the entire dashboard with a new design and add analytics.” Try:- “Update the color scheme using these hex codes: #…”
- “Refactor the dashboard Card component to use Tailwind CSS.”
- “Add a chart component here to display user signups.”
- “Add analytics tracking for button clicks.”
Simple chats
Start new chats frequently. Treat each chat as a single task or feature. Benefits:- Cost Control: Prevents context windows from becoming too large, reducing token usage.
- Accuracy: Keeps Same focused on the current task without confusion from old context.
- Debugging: Makes it easier to isolate issues within a shorter history.
- After completing a feature.
- When switching to a significantly different task.
- If the chat history becomes very long or Same seems confused.
Use the “New Chat” button ( icon, top-right in chat panel)
to start fresh.
Be specific
Here is an example of a prompt that is not effective:- Did not provide context on which dropdown menu isn’t working.
- Did not describe what specifically isn’t working.
- Added another bug report along with it.
Things Same should not be asked to do
To avoid unnecessary errors or confusion, keep in mind:- Do not ask Same for token estimates.
Same does not have access to internal token counts and any guess would be unreliable. You can keep an eye on your token usage by clicking on your profile icon or going to the settings page (learn more). - Do not ask for downloadable ZIPs.
While Same can generate or modify files, packaging and serving a ZIP is outside its capabilities. Instead, use the download button in your project (learn more). - Do not ask Same to revert files or changes.
Use the built-in version control system for reverting to previous states. This is more reliable and keeps the chat focused.
Providing context
While Same can search your codebase on its own, providing context directly will help same better understand your needs.- Links: Provide URLs to documentation, examples, or inspiration.
- Files & Summaries: Use the
@ Add context
button in the chat input.- Select specific project files Same needs to read or modify.
- Include summaries of previous relevant chats.
- Conversation History: Refer to previous messages or decisions within the current chat.
Using
@ Add context
is more efficient than asking Same to search for
information.
Use the '@ Add context' button to include files or summaries in your prompt.
Guiding Same’s actions
Usually, prompts are handled as a one-shot action, where Same will attempt to complete the task in one go. When working with complex tasks, it might be helpful to guide Same through the process step-by-step. For example, you could use the phrases like:- “Create a plan for implementing the new user profile feature.”
- “Investigate and provide a report for the bug in the payment flow.”
- “What are three ways we can improve the performance of this page?”
Reviewing and iterating
Same shows code changes (diffs) and updates the live preview.- Review Diffs: Check the tool invocation blocks to see what code changed.
- Check Preview: Verify the visual changes in the live preview panel.
- Give Feedback: If needed, tell Same what to adjust. Be specific.
Editing your messages
If you need to change a previous instruction:- Hover over your message.
- Click the pencil icon.
- Edit the text.
- Submit the changes.

Click the pencil icon on hover to edit a previous message.