https://github.com/felipeinf/cursor-for-claude
Execute plans and delegate tasks to Cursor in the background from Claude Code
https://github.com/felipeinf/cursor-for-claude
agents claude claude-code claude-code-plugin cursor cursor-agent
Last synced: 1 day ago
JSON representation
Execute plans and delegate tasks to Cursor in the background from Claude Code
- Host: GitHub
- URL: https://github.com/felipeinf/cursor-for-claude
- Owner: felipeinf
- License: mit
- Created: 2026-04-26T08:37:15.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-04T04:11:52.000Z (about 2 months ago)
- Last Synced: 2026-05-04T05:29:28.881Z (about 2 months ago)
- Topics: agents, claude, claude-code, claude-code-plugin, cursor, cursor-agent
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cursor-plugin-cc
A Claude Code plugin that delegates coding tasks to your local `cursor-agent` and tracks background jobs per repository.
## Requirements
- Claude Code (with plugin support)
- Node.js on `PATH`
- `cursor-agent` installed and authenticated (`CURSOR_API_KEY` or `cursor-agent` interactive login)
## Install
Add this folder as a local marketplace in Claude Code, enable the `cursor` plugin, then run:
```text
/cursor:setup
```
`/cursor:setup` checks the CLI and auth, and can install `cursor-agent` for you if missing.
## Commands
| Command | What it does |
| ----------------------- | ----------------------------------------------- |
| `/cursor:agent ` | Delegate a task to Cursor (default: background, write-capable) |
| `/cursor:sessions [id]` | List jobs for this repo, or show one |
| `/cursor:done [id]` | Show the stored final output for a finished job |
| `/cursor:stop [id]` | Cancel an active background job |
| `/cursor:setup` | Check install + auth |
## Examples
```text
/cursor:agent fix the failing parser tests
/cursor:agent --wait quick rename in this file
/cursor:agent --read-only investigate why checkout is slow
/cursor:agent --continue apply the next fix
/cursor:agent --mode plan map the auth refactor
```
Default flow (background):
```text
/cursor:agent
/cursor:sessions
/cursor:done
```
Use `--wait` when you want the result inline.
## How it works
The plugin spawns `cursor-agent -p "" --output-format stream-json --workspace ` and parses the JSON stream. Job state lives under `CLAUDE_PLUGIN_DATA` (or a temp `cursor-companion` directory as fallback).
## License
MIT.