Cursor is free with limits, and paid beyond that. Here is a tool that does the same job for free, including open-source software.
Open-source AI coding agent in the terminal that works with any AI model.