r/PinoyProgrammer • • 2d ago

Show Case I built kAIusap so my AI coding sessions could talk to each other (open source)

Post image

If you run several Claude Code, Codex or OpenCode sessions at once, you've probably been the copy-paste middleman between them. I got tired of that, so I built kAIusap - yes, a play on kausap.

You give each session a handle (backend-eng, qa-tester, etc.), and they can send each other messages. A message wakes an idle session. If a session can't be woken, the message waits in its inbox. Unlike subagents, each session stays its own, in its own terminal and in view. You see what they say to each other and can step in anytime.

  • Works with Claude Code (terminal or desktop app), Codex, and OpenCode 1.x (OpenCode 2 is experimental), and sessions from different providers (harnesses) can talk to each other
  • macOS (tested); Linux should work but is less tested. Not yet supported on Windows.
  • One machine only: connects sessions on the same computer
  • Needs Python 3.12+, uv, and Rust
  • ./install.sh --plan shows every change before anything is installed
  • Apache-2.0, free

There's also kAIusap map, a read-only browser view of your sessions: who's running, who's talking to whom, who owes a reply. macOS for now.

Repo: https://github.com/mkiiim/kaiusap

Map: https://github.com/mkiiim/kaiusap-map

Feedback welcome. If you already juggle multiple sessions, how do you keep them coordinated today?

49 Upvotes

21 comments sorted by

•

u/PinoyProgrammer-ModTeam 2d ago

Hello there! Before you make a post, please take a moment to familiarize yourself with the rules. We regret to inform you that your post has been removed for the following reason(s):

Laptop discussions should be posted in Random Discussions

Please note that the rule number(s) listed above may not directly reflect the reason your post was removed.

Please do not create a new post with the same (slightly altered) content, as it will be automatically removed by this bot again. If you believe that the bot made an error, please reach out to us using the modmail.

Note: This action was performed automatically.

11

u/Background-Carpet782 1d ago

Aside from the nice UI, isn't this feature(sessions being able to talk to each other), already native to Claude Code and Codex? T3 Code even allows communications between harnesses.

This is not a dig on your app - I think it is pretty cool. Just wondering if I am missing anything.

3

u/Mk_iiim 1d ago edited 1d ago

If it is an existing capability I appreciate the heads up!

This is why I’m curious to hear about how others work with their sessions and managing them. Peers and colleagues are constantly modifying tooling as we’re trying to get work done.

And with the fast moving releases across the two leading foundational providers, it is hard to stay up to date while maintaining our day jobs.

I was aware Claude and codex sessions could send and receive between their own, as that’s what this leverages but was unaware of cross provider. Will look into it. Thanks!

1

u/MiggyDee 1d ago

Nice work!

About the session wake-up trigger: I checked the docs and the trigger looks like a doorbell (a message wakes the idle session) and not a scheduled check per harness. How does it actually wake the session from the other harness, via hooks or tmux? And can something outside a session, like a webhook or a script, drop a message into a session's inbox using the CLI?

I have something similar where everything goes through my Notion's workspaces. I'm on Notion's paid Business plan, so aside sa automation nandoon narin ung entire context (handovers, databases, project descriptions, logs from the other agents, skills, bug reports, user questions and comments, etc...). Claude Code can already do the doorbell part natively BUT within Claude Code only. You can tell a session to always send its output to an orchestrator session via Project memory. Then the orchestrator decides whether to forward it to another Claude session dedicated to the task or create a Kanban card (Notion) for me or other users to review.

Just brainstorming: if yours can handle the doorbell part lang for a different harness(CCode to Antigravity or Hermes), tapos Notion stays as the source of truth, I could drop the Notion Kanban automation and move to a cheaper plan, then move Kanban system to Hermes Agents; what's better is yours will allow for cross-harness communication kaya magagamit ko na si Neon Antigravity without the pesky copy-pastes or scheduled tasks to read Notion for instructions.

I'm not currently looking forward to using T3 Code due to the telemetry issue, so I'm more inclined to trying this out. Also, any plans for Windows support? Some of our workstations are on Windows.

Cheers bro

1

u/Mk_iiim 23h ago

thanks! on the issue of wake-up: kaiusap has an adapter per harness and each one hands the message to the session through that harness's own provider specific implementation channel (Claude Code's session socket, Codex's app-server, an OpenCode plugin). hooks are used for start-up and context; tmux only names panes.

a different approach from tools like herdr, which deliver by typing into the agent's terminal, much as a user would. kaiusap hands the message to the harness instead, which is why it needs an adapter per harness.

a script or webhook can't drop a message in yet. sending needs a handle, and a handle belongs to a session. an outside sender is a fair feature request, and your Notion setup is a good case for it. it's open, so if you wanna run ahead, feel free!

supported today: Claude Code, Codex, and OpenCode (Google models run through OpenCode). antigravity as a third was less appealing as i knew google could be served through opencode and opencode also opened the door to finally bringing in some of our locally hosted open weights models. Hermes, not yet looked into.

re Windows - it'll take a little longer: mechanics of delivery uses *nix sockets and the store uses *nix file locks. think this'll need special attention for windows.

