Title: Feature Request: Allow AI Assistant to Manage Editor Tabs
Description:
When working with the AI assistant in Cursor, especially during long sessions involving multiple files and most especially after many tasks in yolo mode, the editor can become cluttered with many open tabs. It would be helpful if the AI assistant had the ability to manage these tabs programmatically, similar to how a human pair programmer would help keep the workspace organized.
Proposed Features:
- Add new tools for the AI to:
- List currently open editor tabs
- Close specific tabs (only if they’re saved)
- Close all tabs except the current one
- Organize tabs into groups
- Save and restore tab layouts
Use Cases:
- After the AI makes multiple edits across different files and all changes are saved, it could close those tabs to keep the workspace clean
- When starting a new task, the AI could close tabs from the previous task
- When working on related files, the AI could organize them into logical groups
- The AI could save commonly used tab layouts for different types of tasks
Technical Considerations:
- The AI should only be able to close tabs that have been saved
- The AI should maintain a list of tabs it has opened/modified
- The feature should integrate with Cursor’s existing tab management system
- Consider adding a user confirmation option for tab management actions
Benefits:
- Cleaner workspace during AI-assisted development
- Better organization of related files
- Reduced cognitive load for developers
- More natural pair programming experience with the AI