An open API service indexing awesome lists of open source software.

https://github.com/takymt/cc-flavors

Collect Claude Code flavor texts from tmux panes.
https://github.com/takymt/cc-flavors

claude claude-code cli golang tmux tmux-plugins

Last synced: 1 day ago
JSON representation

Collect Claude Code flavor texts from tmux panes.

Awesome Lists containing this project

README

          

# cc-flavors

![CI](https://github.com/takymt/cc-flavors/actions/workflows/ci.yml/badge.svg)
![License](https://img.shields.io/github/license/takymt/cc-flavors)

![Demo Screenshot](docs/demo.png)

> Tiny **tmux hook** that Collects "flavor texts" shown by Claude Code (e.g. `Moonwalking…`).

## Install

### Quick start

1. Install the binary

```bash
go install github.com/takymt/cc-flavors@latest
```

2. Install the tmux plugin (TPM)

Add to `.tmux.conf`:

```conf
set -g @plugin 'takymt/cc-flavors'
run '~/.tmux/plugins/tpm/tpm'
```

Reload tmux, then press `prefix + I` to install.

3. Start Claude Code

Then use Claude Code as usual.

If you wrap the `claude` command, set `@cc_flavors_cmd` in **Options** below.

### Alternative install

#### Binary via tar.gz

Download the release archive for your platform, then put `cc-flavors` on `PATH`.

#### tmux plugin (manual)

```bash
git clone https://github.com/takymt/cc-flavors.git ~/.tmux/plugins/cc-flavors
```

Add to `.tmux.conf`:

```conf
run '~/.tmux/plugins/cc-flavors/cc-flavors.tmux'
```

## Usage

See `cc-flavors --help` for the full command list and options.

### tmux Options

Set in `.tmux.conf`:

```conf
# The command name to watch in tmux panes (default: `claude`).
set -g @cc_flavors_cmd "claude"

# Scan interval in seconds (default: `1`).
set -g @cc_flavors_scan_interval "1"
```

### Examples

```bash
# Show summary
cc-flavors

# Filter by date
cc-flavors --since 2025-02-14

# Clear all counts (with confirmation)
cc-flavors clear
```

## Limitations

- `cc-flavors` watches panes running the configured command (default: `claude`) and collects any on-screen lines that match the flavor-text pattern.
- If you want a "pure" collection, avoid customizing or disabling Claude Code's flavor texts.

## Author

@takymt (a.k.a. tarte)

## License

MIT