1

u/Background-Carpet782 1d ago

Theo posted that they are just getting general usage statistics and not your prompts. It can also be disabled.

5

u/Loose-Average-5257 1d ago

Yes, this is not new in any sense. T3 user myself. I applaud OP for this though, because I really think what we should do with AI are things we enjoy to do and we would maintain for ourselves. So kudos to you, OP!

1

u/chubaloom 1d ago

Was about to say this as well, using herdr this can be achieved easily, i just created a mod where i can specify what agents/roles will work alongside the main orchestrator, and herdr opens all the necessary panes automatically, i just talk to the main orchestrator chat

1

u/Mk_iiim 1d ago

yes, really cool that it presents it in a single visual plane like t3! kaiusap keeps you using the native provider harnesses (clis and, in the case of claude, the desktop app as well); with the map as a way to visualize relationships and convos, group, and bring the indivudal sessions' windows to surface. (or a command line to bring a detached background tmux session to a terminal surface)

17

u/s3thcience 1d ago

i have my own - starcraft theme lol - i have multiple clients and have their own assigned agent with different set of tools, skills, access, rules etc.

2

u/Mk_iiim 1d ago

nice polish! i mostly stick to boring names. lol.

would love to understand your "way of working". are you full permissionless that you can be hands-off and be mostly communicating with a primary session? I like to keep my span-of-control to exactly however many projects/clients i am working with but find some requests do require my intervention with sessions deeper in the tree/graph.

1

u/Throwaway-_-Anxiety 1d ago

Hey finally something with some style! Is this your own work and is it available somewhere? So cool. What did you use for the UI, stack?

1

u/Personal_Hunt3867 1d ago

That's very nice bro! i like the idea of sessions being able to communicate with other and that's very useful for someone that is using a lot of agent!

1

u/Mk_iiim 1d ago

Thanks!

I also wanted a way to easily raise the harness (whether CLI or in the case of Claude, the desktop app) that I was using to talk to the session so the map serves as a way to do that as well.

If you give it a try let me know would love to hear what works/what doesn’t or other ways you work with multi sessions.

1

u/amalgamaticOrchestra 1d ago

So para syang desktop commander? Kay yan problema ko now. Naubos na yung 10k na free toolcalls ko. 😆

0

u/Mk_iiim 1d ago

It def allows you to assign a session(s) to lead and orchestrate others.

I typically use a mix of Claude, OpenAI, and Gemini (using opencode harness) to take on different tasks. And maximize token usage and efficiency. So I may have multiple sessions with those three different model providers all working on multiple tasks and projects.

I keep them running in the background and accessible remotely with tmux.

1

u/Murky_University2819 1d ago

love the node visuals!

Do you know herdr? we can do the similar feature of cross-session communication with multi-agent orchestrations and “spaces” to create different setups in different projects. This might give you some ideas on what to add/improve but this is cool :)

1

u/Mk_iiim 1d ago

appreciate the reference to herdr.

the "islands" in which the session nodes are grouped, represent the shared local repo (directory) in which those sessions are working in.

yes i had seen herdr before but have been reticent to introduce a different harness on top of what providers already ship. the map links back to the provider harness running in a terminal or ghostty, pane-d; as well as tmux'd, also pane-d. a right click on a node (should!) will bring up that particular window. including the claude desktop app. (there are other hints in the right pane that will give you the tmux command line to launch and surface sessions that are working in the background and have no current terminal surface)

t3code is cool for allowing you to switch the underlying model underneath mid-session as it maintains a separate t3-session-id to provider-session-id mapping and does some heavy-lifting around moving context between provider sessions in the background.

alot of really good fast-moving tooling; but in slightly different directions.

what i wanted to do here is be able to track a long-lived session with a provider using a "handle" for the session "persona". you get to say "you are Fred" with a claude session who's working on say, the design language for a brand, and later say "make sure Wilma implements the latest assets with this evening's release"; Wilma being the openai agent session working on front-end. You don't have to tell Wilma because Fred will inform her; and if she has a need, can ask Fred directly. The intent is that they continue the comms and work between them to achieve the requested outcome.

This gets to the "ways of working" that i notice differs with colleagues, and which is why this may not work if you're ok with squashing context and tasks with one session and are not too concerned with the feeling of talking to a session that's managing the same stack of tasks differently than you are (read: i am!) cognitively struggling with.

the challenging part is what accounting individual provider harnesses do with their session-id's particularly with commands like /branching, /fork, etc. For long-lived conversations, do you (as user) want that "persona" to follow the new session or stay with the original. semantically getting it all to line up between the providers is still a wip.

1

u/Grace_15_Sufficient 1d ago

I'll try this over the weekend. This is great!

1

u/theazy_cs 1d ago

i just use my personally forked version of firstmate + herdr. the idea is the same but without the UI bit.

-5

u/Abradolf_Lincolner 1d ago

Bro reinvented the wheel and expects an applause. Sayang reddit saturating my feed with these rehashed, unoriginal projects. Honestly, what a waste of time and tokens