Show HN: Cursor Autopilot – Control your Cursor chat via Telegram and more

3 months ago 6

Cursor Autopilot Logo

Remote control your Cursor AI coding sessions via Telegram, Gmail, and Feishu.

VS Code Marketplace Version Open VSX

Cursor Autopilot demo

The Cursor Autopilot automatically captures Cursor chat summaries, pushes them to your preferred communication channels, and allows you to inject replies back into Cursor to continue or stop the coding session.

Marketplace Installation (Recommended)

To install Cursor Autopilot directly from the Extensions Marketplace:

Step Cursor
1 Open Cursor.
2 Search for Cursor Autopilot in the Extensions Marketplace (Ctrl/CMD-Shift-X).
3 Click Install.
4 Open any project folder in Cursor.
5 Cursor Autopilot will automatically check and create the required files: .autopilot.json and .cursor/rules/after_each_chat.mdc.
6 Configure your preferred adapter (Telegram, Email, or Feishu) in the .autopilot.json file.

Note

As a Cursor user, if you try to install from the Visual Studio Marketplace website banner you might find yourself in a state where VSCode has SpecStory installed but Cursor doesn't.

Alternatively, if you cannot find in Extension Marketplace, you can manually install the extension:

  1. Clone the repository and install dependencies:
    git clone https://github.com/heyzgj/cursor-autopilot cd cursor-autopilot npm install
  2. Compile and package:
    npm run compile npx vsce package
  3. Move to project and install extension:
    code --install-extension cursor-autopilot.vsix
  4. Restart Cursor to activate the extension. The .autopilot.json file will be created automatically.

The extension automatically checks and creates the required files whenever you open a workspace:

  1. .autopilot.json - Configuration file with adapter settings
  2. .cursor/rules/after_each_chat.mdc - Cursor rule for capturing chat summaries

If files are missing or have incorrect content, they will be automatically created/updated.

Example .autopilot.json structure:

{ "enabled": true, "adapters": ["telegram"], "telegram": { "token": "YOUR_BOT_TOKEN_HERE", "chatId": "YOUR_CHAT_ID_HERE" }, "email": { "host": "smtp.gmail.com", "port": 587, "secure": false, "user": "[email protected]", "pass": "your-app-password", "to": "[email protected]" }, "feishu": { "appId": "cli_xxxxxxxxxxxxxxxxx", "appSecret": "your_app_secret_here", "useWebhook": false } }

Simply replace the placeholder values with your actual configuration. The extension will show a warning message if configuration is needed.

Cursor Rule Configuration

The extension automatically manages the Cursor rule file at .cursor/rules/after_each_chat.mdc. This file is checked and updated every time you open a workspace to ensure it has the correct content.

Ensure that alwaysApply: true is set to guarantee the rule is always active.

  1. Start Chat: Initiate an AI chat session in Cursor.
  2. Receive Notification: Get a summary of the AI's progress on your configured external channel.
  3. Reply with Instructions:
    • 1 = Continue AI work.
    • Any other text = Send custom instructions directly to the AI.
  4. AI Continues: The AI in Cursor will respond based on your input.

For practical usage examples and advanced workflows, see the SETUP_GUIDE.

You can test the extension's injection functionality:

  • Quick Test: Open Command Palette (Cmd+Shift+P) and execute Inject text into Cursor Chat, then type your message.

For comprehensive details on setup, usage, development, and troubleshooting, please refer to the SETUP_GUIDE.

If you encounter any bugs or have feature requests, please open an issue on our GitHub repository.

We welcome contributions! Please open a GitHub issue to discuss your ideas or proposed changes with the core team before submitting pull requests.

This project is licensed under the MIT License. See the LICENSE file for full details.

  • Built specifically for the Cursor AI editor.
  • Inspired by the need for enhanced remote coding collaboration.

⭐ Star this repo if you find it useful!

Read Entire Article