Skip to content

feat: cchist watch — hook経由リアルタイム同期 #3

Description

@mikana0918

概要

Claude Code セッション終了時に自動で cchist sync を走らせる仕組み。READMEロードマップ項目。

動機

現状は cchist sync を手動実行する必要があり、複数マシン横断の最新性が保てない。

設計案

  • hook方式 (推奨): ~/.claude/settings.jsonStop / SessionEnd hook に cchist sync --only local を仕込む。cchist init-hook サブコマンドで自動設定。
  • daemon方式: fs.watch~/.claude/projects/**/*.jsonl を監視、変更検知でpush。常駐プロセス管理が必要 → コスト高。

やること

  • cchist watch または cchist install-hook コマンド設計
  • hook 書込時のidempotency(重複登録防止)
  • SSH push のレート制御(debounce)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions