Editing with code instead of tools

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

code edits keep getting made by the agent running python code to change the text in the files which make it so I can’t actually see the changes. sometimes reminding it to use the edit tools works but sometimes it insists that the file is in .cursorignore (though I don’t have anything in .cursorignore). It’s happened with GPT 5.2 Codex and Gemini 3 Pro

Steps to Reproduce

sometimes making an agent request

Expected Behavior

it should just be using editing tools so I can seee the edits

Operating System

MacOS

Version Information

Version: 2.3.35 (Universal)
VSCode Version: 1.105.1
Commit: cf8353edc265f5e46b798bfb276861d0bf3bf120
Date: 2026-01-13T07:39:18.564Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin x64 25.2.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

To better understand what’s going on, can you share:

  • The exact prompt where the agent starts using Python instead of the edit tools
  • A screenshot of how the agent suggests changes via the terminal
  • If you have a .cursorignore file, its contents, or confirm it’s empty or not present
  • The file types the agent is trying to edit in this way

Also try:

  • In your prompt, explicitly ask: “use edit tools, don’t run any scripts”
  • If the agent mentions .cursorignore, ask it to show the file path and the file contents

Let me know the details.

sure thing! below is the most recent example of a python file I was asking for edits for.
in my custom instructions I say to be sure to use tools, and it took 2x mentioning in the chat before it began to edit the file using tools. I’ve confirmed my .cursorignore is empty, but sometimes (in other chats) when I ask why it’s not editing it will mention that the file is blocked in .cursorignore. I can see it checking the terminal for it’s contents and it returns empty, and when I mention that it often will eventually use tools to edit that file. It’s been python and MATLAB files

my prompt: i’d like to improve functionality of @misc/plot_electrodes.py .

1. lets add an ‘all’ plot_mode option to plot all of the contacts across all subjects. we’d have to pull csv files in a different way but take a look at preproc/getChannelLocations.m to see how to pull them from the individual subject csvs. for this, lets color-code by subject (make it a continuous colorscale that has as many steps as subjects to make it maximally differential). the dots will have to be smaller here because there will be a lot more contacts.

2. for all the plots made, lets add a few different angles. instead of saving in this folder, save in a subfolder with the same name as the file and save 3 different views (from side, from bottom, from front)

the screenshot: