Skip to main content

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:

Fetch Changes

Download changes from a session or job to a local branch:

Options

Example

This creates a local branch named 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

Merge Behavior

The apply command:
  1. First attempts a fast-forward merge
  2. If branches have diverged, automatically falls back to a merge commit
  3. If there are conflicts, reports them for manual resolution

Discard Changes

Remove the fetched branch without applying:
This is idempotent - it won’t error if the branch doesn’t exist.

Pull (Fetch + Apply)

Combine fetch and apply in one command:

Options

Auto-Apply with Prompts

Use the --apply flag with chucky prompt to automatically apply changes when the session completes:
This:
  1. Runs the prompt
  2. Waits for completion
  3. Fetches the bundle
  4. Applies changes to your working directory
Similarly for jobs:

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>
You can work with these branches directly using git commands if needed:

Common Workflows

Review Before Apply

Quick Apply

Automated Pipeline

Error Handling

Next Steps

Prompt Command

Run interactive prompts with —apply

Jobs

Create background jobs