Plan before you build
Planning your app before you start building can save time and tokens by helping you avoid rework later. Decide what type of app you’re making, who it’s for, and the key features you need, then write a clear first prompt and build step by step. To learn more about project planning, see Project lifecycle. Use Plan mode to talk through your plan, troubleshoot, or make decisions with Bolt without changing your code. In Build mode, every prompt you submit updates your code and uses tokens, but Plan mode uses fewer tokens because it doesn’t make any changes to your project.If your project uses v1 Agent (legacy), you’ll see Discussion mode instead of Plan mode. v1 Agent and Discussion mode are being retired on August 3, 2026.
Choose the right agent for efficient token use
Each Bolt agent uses tokens differently. For tasks of average complexity, the Standard agent gives you accurate results without the additional token cost of deeper reasoning. For more complex tasks, the Max agent uses more tokens to work through the full scope of your task. Using the Max agent for straightforward tasks may use more tokens than necessary, and using the Standard agent for complex tasks may require more prompts to achieve your goal. To use tokens effectively, choose the agent best suited to your task.Keep your prompts specific and focused
When prompting, be clear and specific. Tell the agent to focus on specific files or functions rather than the entire codebase. See Prompt effectively for more detailed guidance on prompting.Use buttons instead of prompting where possible
Whenever they’re available, use buttons and built-in actions rather than asking Bolt to do the same task for you. For example:- Use the Publish button instead of prompting Bolt to publish your site.
- Use the Version History feature instead of prompting Bolt to revert to a previous version of your project.
Add functionality incrementally
Before adding advanced functionality, make sure your project’s basic functionality is in place.- Create your core pages: For example, a homepage, a dashboard, and a basic contact or help page
- Set up navigation: Make sure users can move between pages smoothly, like jumping from a leads page to a customer profile in a CRM
- Keep the design consistent: Use the same colors, fonts, and layout so the app feels professional and easy to use
- Start small, like adding a form to capture leads or customer data
- Next, add functionality to store and display those records, like a simple customer list or profile view
- Continue adding search, filters, or analytics so users can find data quickly
- Test after each new piece to catch problems early and avoid breaking what already works
Turn on connectors only when you need them
Connectors are a powerful way to give Bolt real-world information from your external tools and data sources. However, adding information to Bolt’s context increases token consumption. We recommend turning on connectors for a project only when you need them. To learn more, see Best practices for using connectors.Avoid repeated automated error fix attempts
When an error occurs, Bolt gives you the option to try an automatic fix. Sometimes clicking it a second time will resolve the issue, but remember that each attempt uses tokens. Avoid clicking Attempt fix over and over, hoping for things to eventually work out. If Bolt can’t resolve the issue with automatic fixes, research the errors you’re getting and step in manually. You can also switch to Plan mode to ask focused questions, explore solutions, and confirm a plan before the next fix.Add error handling to your project
If you find yourself stuck in an error loop, a useful strategy is to prompt Bolt to enhance error handling and implement detailed logging throughout the problematic area. When prompted to, Bolt excels at inserting robust error logs, even at a granular level, such as between functions or key steps. These logs provide valuable feedback that the AI can use to better understand the root cause of the issue. This additional logging also provides more precise information when the error occurs again. With this detailed feedback, Bolt can make more accurate adjustments to fix the issue.Undo changes using the Version history feature
Use the Version history feature to restore your project to a previous state without consuming tokens. This is similar to an undo button that can take you back to any prior state of your project. If you’ve made a change you don’t like, rather than prompting Bolt to fix it, you can switch back to a previous version of your project without using tokens. This can save time and tokens if something goes wrong with your project.Clear context
Clearing Bolt’s context resets its understanding of your project so your requests use fewer tokens. To learn when and how to clear context, see Clear context.Reduce the size of your project
A smaller project uses fewer tokens, because Bolt has less code to read and process. There are a few strategies that can reduce your project size, including cleaning up unused files and splitting large files into smaller ones. To learn more, see Reduce the size of your project.Use the .bolt/ignore file with v1 agent (legacy)
The
.bolt/ignore file only works with v1 agent (legacy), which will be retired on August 3, 2026. It doesn’t work with Bolt Agent..bolt/ignore file, list any files or folders that Bolt should exclude from the AI context window.
- Log in to your Bolt project.
- Click the code icon (<>) in the top center of your screen to switch to Code view.
- Either:
- In the
.boltdirectory, clickignoreto open the file in the editor. - If there isn’t an
ignorefile, right-click the.boltdirectory, then click New File…. Name the fileignore.
- In the
- List the files you want Bolt to ignore. Provide the full path to the files, including directories. You can use
*as a wildcard. For example: to ignore all files in a directory calledtest, writetest/*in yourignorefile. These files are now completely invisible to the AI, which frees up space in the context window.

Hiding files from Bolt can have unintended consequences, as Bolt is no longer aware of your entire project. This approach is powerful, but is only recommended for advanced users who can make informed decisions about what can safely be excluded, and can understand and resolve issues that may arise from this approach.