Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I was using Cursor Agent Mode (Auto) on a clean Flutter project.
I provided a long prompt requesting the design and implementation of an agnostic tween engine. Prompt discussed:
- Dart / Flutter
- GraphX architecture
- Tween engines
- Animation systems
- Timelines
- Frame invalidation
- Performance considerations
- Creating files under a specific folder: lib/motion_cursor
The request had absolutely no relation to finance, trading, Python trading bots, Alpaca, or stock market software.
Instead of working on the requested tween engine, the agent generated a complete stock trading bot proposal, including files such as:
- run_dip_bot.py
- broker.py
- config.py
- dip_scanner.py
- risk.py
- update_positions.py
The output also referenced:
c:\Users\Administrator\Desktop\trading bot
which is unrelated to my project and environment, very scary
More concerning, the agent created these files inside my project directory even though they were unrelated to the task.
This appears to be a severe hallucination or context-routing failure because the generated result has no semantic relationship to the prompt that was provided.
Steps to Reproduce
- Open Cursor Agent Mode.
- Use Auto mode.
- Created a clean Flutter project.
- Provide a prompt requesting architecture and implementation work for some animation engine.
- Mention creating files in a specific project subfolder.
- Allow the agent to execute autonomously.
In my case, instead of working on the tween engine, the agent generated and created files for a completely unrelated stock trading bot.
I have attached screenshots of:
- The original prompt with the generated trading bot response.
- The files that were created.
Expected Behavior
- Worked on the requested tween engine architecture.
- Created files only within the requested folder.
- Generated Dart code relevant to the Flutter project.
- Asked for clarification if the request was ambiguous.
The agent should not generate an unrelated project from a completely different domain, nor create unrelated files inside the workspace, with a predefined Windows sys path, when i’m on MacOS
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Version: 3.10.19
VS Code Extension API: 1.125.0
Commit: 8fd6d68fb73686cd1a6aef45d3b789e057ae0460
Date: 2026-07-06T19:51:11.323Z
Layout: Agent Window
Build Type: Stable
Release Track: Nightly
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0
For AI issues: which model did you use?
Auto
For AI issues: add Request ID with privacy disabled
f9a7046a-279b-47e5-ab48-6e8dc12daba1
Additional Information
Agent was running in Auto mode.
The workspace was a Flutter project and the prompt was specifically about designing a tween engine architecture for a package of mine/
The generated output referenced a Windows path:
c:\Users\Administrator\Desktop\trading bot
even though Cursor was running on macOS.
The agent then created multiple unrelated Python files inside the project workspace. Very scary
The generated files appeared unrelated to the prompt and were not requested.
Because this workspace was not under git version control, the generated files had to be manually removed.
I have attached screenshots of:
- original prompt + generated response
- The files created in the workspace
Does this stop you from using Cursor
No - Cursor works, but with this issue

