How to add files from another project into Agent mode as a reference?

Hi,

I am working on a Blazor Web App and I would like the agent to read and learn the implementation of login and redirect features from another project files. How can I add these files to the Agent?

Thanks in advance.

I did this yesterday for a similar issue. I added the folder to the workspace (File > Add folder to workspace) and had the agent parse the data to identify what needed to be implemented. Once I approved the changes, I removed the file from the workspace.

1 Like

To have the Cursor Agent learn from your login and redirect implementation in another Blazor Web App project, you can add the relevant files to the Agent’s context in Cursor. You can proceed by moving the file or workfolder into your current workspace and @tag the composer (chat) with what you want and implement into your workspace.

1 Like

just drag and drop the file to composer, u can drag and drop file from another project

1 Like