Skip navigation
guys i finally figured out how to keep coding agents running EVEN with the laptop lid closed
0:00 / 0:30

guys i finally figured out how to keep coding agents running EVEN with the laptop lid closed

yazin

@yazinsai8.3K followers

Visit on X
58 likesDownloadOriginal post

24,667 views

guys i finally figured out how to keep coding agents running EVEN with the laptop lid closed it's called "herdr" just run ๐š–๐š˜๐šœ๐š‘ ๐š–๐šŠ๐šŒ-๐š–๐š’๐š—๐š’ -- ๐š‘๐šŽ๐š›๐š๐š› on the laptop, and... close the lid at will! ๐Ÿƒ agents continue running on my mac-mini ๐Ÿ›œ seamlessly reconnects when wifi is off/flaky โœ… even localhost links work directly on my laptop! turns the laptop to a 'thin client', with all the *actual* work done on my mac (added bonus is my mac stays up to date!)

33 Comments

Comments from the original post on X (Twitter)

  • Fabien Penso's profile picture

    @fabienpenso

    Might want to try which you can use at the same time with the same herdr

    14 likes

  • yazin's profile picture

    @yazins

    will check, thanks

  • Ahmad Abugosh's profile picture

    @aabugosh

    I just use sudo pmset -a disablesleep 1

    3 likes

  • yazin's profile picture

    @yazins

    smart! but what if u lose wifi?

    2 likes

  • Ahmad Abugosh's profile picture

    @aabugosh

    In my case I usually turn on my phone's hotspot so it can keep working when I'm out ๐Ÿ˜„

    2 likes

  • yazin's profile picture

    @yazins

    hotspot + laptop in hand churning code away; bro's turning into a moving office ๐Ÿ˜„

    1 like

  • Mohamed Habib's profile picture

    @motatoeshq

    brother we need to get you onto @opencomputerHQ so you can code from slack!

    3 likes

  • yazin's profile picture

    @yazins

    @opencomputerHQ i don't use slack :(

    2 likes

  • Mohamed Safty's profile picture

    @me_safty

    try t3code it built specifically for this reason

    2 likes

  • yazin's profile picture

    @yazins

    nice, do you use it? curious if it supports running it from my mac-mini (i don't want this on a remote server)

    2 likes

  • Mohamed Safty's profile picture

    @me_safty

    yes you can run it on any device, I am running it in on my mac mini, my old pc, and my old laptop as a server for the agents and I am switching between my phone and the laptop for the client layer for controlling them its really a great experience

    3 likes

  • Ahmed Kamal's profile picture

    @27medkamal

    I actually published the tmux version of herdr today if you happen to be a tmux user

    1 like

  • yazin's profile picture

    @yazins

    v cool! im using ghostty tho -- works great (had to make some dotfile changes, but nothing serious)

  • Ahmed Kamal's profile picture

    @27medkamal

    Yeah herdr is pretty good, hence why it was the inspiration behind taw

    1 like

  • Kosumi's profile picture

    @Kosumi1989

    Why do you need mosh at all? The session is already persistent. Try if you also want to control that Herdr session from your phone. This is the most powerful mobile SSH/Herdr client ever. No mosh needed.

    1 like

  • yazin's profile picture

    @yazins

    how does whip compare to pairfob? i was going to set that up next..

  • Kosumi's profile picture

    @Kosumi1989

    a few things that makes Whip stand out: * Intensive performance engineering. I ran performance profiling campaign on my phone regularly to localize performance bottlenecks and apply optimizations. When I go out traveling with Whip on my phone, I want it to consume as little memory and battery as possible. If you download Whip, you will be surprised at how sharp it feels. All the expensive computation and memory management happens in the Rust core. A frame takes only 17ms on average from the SSH connection to rendering on the screen with 24ms p95. * Zero setup. The only thing that you need to set up is a. SSH connection. You do not need to install anything even herdr on your Herdr server. It works out of the box. Even for the SSH connection we provide a QR scan tool to set it up painlessly. * Strong fault tolerance. In the last 3 months I travel in Thailand, Vietnam, southern China and Hong Kong with Whip. Mobile network is unstable or the SSH connection to my agent home could have a high latency. Therefore I had robust error-handling logic in Whip to ensure it is usable even when the network is unreliable. * Open source on Github: [ . We have 3 contributors so far and contributions from the community is welcome. * Reverse control: Whip is the only SSH app that I know supports this. You can let a remote agent to use your phone as a MCP. The motivation was for me to enable agents to debug the whip app remotely while I am away from my laptop. We also provide an in-app browser that the agent can use. * In-app browser: you can one click to open a localhost link on the remote host in your browser, powered by SSH tunneling * Feature-rich SFTP support: you can browse, edit and preivew remote filesystems with one-click * Rich diff viewer..... * Optional E2EE server-side push notification

    2 likes

  • yazin's profile picture

    @yazins

    you've been using it so much, clearly you've explored this space alot more... thank you for the detailed response! i'll be trying out this workflow with whip (though not likely to be using it from the beach anytime soon :)

    1 like

  • rowan's profile picture

    @rowans_planet

    TUI based so makes it tough to continue using imo That and London data signal iirc ๐Ÿ˜‚ Tried this setup with my laptop in my bag tethered to my phone dataโ€ฆ. On a lime bike ๐Ÿšฒ

    1 like

  • yazin's profile picture

    @yazins

    ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚ that's next level mobility agree re:tui's not being great, but i've been getting developer tool fatigue lately...

    1 like