Cursor Integration
Connect Plexus with Cursor IDE to monitor AI-powered coding sessions.
Cursor is an AI-powered code editor built on VS Code that integrates large language models directly into the development workflow. Plexus can monitor your Cursor sessions, tracking AI interactions, token usage, and costs across all your projects.
What is Cursor?
Cursor is a modern code editor designed for AI-assisted development. Key features include:
- Composer - Cursor's flagship AI model for multi-file code generation and refactoring
- Tab Completion - Intelligent inline code suggestions powered by AI
- Chat - Interactive AI assistant for code explanations and help
- Agent Mode - Autonomous coding capabilities with tool access (terminal, file operations)
- MCP Support - Model Context Protocol integration for external tools and data sources
Cursor 2.0 introduced significant improvements including parallel agent execution (up to 8 agents), an in-app browser, and voice input capabilities.
How Plexus Integrates with Cursor
Plexus monitors Cursor through its hook system, capturing AI interactions in real-time:
┌─────────────────────────────────────────────────┐
│ Cursor IDE │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Composer │ │ Chat │ │ Tab │ │
│ │ │ │ │ │ Complete │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ │ │ │ │
│ └─────────────┼─────────────┘ │
│ ▼ │
│ ┌──────────────────────────────────────────┐ │
│ │ Plexus Hook Layer │ │
│ └──────────────────────────────────────────┘ │
│ │ │
└─────────────────────┼───────────────────────────┘
▼
┌───────────────┐
│ Plexus │
│ Dashboard │
└───────────────┘Monitored Features
| Feature | What Plexus Tracks |
|---|---|
| Composer | Multi-file edits, generation requests, agent actions |
| Chat | Q&A sessions, code explanations |
| Tab Completion | Acceptance rate, suggestion frequency |
| Agent Mode | Tool usage, terminal commands, file operations |
Setting Up the Integration
Automatic Setup
When you first launch Plexus with Cursor installed, the integration is configured automatically:
- Launch Plexus from your Applications folder
- Plexus detects Cursor and installs the necessary hooks
- Open Cursor and start coding - sessions will appear in Plexus
Manual Setup
If automatic setup doesn't work, you can configure the integration manually:
- Open Plexus and go to Settings > Agents
- Find Cursor in the list and click Configure
- Follow the on-screen instructions
Verifying the Integration
To verify Plexus is connected to Cursor:
- Open Cursor and start a new project
- Use any AI feature (Composer, Chat, or Tab completion)
- Check the Plexus dashboard - a new Cursor session should appear
Cursor Configuration Files
Plexus integrates with Cursor's configuration system. Here are the key locations:
| Platform | Settings Location |
|---|---|
| macOS | ~/Library/Application Support/Cursor/ |
| Windows | %APPDATA%\Cursor\ |
| Linux | ~/.config/Cursor/ |
Cursor Rules
Cursor supports project-specific rules that customize AI behavior:
- Project Rules:
.cursor/rules/*.mdcfiles in your project root - User Rules: Global rules in Cursor Settings > Rules > User Rules
Plexus respects these rules and displays which rules are active for each session.
Monitoring AI Features
Composer Sessions
When you use Composer for multi-file edits, Plexus tracks:
- Files being modified
- Token usage per request
- Generation time
- Success/failure status
In the Plexus dashboard, Composer sessions show:
- A "Composer" badge on the session card
- Multi-file change summaries
- Estimated cost for the operation
Chat Interactions
Plexus monitors Chat interactions including:
- Question and response pairs
- Code snippets shared
- Token counts for input and output
Agent Mode
When Cursor runs in Agent Mode, Plexus provides enhanced monitoring:
- Tool invocations (terminal, file operations)
- Execution steps and decisions
- Error states and recovery attempts
Agent sessions are marked with an "Agent" badge in the dashboard.
Cost Tracking
Plexus tracks API costs for Cursor sessions:
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| Composer | Based on provider pricing | Based on provider pricing |
| GPT-4 | $30.00 | $60.00 |
| Claude | $15.00 | $75.00 |
Note: Cursor Pro includes a monthly credit pool. Plexus shows usage against this pool when detected.
Viewing Cost Breakdown
- Click on a Cursor session in the dashboard
- Select the Costs tab
- View token usage by interaction type
MCP Integration Monitoring
If you've configured MCP (Model Context Protocol) servers in Cursor, Plexus can monitor these connections:
What Plexus Tracks
- Active MCP server connections
- Tool calls made through MCP
- Data retrieved from external sources
MCP Configuration Location
Cursor stores MCP configuration in:
~/.cursor/mcp.jsonTroubleshooting
Cursor Sessions Not Appearing
If Cursor sessions don't appear in Plexus:
- Verify Plexus is running - Check your system tray/menu bar
- Restart Cursor - Close and reopen the IDE
- Check hook installation - Go to Plexus Settings > Agents > Cursor
- Reinstall hooks - Click "Reinstall" in the Cursor agent settings
Delayed Updates
If session updates are delayed:
- Check that both Plexus and Cursor have file system access
- Verify no firewall is blocking local socket communication
- Restart both applications
Cost Tracking Inaccurate
If costs don't match your expectations:
- Ensure you've selected the correct model in Plexus settings
- Check that Cursor is sending token counts (some models may not report)
- Verify your Cursor subscription tier in Settings
Agent Mode Not Detected
If Agent Mode sessions aren't being tracked:
- Ensure you're using Cursor 2.0 or later
- Check that Plexus hooks are up to date
- Reinstall hooks from Plexus Settings
MCP Connections Not Showing
If MCP server connections aren't visible:
- Verify MCP is properly configured in
~/.cursor/mcp.json - Restart Cursor after configuring MCP
- Check Plexus logs for connection errors
Best Practices
Optimize Token Usage
- Use Tab completion for small edits (lower token cost)
- Reserve Composer for multi-file operations
- Be specific in Chat prompts to reduce back-and-forth
Manage Multiple Projects
- Plexus automatically groups sessions by project
- Use the project filter in the dashboard sidebar
- Set up notifications for projects that need attention
Team Workflows
For teams using Cursor:
- Configure Slack/Discord notifications for agent waiting states
- Use the History feature to review past AI interactions
- Track costs by project for budget management
Next Steps
- Learn about Webhook Notifications for team alerts
- Explore Keyboard Shortcuts for faster navigation
- Check Configuration Options for advanced settings