{"id":34917231,"url":"https://github.com/evokateur/claude-context","last_synced_at":"2026-04-29T05:37:45.117Z","repository":{"id":329022286,"uuid":"1116020764","full_name":"evokateur/claude-context","owner":"evokateur","description":"Shell scripts for Claude Code project context sync \u0026 backup","archived":false,"fork":false,"pushed_at":"2026-04-26T07:00:28.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T05:37:01.624Z","etag":null,"topics":["claude-code","experimental","rsync","rsync-wrapper","shell-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evokateur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-14T03:03:40.000Z","updated_at":"2026-04-26T07:00:33.000Z","dependencies_parsed_at":"2026-04-26T09:02:56.017Z","dependency_job_id":null,"html_url":"https://github.com/evokateur/claude-context","commit_stats":null,"previous_names":["evokateur/claude-context"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evokateur/claude-context","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokateur%2Fclaude-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokateur%2Fclaude-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokateur%2Fclaude-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokateur%2Fclaude-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evokateur","download_url":"https://codeload.github.com/evokateur/claude-context/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokateur%2Fclaude-context/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32412890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T05:20:56.964Z","status":"ssl_error","status_checked_at":"2026-04-29T05:19:54.749Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","experimental","rsync","rsync-wrapper","shell-scripts"],"created_at":"2025-12-26T12:45:49.549Z","updated_at":"2026-04-29T05:37:45.112Z","avatar_url":"https://github.com/evokateur.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code project context sync and backup\n\nShell functions for syncing Claude Code project context across machines, with local backups.\n\n## Syncing contexts between machines\n\n`cc-sync` rsyncs a context directory in `~/.claude/projects` from a remote machine to the local machine. It derives context directory names from the current working directory, accounting for OS home directory path differences.\n\nFor example, `~/code/catbutt` will have context at\n- `~/.claude/projects/-home-wesley-code-catbutt` on Linux and\n- `~/.claude/projects/-Users-wesley-code-catbutt` on macOS.\n\nIf the relative path is the same on both machines, only the host is needed:\n\n```sh\n~/code/catbutt$ cc-sync xicamatl\n```\n\nA remote path is necessary when the relative directory differs:\n\n```sh\n~/code/catbutt$ cc-sync xicamatl:projects/catbutt\n```\n\nTo retrieve the context of a renamed project:\n\n```sh\n~/code/cul-de-chat$ cc-sync localhost:code/catbutt\n```\n\nBy default (`rsync` and therefore) `cc-sync` is additive, consolidating context across machines. Use `--delete` to make local match remote exactly.\n\nA backup of the local context directory is created before syncing, except with `--dry-run`.\n\n## Functions\n\n- `cc-sync [rsync-options] \u003chost[:path]\u003e`\n  - Wraps `rsync -av` with passthrough of recognized rsync options:\n    - `--dry-run`, `-n`: preview what would be transferred\n    - `--delete`: remove local context not present on remote\n    - `-z`, `--compress`: compress data during transfer\n  - Context directories determined with tilde expansions of CWD relative to  `~/`\n  - Assumes same relative path on remote unless `:path` is specified.\n\n- `cc-backup`\n  - Creates a context backup for current working directory\n  - Stored in `~/.claude/backups/projects/` as `{context-dir}_{timestamp}.tar.gz`\n\n- `cc-restore`\n  - Restores the most recent backup for current working directory\n\n- `cc-pop`\n  - Restores the most recent backup for current working directory\n  - Deletes the backup file after restoration\n\n## Requirements\n\n- Claude Code (`~/.claude/projects/` directory must exist)\n- Read/write access to `~/.claude/projects/` and `~/.claude/backups/projects/`\n\n### For `cc-sync`\n\n- Passwordless SSH access to remote machine\n- `rsync` installed on both machines\n\n## Setup\n\n- Source `claude-context.sh` path in `.zshrc` or `.bashrc` etc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevokateur%2Fclaude-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevokateur%2Fclaude-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevokateur%2Fclaude-context/lists"}