kaju is a macOS terminal utility that lets developers annotate and collaborate with Claude Code without leaving the command line. The tool addresses a common friction point: reviewing or extending Claude Code's output often requires switching contexts between terminal and chat interface. kaju keeps the review workflow inside the terminal where the code already lives.
How kaju works
The basic flow starts with selecting text in Claude Code's terminal output. Claude Code copies the selection to the clipboard. Pressing the default hotkey &ctrl;&opt;K (or right-click > Comment with kaju in iTerm2) opens a small input field next to the selection. The input shows the quoted text that was captured. The user types a comment and presses Return. kaju then checks whether Claude Code is the foreground process in that terminal pane. If it is, the tool sends the quoted text followed by the user's comment straight back to Claude Code, which answers immediately.
For extended reviews—such as evaluating a plan, documenting an explainer, or iterating on a design—kaju offers a side-panel review mode. Pressing <Tab> in the comment input starts a review. Comments collect in a docked panel on the side of the terminal window, one panel per pane. Each comment appears as a card. The panel supports numbered sends to Claude Code, or users can press &command;Return to add the current comment and send the entire review as one message. Reviews save to disk on every change and restore after a restart.
The keyboard mapping in the comment input is straightforward:
- &Return: Send the comment, or add it to the review
- &Shift;Return: New line
- <Tab>: Start or cancel a review
- &Shift;	: Tag: fix · question · nit
- &command;Return: Add this comment and send the whole review
- Esc: Close and clear the comment
- &command;/ : Show all keys
- Drag: Move the input by its top line
Terminal compatibility
kaju's behavior varies depending on the terminal emulator. The table below summarizes the key differences:
| Terminal | Comment sent automatically | Input opens at selection | Hides with tab | Right-click item | Permissions |
|---|---|---|---|---|---|
| iTerm2 | Yes | Yes | Yes | Yes | Automation |
| Terminal.app | Yes | No (at mouse pointer) | Yes | No | Automation, Accessibility |
| tmux (inside iTerm2 or Terminal.app) | Yes | No (at mouse pointer) | Yes | No | Same as the terminal it runs in |
| Other terminals (Ghostty, Warp, Alacritty, kitty, WezTerm, …) | No: pasted as one line, user presses Return | No (at mouse pointer) | No (hides when app not in front) | No | Accessibility |
kitty and WezTerm can achieve full support with an adapter; contributions are welcome per the CONTRIBUTING.md guidelines. The developer notes that kaju types into a terminal only when it is certain Claude Code is the program in front. On iTerm2, Terminal.app, and tmux, kaju checks the foreground process before sending text. On other terminals, it cannot detect the running program, so it never presses Return and always pastes the message as a single line with control characters removed—no shell will execute a pasted line starting with >. The paste only occurs if the commented-on window is still in front.
Installation
kaju is distributed via Homebrew tap or git. The Homebrew commands are:
brew install aigeano/tap/kaju
brew services start kaju
Alternatively, from source:
git clone https://github.com/aigeano/kaju.git cd kaju make install # builds and installs ~/Applications/kaju.app and a login item make uninstall # removes them againThe build requires Xcode command line tools version 15.3 or later (xcode-select --install). Homebrew already requires these, so full Xcode is not needed. After upgrading kaju with brew upgrade, run brew services restart kaju to pick up the new build. Note that kaju is signed ad hoc, so macOS treats each upgrade as a new app; the first run of a new build will clear old approvals, and users will need to approve permissions again when prompted.
Configuration
kaju's configuration lives in
~/Library/Application Support/kaju/config.json, accessible from the menu-bar menu under Open config file. The default config is:{ "hotkey": "ctrl+opt+k", "tags": ["fix", "question", "nit"], "tmuxPath": null, "tmuxSocket": null, "clipboardWindowSeconds": 30 }Users can edit the file and choose Reload config to apply changes. If the hotkey is already taken by another app, the menu bar indicates the conflict. The clipboard window timeout defaults to 30 seconds—kaju reads the clipboard after a selection is made; in classic scrolling mode, users press &command;C after selecting text before invoking the hotkey.
Permissions and security
Three permission types are needed depending on the terminal:
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 additionally requires its Python API to be enabled: Settings > General > Magic > Enable Python API. kaju does not make network connections. It reads the clipboard to determine the user's selection, skips selections that password managers mark as concealed, and on non-iTerm2/Terminal.app/tmux terminals only uses clipboard changes made while a terminal was in front. Comments are stored on the Mac only while a review is open. The log at
~/Library/Logs/kaju.logrecords events but never comment text. The project is Apache License 2.0; redistributions must keep the NOTICE file crediting the author and linking to the repository.Relationship to Anthropic
kaju is an independent project and is not affiliated with Anthropic.