logoalt Hacker News

Atuin Threads: All your agent sessions on every machine

224 points • by linsomniac • yesterday at 2:10 PM • 80 comments • view on HN

Comments

nzoschke • yesterday at 3:01 PM

I started building my own version of this in Superlogical Rex.

It's a bit hard to decide where to hook in.

Rex has events, harnesses have hooks, terminal output can set program status, git has hooks.

I'm not sure I actually want every session from every machine saved. That's a lot of noise especially when half of coding sessions are experimental / throwaway.

But at the same time its not that much data that's easy to ripgrep / LLM through.

➕ show 6 replies
baalimago • yesterday at 7:59 PM

I suspect this is one of those problems "everyone" has built their own solution for. Including me!

I built slivingdoc[0] with an alternative approach: instead of syncing exact sessions (which are often quite noisy, and not so useful), the agents gets a living document with automatic merge conflict resolution backed by s3 ("infinite" storage). Idea being that the agents are prompted to summarize their context into slivingdoc as normal utf-8 files. So this way only you only need to add the stdio MCP server to all your harnesses which supports it and it just works!

Some harnesses are _super_ hyped about this concept. Codex needs no prompting at all to start communicating. I got the idea from enabling agentic forums via all the openAI hacks.

[0]: slivingdoc.dev

➕ show 1 reply
hugmynutus • yesterday at 5:49 PM

Really enjoyed Atuin for a few weeks, until I realized it doesn't have correct `EFSRO` (Error: Read-Only File System) handling. So when my `/home` mount had a raid array drive failure it broke my local shell. Issue has been sitting open for almost a year. Pretty disappointing.

➕ show 3 replies
yababa_y • today at 1:32 AM

I've been maintaining a tool that does similar: https://github.com/emberian/cv. High performance parsers of the major harness formats at several versions. Not as much autosyncing. Great results using custom prunings compared to compaction summarization.

orbis-tertius • yesterday at 2:53 PM

I love Atuin, but have some reservations about a shared server keeping all my shell history and agent sessions. Am I being too paranoid and missing out on convenience?

➕ show 6 replies
thesurlydev • yesterday at 4:55 PM

I've a love affair with Atuin but this may turn into a full blown obsession

➕ show 1 reply
jdorfman • today at 6:25 AM

It’s funny I use Atuin multiple times a day without even realizing it. Going to try this out they put out quality software.

talloaktrees • yesterday at 4:23 PM

I've built this for myself, but not across multiple machines. It scans the session logs of all coding harnesses I use, one extra thing it does is create embeddings to allow hybrid BM25/semantic search.

I think these kinds of tools are on of the few times I've spent time "using AI to work on my AI tools" that was actually a good use of time.

It's so useful to be able to say "search sessions for the time I was working on XYZ 3 months ago"

➕ show 1 reply
nklmilojevic • yesterday at 4:15 PM

posted on X a couple a days ago how atuin threads saved me from loosing the code I was working on and I accidentally removed uncommited worktree https://x.com/nklmilojevic/status/2118401844401541604

➕ show 1 reply
kristopolous • yesterday at 8:26 PM

My version is very unixy:

$ ctools resume ssh://laptop.local/code/project

Goes to laptop.local, looks for sessions done in that path, finds the most recent, copies it locally and resumes it.

There's also ls, grep, copy, cat... It looks and feels like the existing tools, that's the point.

Workflow is the thing that matters here and I'm terminal first

I'll make it more flashy soon https://github.com/day50-dev/ctools

NelsonMinar • yesterday at 10:10 PM

It's not clear which parts of Claude state are safe to sync and which you want to keep local to one machine. I'm doing something with syncthing trying to keep agent session history available and little bits of it keep breaking. I haven't looked at this new feature in atuin does it have a really good understanding of what is worth syncing?

➕ show 1 reply
ftchd • yesterday at 4:49 PM

