Show HN: Auto-generated titles and colors for parallel Claude Code sessions

Contribute to jbarbier/which-claude-code development by creating an account on GitHub.
3 points by julien421 185 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

I run three to seven Claude Code sessions in parallel terminals, and I kept losing track of which was doing what, especially toward the end of the day when your mind is so tired with the constant context-switching.

which-claude-code is a small plugin that adds a title and color to each Claude Code, so you know right away which Claude Code session does what.

1. On every prompt submit, a UserPromptSubmit hook forks a background claude -p --model haiku call that reads the last few transcript turns and writes a 3-6 word title to ~/.claude/which-claude-code/titles/<session_id>.txt. The hook returns in ~10ms so the prompt isn't delayed.

2. A statusline script prints ● <title> · <model> · <cwd> (<branch>) on every render. The dot and title are tinted from a 20-color palette hashed off the session ID.

Enjoy!

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open