Feature request for product/service
Cursor IDE
Describe the request
Summary
I built and validated a local migration workflow that imports Claude Code sessions into Cursor Composer history while preserving the original transcript as a handoff artifact, injecting a continuation prompt, backing up Cursor state, and verifying the imported Composer index and bubble schema after migration.
I would like Cursor to support this as a first-class native import flow or official importer API.
Problem
Developers increasingly move active work between Claude Code, Codex, Cursor, and other coding agents. Today, most tools focus on importing rules, skills, plugins, or settings. The missing piece is active agent history:
- original transcript
- project path
- task state
- decisions already made
- files touched
- risks and TODOs
- next safe action
Without this, switching agents causes context loss. The user has to reconstruct work manually, or a third-party tool has to patch Cursor’s private local database, which is not a safe integration surface.
Current prototype
The local prototype scans Claude Code JSONL sessions, copies each full transcript into a handoff directory, creates a continuation prompt, imports or reuses Cursor Composer sessions, injects a handoff message, backs up Cursor state, and verifies every imported session.
The important design idea is:
Even when the visible Composer history is truncated, Cursor should retain a pointer to the complete source transcript so the next agent can reconstruct the real state before editing anything.
Local validation
On my machine, the current prototype migrated all top-level Claude Code sessions under ~/.claude/projects:
- source sessions found: 49
- sessions verified in Cursor: 49
- skipped sessions: 0
- Cursor DB missing entries: 0
Each imported session was verified for:
- Cursor
composerData - Cursor sidebar/index entry
- Composer/bubble schema compatibility
- injected handoff prompt
- preserved full source transcript
Requested Cursor-native version
Please consider adding:
Settings → Import Agent Setup → Import Agent History
Suggested flow:
- Choose source agent.
- Select projects and sessions.
- Preview what will be imported.
- Import with automatic backup.
- Preserve source transcripts.
- Verify imported Cursor Composer entries.
- Show success/failure results.
- Provide rollback.
Suggested import sources:
- Claude Code
- Codex
- Cursor backup / another machine
- Generic JSONL transcript format
Suggested importer API surface:
- create or update Composer session
- append user/assistant/tool bubbles
- preserve source metadata
- attach handoff transcript references
- register imported session in Cursor’s GUI index
- return verification status
- expose dry-run / preview
- expose rollback or transaction boundary
Why this matters
Cursor can become the best hub for multi-agent development if users can move live work into Cursor without losing context.
This is not only a convenience feature. It changes whether users trust Cursor with long-running agent work. If importing live context is safe and verified, Cursor becomes the natural place to continue work started in Claude Code, Codex, or another agent.
Ask
Would the Cursor team be open to either:
- adding a native Agent History Import flow, or
- exposing an official importer API that third-party tools can use safely?
I can share the prototype, local validation outputs, and real migration cases if the team wants to review the design.
Operating System (if it applies)
MacOS