<< Home | Work
Better code understanding and lower token usage
| Area | Work |
| AI used | Cursor |
| Source | r/cursor |
| Posted | 2026-01-18 |
The move
Force the AI to guide you through coding tasks step-by-step instead of applying changes automatically.Steps
- Open a new chat in Cursor and switch to plan mode.
- Describe your coding task or bug fix in detail.
- Add the custom tutorial prompt to the chat instructions.
- Follow the AI's step-by-step instructions to write tests and code manually.
- Ask questions or suggest changes at any point during the process.
Prompt for your AI
Let's switch into tutorial mode, where you walk me through the steps to [insert task] one at a time. I will make all the changes. Whenever possible, write a test first. Do not make the changes yourself; instead, guide me through the steps, one block of code or function at a time. Keep steps incremental, ensuring no single addition exceeds 50 lines.
What happened
The user wanted to improve their understanding of their codebase while implementing features. They created a custom 'tutorial' prompt that forces the AI to provide instructions one step at a time rather than editing files directly. This approach resulted in a deeper mental model of the application and reduced token consumption.Watch out
This process is significantly slower than letting the AI apply changes automatically. You must remain attentive to ensure the manual code implementation matches the AI's instructions.Give it to your agent
Read https://howtheyuse.ai/p/better-code-understanding-and-lower-token-usage.md and help me do this.