Claude Code wrapper with session naming and auto-summarization A developer created a Bash wrapper for Claude Code that adds session naming, listing, and management capabilities to the AI coding tool. The wrapper, named `cc`, supports named sessions, session resumption by name or index, and includes an opt-in Gemini-based auto-summarization feature for previous sessions when listing. The tool also implements safer destructive operations by using `trash` instead of `rm` and requires explicit confirmation with session count display for clearing all sessions. | /usr/bin/env bash | | | cc - Claude Code wrapper with session naming | | | Adapted from https://gist.github.com/zinknovo/cf21268e90419e9c0e93a9bd448591a4 | | | | | | Local changes: | | | - Config dir defaults to ~/.claude-2 override via $CLAUDE CONFIG DIR | | | - Destructive ops use trash instead of rm per CLAUDE.md global rules | | | - clear requires typing "yes" + shows session count | | | - Gemini auto-summary is opt-in via CC AUTO SUMMARY=1 | | | - Removed check version depended on external check-cli-compat | | | | | | Usage: | | | cc Start a new Claude Code session | | | cc n