I've gone a different route and prefer using the native harnesses (Claude, Codex), but with multiple accounts due to the limits.

In order to easily switch between accounts I've build Switcheroo, which I've been using for the past 2-3 months now. I've decided to open source it: https://github.com/FTCHD/switcheroo

Works with other AI CLIs like Gemini, and other various CLIs like Vercel (if you're managing multiple accounts like me), Netlify, Github etc

➕ show 2 replies
all2 • yesterday at 3:49 PM

Fascinating. I just finished implementing this.

https://github.com/comalice/pi-tools contains a 'memory everywhere' module that makes all sessions BM25 vectors, and surfaces a set of memory tools to enable agents to search. You can add a new machine to the mix by registering a 'spoke'. The app runs on the 'hub'. I want to containerize the core app soon.

You can also change which computer is the hub fairly easily.

tristanMatthias • today at 12:44 AM

Will this work for Claude code web sessions?? I am DYING to be able to control and sync between them locally. IE take advantage of anthropics compute to build my toolchain which, when running many sessions locally uses significant ram.

➕ show 1 reply
RyJones • yesterday at 2:35 PM

I've been using (and supporting) atuin for a while, and I find it a required bit of infrastructure. This is a nice upgrade!

timothyduong • today at 3:53 AM

Atuin is so invaluable to me, I self host an atuin server but even client only is amazing.

krisgenre • today at 5:35 AM

I think Jetbrains Air is trying to do this but not across machines.

ashenke • yesterday at 5:00 PM

I love this new AI era of coding where the HN submission is about a new way to manage agent, and almost literally all the comments are "I just finished implementing this myself" It's almost like a parody.

➕ show 1 reply
baskar12ai • yesterday at 4:26 PM

Yes i too faced the problem, lost valuable content across group of chat and not remembering in which chat it was. Tried searching but couldn't find it. Even asked ai itself does about the content whether it remembered.

➕ show 1 reply
TheIronYuppie • yesterday at 3:52 PM

I’ve been a supporter of Atuin and forever, and I really like her model here.

Excited to try it!

ghempton • yesterday at 3:05 PM

Built this for same purpose: https://github.com/codealong/codealong

More of a desktop flavor though

➕ show 1 reply
GNOMES • yesterday at 4:23 PM

Correct me if I am wrong, but I imagine this would hammer one's token usage to read past entries to resemble context across machines/terminals and models?

➕ show 1 reply
ndrake • yesterday at 5:32 PM

Would be great if you could disable sync for Threads but keep history sync going.

amelius • yesterday at 4:24 PM

Aren't session also deleted after some time? It would be nice to keep them.

➕ show 1 reply
languagehacker • yesterday at 3:24 PM

Probably a little late to this, because herdr has really eaten this segment. With their new Mac app, I don't see myself going back to atuin for this kind of experience. In fact, I get a little peeved using it on a vanilla terminal.

➕ show 3 replies
petesergeant • yesterday at 2:44 PM

I've spent the last couple of months putting a lot of time and energy into isolating my agents from each other: aggressive sandboxing, regular scanning of transcripts for agent-leaked credentials, per-agent encrypted credential stores, even physical (and network) separation of machines with different areas of work on them. Needless to say, as much as I have found atuin an excellent manager of my command-line history, I will be avoiding this.

➕ show 2 replies
tacker2000 • yesterday at 3:53 PM

So now everyone and their mother are putting out AI harnesses/session managers aka browser tabs for AI.

➕ show 2 replies
myagentbudget • yesterday at 7:39 PM

[flagged]

agline_in • yesterday at 2:50 PM

[flagged]

sick_of_slop • yesterday at 3:22 PM

[dead]

LimitExperience • yesterday at 9:58 PM

[dead]

jackfreeman • yesterday at 5:01 PM

[dead]

sehw • yesterday at 5:48 PM

How much electricity wasted?

➕ show 1 reply