Skip to content
プロジェクト

概要

kaju: annotate, comment and collaborate with Claude Code

開発ツール

この数値の測り方

計測したスター増加

24時間
0
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

kaju icon: a content ginger cat with a speech bubble

kaju

Annotate, comment and collaborate with Claude Code.

kaju in action: three comments on Claude Code's plan, collected in a review and sent back together

Select some of Claude Code's output in your terminal, press a hotkey, type a comment. kaju sends the quoted text and your comment straight back to Claude Code, which answers right away. For longer reviews of a plan, a document or an explainer, collect comments in a side panel and send them all at once.

kaju is named after a ginger cat who appears to run on a single brain cell but is exceptionally good at one thing: eating. kaju the tool is similar. It does not do much, but it is very good at one thing: comments.

How it works

  1. Select text in Claude Code's output. Claude Code copies your selection to the clipboard.

  2. Press ⌃⌥K (or, in iTerm2, right-click › Comment with kaju).

  3. A small input opens next to the selection, showing the quote it captured. Type your comment. The comment input next to a selection, showing the captured quote

  4. Press ⏎. kaju checks that Claude Code is running in that pane, then delivers:

    > the text you selected
    
    your comment
    

Reviews

Press ⇥ in the input to start a review. Comments then collect in a panel docked on the side of the terminal window, one panel per pane. Send them all as one numbered message with Send N to Claude Code in the panel, or with ⌘⏎ in the input. Reviews are saved to disk on every change and come back after a restart.

A review in progress: two comments in the side panel, one tagged as a question, and a third being written

Keys

Key In the comment input
⏎ Send the comment, or add it to the review
⇧⏎ New line
⇥ Start or cancel a review
⇧⇥ Tag: fix · question · nit
⌘⏎ Add this comment and send the whole review
Esc Close and clear the comment
⌘/ Show all keys
Drag Move the input by its top line

In the review panel: click a card to show it in full, ✎ or double-click to edit, × to remove, drag the header to move the panel, Discard needs two clicks.

The input stays open until you finish or clear it. Clicking back into the terminal leaves it in place. It shows only on its own tab (where the terminal allows it) and hides while another app is in front.

Terminal support

Your shell does not matter. Your terminal does, because terminals differ in what they let other apps see and do.

Terminal Comment sent automatically Input opens at the selection Hides with its tab Right-click item Permissions
iTerm2 Yes Yes Yes Yes Automation
Terminal.app Yes No (at the mouse pointer) Yes No Automation, Accessibility
tmux, inside iTerm2 or Terminal.app (untested) Yes No (at the mouse pointer) Yes No Same as the terminal it runs in
Any other terminal (Ghostty, Warp, Alacritty, kitty, WezTerm, ...) No: pasted as one line, you press Return No (at the mouse pointer) No (hides when the app is not in front) No Accessibility

kitty and WezTerm can get full support with an adapter. Contributions are welcome: see CONTRIBUTING.md.

Safety

kaju types into a terminal only when it is sure Claude Code is the program in front. A message pasted into a shell instead could run as commands, because the quoted lines start with >.

  • iTerm2, Terminal.app and tmux: before sending, kaju checks the foreground process of the pane's terminal. If it is not Claude Code, nothing is typed: your comment goes to the clipboard, or your review stays open.
  • Other terminals: kaju cannot see which program runs there, so it never presses Return and always pastes the message as a single line with all control characters removed, which no shell will run. It pastes only if the window you commented on is still in front.

Install

Homebrew

brew install aigeano/tap/kaju
brew services start kaju

kaju is compiled on your Mac during install, so you need the Xcode command line tools 15.3 or later (xcode-select --install), which Homebrew already requires. Full Xcode is not needed.

After brew upgrade kaju, run brew services restart kaju.

From source

git clone https://github.com/aigeano/kaju.git
cd kaju
make install      # builds, installs ~/Applications/kaju.app and a login item
make uninstall    # removes them again

Permissions

Permission Needed for When macOS asks
Automation › iTerm2 Finding and typing into iTerm2 sessions First comment in iTerm2
Automation › Terminal Finding Terminal.app tabs First comment in Terminal.app
Accessibility Typing into Terminal.app and other terminals First comment there

iTerm2 also needs its Python API: iTerm2 › Settings › General › Magic › Enable Python API.

kaju is built on your Mac and signed ad hoc, so macOS treats every upgrade as a new app. kaju clears its old approvals the first time a new build starts, so after an upgrade, approve them again when asked. If a permission looks enabled in System Settings but kaju cannot use it, choose Reset permissions in kaju's menu-bar menu.

Claude Code display modes

kaju reads your selection from the clipboard, where Claude Code's full-screen mode puts it automatically when you select text. In the classic scrolling mode, press ⌘C after selecting, then the hotkey.

Configuration

kaju's menu-bar menu has Open config file, which opens ~/Library/Application Support/kaju/config.json:

{
  "hotkey": "ctrl+opt+k",
  "tags": ["fix", "question", "nit"],
  "tmuxPath": null,
  "tmuxSocket": null,
  "clipboardWindowSeconds": 30
}

Choose Reload config after editing. If the hotkey is taken by another app, the menu says so.

Privacy

kaju makes no network connections. It reads the clipboard to see your selection, never quotes items that password managers mark as concealed, and, in terminals other than iTerm2, Terminal.app and tmux, only uses clipboard changes made while a terminal was in front. Comments are stored on your Mac only while a review is open. The log at ~/Library/Logs/kaju.log records events, never comment text.

Licence

Apache License 2.0. If you redistribute or build on kaju, keep the NOTICE file, which credits the author and links to this repository.

The iTerm2 helper uses the iterm2 Python package (GPL-2.0-or-later), which is installed separately on your machine and not distributed with kaju.

kaju is an independent project and is not affiliated with Anthropic.

関連プロジェクトを探す

読み込み中…