界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

history-portability

history-portability

【数据与研究】Import Claude Code or Codex history and move complete CCAM datasets between machines. Use when rescanning provider history, importing a copied directory, uploading JSONL or archives, exporting a backup, restoring it idempotently, or verifying that tokens, workflows, runs, rules, and pricing survived.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: history-portability description: > Import Claude Code or Codex history and move complete CCAM datasets between machines. Use when rescanning provider history, importing a copied directory, uploading JSONL or archives, exporting a backup, restoring it idempotently, or verifying that tokens, workflows, runs, rules, and pricing survived.

History Portability

Provider History

  1. Read provider-specific paths and limits: ccam import guide --provider claude|codex.
  2. Rescan the configured provider home: ccam import rescan --provider <provider>.
  3. Scan an existing directory: ccam import path /absolute/path --provider <provider>.
  4. For file or archive upload, use the app or MCP dashboard_upload_history_files.

Full Dashboard Backup

ccam export ccam-export.json
ccam import-data ccam-export.json

Restore is idempotent and non-destructive. Existing sessions are skipped as a whole. New sessions bring agents, events, token usage, and workflows. Independent run, rule, and pricing rows are inserted only when absent.

Verify session counts, representative transcripts, token totals, cost, workflow runs, alert rules, and both Claude and GPT pricing after restore.

我的收藏