Skip to content

Instantly share code, notes, and snippets.

View DesiredPathConsulting's full-sized avatar

DesiredPathConsulting

  • Joined Mar 25, 2026
View GitHub Profile
@DesiredPathConsulting
DesiredPathConsulting / _slug.sh
Last active April 19, 2026 18:36
Claude Code worktree continuity (memory + /resume transcript copy across git worktrees) — see anthropics/claude-code#34437
#!/usr/bin/env bash
# Shared helpers for Claude Code worktree tooling.
# Source this: `source "$(dirname "$0")/_slug.sh"` (or via an absolute path).
#
# Exposes:
# slugify <abs-path> -> Claude Code project dir slug
# to_settings_path <abs-path> -> path written into .claude/settings.local.json
#
# Slug rule (reverse-engineered from Claude Code behavior on Windows 11,
# v2.1.112; the rule is not documented by Anthropic, see