Danil Sharov - ~/portfolio/cases open for projects

danil@agent:~/portfolio$ cat cases/kip.md

Several Claude Code sessions run in parallel; one finished in the background, and its row is highlighted

kip: a terminal for 10-20 Claude Code agents

Side project · open source · macOS and Windows · github.com/densharik/kip

I usually have 10-20 Claude Code sessions open: client projects, my own, a couple of experiments. In a regular terminal that is a wall of tabs: an agent that finished twenty minutes ago gets lost among them, you cannot see who is about to run out of context, and every idle claude takes up several hundred megabytes. I wrote kip for exactly these problems, and since July it has been my only terminal.

# what is inside

  • All agents on one screen. Each session is a row in the sidebar: who is working, who finished and is waiting, how full the context is (the color goes from green to red). If an agent finishes in the background, its row is highlighted and you get a notification.
  • Sleep without losing the conversation. A sleeping session uses no memory: kip ends the whole process tree, saves the screen as text, and on click brings back the same conversation. kip puts idle sessions to sleep on its own, and a running build does not count as idle.
  • Search across all history. You can find a past conversation by words from it, across all projects at once, in a fraction of a second.
  • Claude controls the terminal. A built-in MCP server: Claude in one session opens, puts to sleep and renames other sessions and reads their screens. Ask it to "put everything idle to sleep and open a new session in the project", and it will.
Sleep and wake-up: the conversation is still there
Search across all past conversations
Claude, via MCP, puts idle sessions to sleep and opens a new one
kip in six color themes
Themes and a custom accent color

# what I had to figure out

  1. 01
    How to tell that an agent has finished

    Reading the status off the screen is unreliable: Claude Code redraws it constantly. But every claude process has a small status file. kip finds the claude pid in the session's process tree, even if it was started through a wrapper, and watches that file. If you are looking at the session at that moment, nothing blinks.

  2. 02
    A context percentage that is not on disk

    Claude calculates it on the fly and does not write it anywhere. Without setup, kip estimates it from the token counter in the transcript, and gets the exact number through a statusline hook that wraps the user's own hook without breaking it.

  3. 03
    Search across all history in a fraction of a second

    Past conversations consist almost entirely of tool output. kip extracts only the messages from transcripts once, and after that rereads only the files that changed.

  4. 04
    Disappearing letters

    With windows minimized, eframe stopped redrawing the UI, and glyphs from a hidden window did not reach the GPU. I had to keep a patched copy of the framework and a check so that a dependency update does not silently overwrite it.

Inside is a real PTY and the stock claude, there is no custom API client, so new Claude Code versions work on release day, and vim and ssh behave as usual. Updates are signed with ed25519, and kip installs only those that pass signature verification. Third-party Claude Code plugins can draw their own badges and cards in kip through a JSON file.

# result

A single native Rust binary without Electron, builds for macOS and Windows, open source. I use it every day: agents no longer get lost, and sleeping sessions free up RAM.

danil@agent:~/portfolio$ ls cases/

# client work

# side projects