We need a configuration file to avoid providing a large input to the Agent Mode to avoid in every prompt something like “do not use as any
”, do not try to install @types/node
in a bun project, do not use npm in a project with a bun.lock
, do not use Jest
specially if you see a vitest
as dev dependency, I am guessing we could agree in these instructions MUST be inferred by the Agent, but while the Agent keeps insisting in don’t look up the context, to have system prompt file could improve the development experience.
That exists already.
See docu:
User Prompt (for all projects, and always used in any prompt)
Project Prompts (you can make one per monorepo path with file wildcard)
You right Cursor – Rules for AI
I’m not sure how good this feature is, I added some rules trying for the agent to obey me better, sometimes it’s a bit lazy in testing