# claude yyamashita ユーザーの Claude Code セッション(systemd user service)を管理する。 | ファイル | 内容 | |---|---| | `sessions.txt` | `user:repo` 形式でセッションを定義 | | `systemd/claude-code@.service` | サービステンプレート | | `sync.sh` | root が実行し、sessions.txt に基づいて user service を同期 | ```bash # 変更を反映する git push origin master ssh root@localhost 'bash /app/infra/claude/sync.sh' # 状態確認 systemctl --user status 'claude-code@*.service' tmux ls ```