Optimize token usage to keep your costs down
The smallest individual units of a language model, and can correspond to words, subwords, characters, or even bytes (in the case of Unicode).When you interact with Bolt, tokens are consumed in three primary ways:
npx knip --production --fix --allow-remove-files
Check the output in the terminal to see if the command ran successfully. This command removes unnecessary files from the codebase, which reduces the project size.
Open the Bolt terminal
.bolt/ignore
file.bolt/ignore
file, list any files or folders that Bolt should exclude from the AI context window.
.bolt
directory, click ignore
to open the file in the editor.ignore
file, right-click the .bolt
directory, then click New File…. Name the file ignore
.*
as a wildcard. For example: to ignore all files in a directory called test
, write test/*
in your ignore
file. These files are now completely invisible to the AI, which frees up space in the context window.Please generate a short summary of our conversation so far
..txt
or .md
file.Enter
to upload the file and your prompt.