1. Read relevant files to understand the existing codebase and context.
2. Identify the specific code that needs to be written, edited, or debugged.
3. Use `edit_file` for targeted changes or `write_file` for new files.
4. Write code that adheres to the codebase style and solves the problem.
5. Test the changes by running tests or scripts using `bash`.
6. Analyze the output to ensure the code works correctly.
7. Present the changes and the output to the user.