Git Bundles
When Claude makes file changes in the Chucky cloud sandbox, those changes are packaged as git bundles. The CLI provides a git-like workflow to fetch, review, and apply these changes to your local repository.Overview
The bundle workflow mirrors familiar git operations:| Command | Description | Git Equivalent |
|---|---|---|
chucky fetch | Download changes to a local branch | git fetch |
chucky diff | View pending changes | git diff |
chucky log | View commit history | git log |
chucky apply | Apply changes to working directory | git merge |
chucky discard | Remove fetched branch | git branch -D |
chucky pull | Fetch + apply in one step | git pull |
Fetch Changes
Download changes from a session or job to a local branch:Options
| Option | Description |
|---|---|
--json | Output JSON result |
--quiet | Minimal output |
Example
chucky/session-<id> or chucky/job-<id>.
View Changes
Diff
See what files were changed:Log
View commit messages from the session:Apply Changes
Apply the fetched changes to your working directory:Options
| Option | Description |
|---|---|
--force | Force merge even if branches diverged |
--json | Output JSON result |
--quiet | Minimal output |
Merge Behavior
Theapply command:
- First attempts a fast-forward merge
- If branches have diverged, automatically falls back to a merge commit
- If there are conflicts, reports them for manual resolution
Discard Changes
Remove the fetched branch without applying:Pull (Fetch + Apply)
Combine fetch and apply in one command:Options
| Option | Description |
|---|---|
--force | Force merge during apply |
--json | Output JSON result |
--quiet | Minimal output |
Auto-Apply with Prompts
Use the--apply flag with chucky prompt to automatically apply changes when the session completes:
- Runs the prompt
- Waits for completion
- Fetches the bundle
- Applies changes to your working directory
Working with IDs
Both session IDs and job IDs work with all bundle commands:Branch Naming
Fetched bundles create branches with predictable names:- Sessions:
chucky/session-<full-session-id> - Jobs:
chucky/job-<job-id>
Common Workflows
Review Before Apply
Quick Apply
Automated Pipeline
Error Handling
| Error | Cause | Solution |
|---|---|---|
Branch already exists | Already fetched | Use apply or discard first |
Branch not found | Haven’t fetched yet | Run fetch first |
No bundle available | Session made no changes | Nothing to apply |
Merge conflict | Local changes conflict | Resolve conflicts manually |