cctop 0.34.0

An htop-like terminal monitor for AI coding agent sessions on Linux (Claude Code, Codex, Cursor, Devin, Gemini CLI, OpenCode, Pi, Windsurf)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Agents only: a commit made inside a Claude Code session carries the
# co-author line, so nobody has to remember it on every commit. A person's own
# commit — no CLAUDECODE in the environment — is left exactly as written.
#
# Enabled per clone with `git config core.hooksPath tools/git-hooks`.
[[ "${CLAUDECODE:-}" == 1 ]] || exit 0
msg="$1"
source="${2:-}"
# A merge or squash message is git's own, and an amend keeps what it had.
case "$source" in merge|squash|commit) exit 0 ;; esac
trailer="Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>"
grep -qiF "Co-Authored-By: Claude" "$msg" && exit 0
git interpret-trailers --in-place --trailer "$trailer" "$msg"