Whenever cursor proposes to create a new file, it generates the file name, but it does not tell me where in the code should I place or if I need to create a new folder inside some other folder etc.
eg.
While creating a React app, it said Letβs create AddTeamMemberDialog.js and then gave me some code. In the code block the file name was AddTeamMemberDialog.js
Since my code base had lots of folders and sub folders, I had to ask, where should I place this file? and then it replied:
src/components/team/AddTeamMemberDialog.js
The full path structure would look like this:
src/
βββ components/
β βββ navigation/
β β βββ LeftNavigation.js
β βββ team/
β βββ AddTeamMemberDialog.js
βββ config/
β βββ firebase.js
βββ β¦
Do I have to always spend a rquest to clarify such small things? or is there a way to tell Cursor to always show full file paths whenever it is making suggestions?
Hey, you can set this in the rules if youβre not using it yet. You can include something like: always specify where I need to place the file. The wording can be different, but I think you get the idea. I hope this helps you.
Yeah set it in rules, but also in a project instructions.rmd file and keep refering to it in context. Check my post history for some examples - and I can feed you some gists if you want for what I have bnen wokring on to force certain behavior of the Composer Agents
Complete documentation system for Cursor IDE development
Multi-agent workflow orchestration framework
Centralized documentation database as Source of Truth
Standardized interfaces for agent communication
Comprehensive tracking and analytics
Built-in validation and quality assurance
Scalable and extensible architecture
These documents provide a foundation for building complex, multi-agent systems with Cursor IDE while maintaining consistency and traceability across all project artifacts.
Look at my other posts about self documenting agents:
+++++
ITS STILL WRANGLING CATS with these fn Agents - but YOLO makes it a much smoother experience as it will respond to its own errors and iterate to a solution, which is sublime.
Is this when youβre using Chat or Composer? Only Composer has your file structure in context I believe. You could try adding rules but it seems like rules only apply to the Chat context and command - K context.