Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By retsohuangv0.1.0MITIn 1 marketplace
Automatically copy gitignored files to new worktrees using .worktreeinclude.yaml
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically copy gitignored files (like .env, credentials, local configs) to new Claude Code worktrees.
Install via the retso-marketplace CLI:
npx retso-marketplace install worktree-bootstrap
When you create a worktree in Claude Code, this plugin:
.claude/worktrees/<name>/.worktreeinclude.yaml from your project rootWhen a worktree is removed, it cleans up via git worktree remove.
Create a .worktreeinclude.yaml file in your project root listing files to copy:
files:
- .env
- .env.local
- config/secrets.json
Glob patterns are supported:
files:
- .env.*
- config/*.key
Only files that are gitignored (via .gitignore, .git/info/exclude, or global gitignore) will be copied. Tracked files are skipped.
Use the configure skill to create or update .worktreeinclude.yaml:
# Scaffold config by scanning for ignored files
/worktree-bootstrap:configure
# Add specific files
/worktree-bootstrap:configure .env .env.local
# Or use natural language
"add .env.production to worktree bootstrap"
"set up worktree config"
Plugin hooks not fired for --worktree startup: When using claude --worktree, Claude Code creates the worktree during initialization before plugin hooks are registered. The WorktreeCreate hook from this plugin is loaded but not yet active at the time the worktree is created, so the default built-in behavior runs instead.
Mid-session worktree creation: The /worktree command and EnterWorktree tool used mid-session do not fire WorktreeCreate hooks at all. Only claude --worktree (CLI flag) and isolation: "worktree" (subagent config) trigger these hooks.
Until the plugin hook timing is resolved, add the hooks directly to your project's .claude/settings.json or .claude/settings.local.json (settings are loaded before worktree creation):
{
"hooks": {
"WorktreeCreate": [
{
"hooks": [
{
"type": "command",
"command": "bash /path/to/worktree-bootstrap/scripts/worktree-create.sh"
}
]
}
],
"WorktreeRemove": [
{
"hooks": [
{
"type": "command",
"command": "bash /path/to/worktree-bootstrap/scripts/worktree-remove.sh"
}
]
}
]
}
}
Replace /path/to/worktree-bootstrap/ with the actual path to the plugin's directory.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub retsohuang/retso-marketplace --plugin worktree-bootstrapPlugins from other owners that cover similar ground