Skip to content

CLI Reference

Here are the commands you can use with recast.

list

Discover available chat histories for a specific agent.

bash
recast list <agent>

Agents: antigravity, claudecode, opencode

migrate

Extract a chat from the source agent and inject it into the target agent's format.

bash
recast migrate --from <agent> --to <agent> --source <path> --target <path>

Flags:

  • --from — Source agent name
  • --to — Target agent name
  • --source — Path to source chat (file path or session ID)
  • --target — Path to write the converted output

port-config

Translate project configuration files between agent conventions.

bash
recast port-config --from <agent> --to <agent> --dir <path>

Supported mappings:

FromToFiles
claudecodeantigravityCLAUDE.mdGEMINI.md, .claudeignore.geminiignore
cursorantigravity.cursorrulesGEMINI.md, .cursorignore.geminiignore
opencodeantigravityOPENCODE.mdGEMINI.md, .opencodeignore.geminiignore