I wish we had that access at work. For personal use I run claude-code remote sessions on my home server in docker containers. I then do everything from my phone
Im with ya, I’m at the point where I use my phone for everything. I have a computer, but if you see me at that, I rolled up my sleeves to work or it’s optics when in the office.
(edit: there's a powered vs. unpowered with the lid closed, whether a display is connected, etc. it's not like windows where there's one pulldown to set sleep to never. it's also hard to tell if the macbook is actually sleeping on not because the Air's are fanless and they generally turn on so fast when you open the lid you can't really tell if it was sleeping or just "display off")
I've been managing Windows laptops & power settings for 20+ years, and I used to trust the lid/hinge sensors, then the windows 11 forced updates started tripping up my personal machine.. for work. I set it to sleep & hibernate & don't give a damn. But personal, I used to leave games or 3d printing running.. and have had a few things get messed up..
Maybe try turning on Power Saving Mode and turning your screen brightness all the way down. I've been using this app for over five years without any problems. NFA, tho.
This is only useful if you keep it open and plugged in though - caffeinate can only prevent sleep while plugged into power. If you want it to stay active while you close the laptop and walk around with it it’s best to use something like amphetamine.
Na just change the pm set to disable sleep completely. No keyboard, mouse or display required. Just dont toss it in a backpack or enclosed space or it will overheat.....
then you turn a /r/malicious_compliance and create a Service Now ticket for every single patch update there is for every single piece of tooling you have because the updates require administrative access and the director of infrastructure has decreed that a member of their team has to baby sit every single system-wide change on my work laptop while inexplicably I have full control over what to install and uninstall or whatever I want on the production server. that hosts actual customer data. However, the director has also decreed that team members must make every effort to keep their machines up to date.
Lmao I just had in interaction with the IT manager like this the other day. He stopped me from talking to one of the techs when all I needed was for them to reinstall an app. The conversation basically ended with him saying they’ll get to my ticket when they get to it (8 months from now) and me responding that I’ll just tell my boss I’m unable to do that part of my job duties until IT responds to the ticket.
I was wondering what he was doing. I thought everybody knew how to keep a laptop awake when you close it. Are folks not using docking stations anymore?
or in enterprise speak: create a kubernetes deployment for an opencode sandbox, and expose it with SSO and cloudflare and then open it in a webbrowser on your phone
For me it's the opposite 😆 I used to keep it open with a build going, but now everything is just agents running on the cloud so I don't have to worry about it
Now: claude interpreted the: “remove unused and redundant css classes as a rewrite the entire codebase, fuck up architecture, introduce a ton of bugs and sacrifice performance to add new crashes”
You know that you add `HandleLidSwitch=ignore` to `/etc/systemd/logind.conf` ? Then you can close the lid and the system will keep running normally. Right?
Ah...
It's a mac... so yeah... you are right... this is the way to go.
I know this is a joke but most of us at work have switched to cloud desktops running Linux and set it up to run agents on it so you can take your laptop wherever.
If your have a "real" laptop you could close it and have it still running. If you have a "real" life you would leave it at your desk processing in the background whilst you actually have a break.
What do people actually use agents for? Like, honestly, I can't actually think of something useful for them at present... I mean, it just seems, so pointless... It's like NFTs... I think it's going to end up like NFTs.
I am, i dont get why half you people need them for to the point where you seem addicted.
It feels like its for people who want to make AI coding feel as complicated as coding originally used to be. People want to believe that they can write all their code with AI and still defend the existence of their career if they're an expert at typing commands for robots to do all the code for them
- Coding agent implements the written spec (probably also AI generated) and unit testing
- Integration testing agent does the integration testing
- PR review agent does the PR review
- We, of flesh and blood, monitor and approve multiple such workstreams running in parallel
Lowkey this new paradigm sucks the fun out of the job, and I feel like I'm in Plato's cave playing with shadows while being fully aware the real forms exist.
I recently started a new job at a software company and half the people's screens just seem to be prompting AI the whole time and it looks so boring.
The one experience Ive had with someone's (self admittedly thrown together) AI code, it was just awful. So much repeated code and extending the program at all would've been a nightmare.
I just do the programming myself as I enjoy the problem solving
Well it’s not unreasonable to ask a coding agent to implement stuff and tests. Usually it’s slow cause it makes a change, builds, run tests finds issues and iterate. If your code base is big and stuff like building amd running tests take a while even relatively small changes can have an agent going for 10s of minutes. This is just a very basic activity, you can have them do a lot more complicated workflows as well, but I don’t actually think that represents the common developer.
In the last year or so the improvements in Claude models for coding (I personally don’t use the gpt ones much specifically with coding agents cause I gained a bias for that type of workload of getting better results) is pretty impressive. Like a year ago it maybe good at certain things and was kind of hit or miss, either it got it pretty great or it was going to do stuff in a way I didn’t like. Now I basically just give it information closer to how I would describe what I want from a different developer like legit I have this page blah, we are getting this issue, how can we address this and it like 90% of the time ganna give me the problem, a proposed solution and will implement it. If this was slow that’s one thing but it’s ganna finish this before I learn the code site. In my opinion if you are not taking advantage of a good coding agent and can see the value of it, your probably ganna be left behind. Claude is expensive but other models are ganna get cheaper and be comparable to them to day in probably a few years. This means if we can get relatively affordable options at today’s performance that’s basically a no brainer for most bussiness, the output gain is so significant it’s not even funny. The main issue I think is code reviews. Human reviewers can’t keep up, and honestly I don’t trust every developer to guarantee there own work much less an AI Output. Either you slow down due to this and maintain quality or take a risk and maybe have ai tools at least do some reasonable checks. Depending on the type of bussiness and processes different types of risks are acceptable.
I'm no developer, but always wanted to make many things. In the last 15 days I discovered agents, built a server on my home linked to my Telegram and WhatsApp with an AI model available and some automations, build a simple shortcut app that I wanted for my smartphone, made the agent optimize my Android TV and my Samsung TV remotly.
The "server" is a notebook with no screen, I don't even have to connect a screen to it since it does everything via remote ssh and I don't even know wth is a SSH
1.4k
u/Jaded-Philosophy3783 26d ago
remote it from your phone
2.2k
u/eloel- 26d ago •
So reliant on agents to do shit, doesn't know how to change what happens when you close the lid.
120
u/losgar 26d ago
Use amphetamine. It's free.
411
u/Important_Grab3544 26d ago •
The Simpsons already predicted decades ago how to handle this situation.
262
u/FailQuality 26d ago
Why are you taking your laptop to lunch?
89
u/ZeltronTheHellspawn 26d ago edited 26d ago
somewhere in here is a joke that I've never shut my laptop because it doubles as a server
112
u/Antilock049 26d ago
Tmux saves the day yet again.
77
u/JackNotOLantern 26d ago
Imagine disabling sleep on closing the lid
61
u/verwalt 26d ago
How can a simple meme like this be AI generated? The Apple Logo is upside down.
307
u/Neutrino2072 26d ago
Not even knowing how to disable sleep when shutting the lid but vibecoding. No stereotype harmed
55
u/wildwolfvisual 26d ago
Bro doesn’t know about remoting and keeping your laptop awake while shut. AI really does make you dumber
37
u/HRApprovedUsername 26d ago
Who brings their laptop to lunch?
58
u/HEYO19191 26d ago
Ofcourse someone running AI agents wouldn't even know how to toggle 1 switch in Control Panel
25
u/Bubbly_Safety8791 26d ago
24
u/natziel 26d ago
Why don't you ask Claude how to keep a program running even when your laptop is closed
6
u/CRYYNNGE 25d ago
don't hold that like that, that makes me nervous :(((
14
u/wizard_mitch 26d ago
Choose what happens when you
close the lid > Nothing
5
u/Positive-Engineer482 26d ago
Did you know you can keep your Mac work even closed?
9
u/PHUNKSPANGLE 24d ago
Don't worry son soon all day will be lunchtime due to unemployment, you just wont have any money to buy lunch.
3
u/namezam 26d ago
Open a terminal, type caffeinate, enter. Done, no sleepy.
3
u/urxxx 26d ago
Or… leave the hellmachine at work and take a freaking break?
7
u/zakaryan2004 26d ago
Yeah, and you generated stupid AI slop images
5
u/clericc-- 26d ago
you know, you could buy a cheap used mini pc, install opencode on it, and open it in a webbrowser from anywhere
4
u/Big-Dick-Energy-6967 25d ago
is it only me or this mf's don't know there is option to make sure system does not go into sleep / lock screen.
5
u/MarinaEnna 26d ago
Good luck with the intellectual ownership of your codebase
2
u/arcticslush 26d ago
caffeinate -ims
Thank me later
2
u/Makonede 26d ago
where programming
2
u/minus_minus 26d ago
Does MacOS not let you change the lid closing behavior?
2
u/kryptocodes 26d ago
Dumb post
2
u/FlashyTone3042 26d ago
Steal Sam Altman's RAM.
2
u/jsdodgers 26d ago
For me it's the opposite 😆 I used to keep it open with a build going, but now everything is just agents running on the cloud so I don't have to worry about it
2
u/KingJarvis108 24d ago
Open a terminal, type caffeinate -ims
2
u/denzien 24d ago
Nah, I just trigger a research task or something long running, leave my machine at work and check on it periodically with my phone...
2
u/FriendlyRing1161 23d ago
There is an app on the App Store called Amphentamine it solves this.
2
u/Latter-Sheepherder50 23d ago
run native `caffeinate` command and close the lid!
3
u/Key-Investment3701 26d ago
ya maybe 6 months ago
2
u/Ysnsd 26d ago
caffeine.exe
1
u/Funkey-Monkey-420 26d ago
you know you can change your settings so that the session isn’t locked when you close the laptop, right?
1
u/ExtraTNT 26d ago
Was always open: shit compiles…
Now: claude interpreted the: “remove unused and redundant css classes as a rewrite the entire codebase, fuck up architecture, introduce a ton of bugs and sacrifice performance to add new crashes”
1
u/RvlvrJoshalot 26d ago
/allow-all ....comes back .....
1
u/backfire10z 26d ago
Claude has /background command, you don’t even need to mess with MacBook settings nor tmux
1
u/Jebble 26d ago
Rub them in the cloud, or use remote control?..
1
u/MischiefArchitect 26d ago
You know that you add `HandleLidSwitch=ignore` to `/etc/systemd/logind.conf` ? Then you can close the lid and the system will keep running normally. Right?
Ah...
It's a mac... so yeah... you are right... this is the way to go.
1
u/martinsky3k 26d ago
HAHA WOW
1
u/Ozymandias_1303 26d ago
Usually if I'm in an office and I leave it to go to lunch I don't bring my laptop at all.
1
u/mobsterer 26d ago
if you don't have to accept, you also don't have to leave it awake.
1
u/ludos1978 26d ago
run "caffeinate -dimsu" in a terminal. press ctrl+c to terminate it or just close the terminal.
it will prevent your apple notebook from going to sleep when you close the lid.
1
u/Past_Paint_225 26d ago
Caffeinate
1
u/baileyarzate 26d ago
sudo pmset -a disablesleep 1
1
u/Aggressive_Giraffe65 26d ago
Just sudo pmset -a disablesleep 1 bro
1
u/arran4 26d ago
Needs to be a song: "Everybody needs a linux server"
1
u/Nassiel 26d ago
Hahahah I can relate it 🤣
1
u/scknkkrer 26d ago
Imagine using macs for “10 years” and not knowing that you can simply prevent it from sleeping when lid closed. 🤦🏻♂️
1
u/iKaei 26d ago
Download Amphetamine app. Problem solved
1
u/CyberBinarin 26d ago
"Hey AI, can you keep going even if I close the lid?" "Yes, of course! Close that lid and save some power and I'll continue burning the midnight oil."
1
u/TheOwlHypothesis 26d ago
You need a server my friend.
1
u/sebjapon 26d ago
I pause my agents during lunch break and go back to waiting for them to do the thing when I come back. Otherwise it’s not really a break is it?
1
u/kaspm 26d ago
I know this is a joke but most of us at work have switched to cloud desktops running Linux and set it up to run agents on it so you can take your laptop wherever.
1
u/Schrojo18 26d ago
If your have a "real" laptop you could close it and have it still running. If you have a "real" life you would leave it at your desk processing in the background whilst you actually have a break.
1
u/rwrife 26d ago
Someone needs to build a backpack that lets me keep the laptop running cool in the backpack.
1
u/zooper2312 26d ago
open ai agents are totally in the cloud now.
1
u/mimelife 26d ago
All that AI use and you didn't even ask it how to fix this issue. it would tell you the solution in 2 seconds
1
u/Timely-Ad-2597 26d ago
ORCA
1
u/bako252 26d ago
You can always use an amphetamine like tools to run them in sleep mode
1
u/Dry-Refuse-8132 26d ago
Bro, run agents on a VM. The fuck you doing keeping your laptop open all day 😂
1
u/byyhmz 26d ago
Just getting an agent to program your laptop to do nothing when the screen is closed...
1
u/joerc200 26d ago
Only if you had a windows laptop.
1
u/ZetaformGames 26d ago
Agents?
1
u/SnooRegrets3590 26d ago
Systemd-inhibit
1
u/JacksOnF1re 26d ago
I mean... There is amphetamine. You've probably not been a "dev" before lol
1
u/range_kun 25d ago
You can make your own bot to communicate with your agents, or use remote control
1
u/Meskours 25d ago
You forgot to click Enter
1
u/FrenchieM 25d ago
I use vorssaint
1
u/Zestyclose_Ad9843 25d ago
Explain to me like if I was a toddler what the fck is an agent?
1
u/mariachiband49 25d ago
Use Amp!
1
u/prollypuffin 25d ago
Sudo pmset disablesleep 1
1
u/gods_tea 25d ago
Just download amphetamine from the app store.
1
u/FailureOfTheFamily 25d ago
Jokes on you. I use hermes so i can close the lid and the work keeps going on my homelab
1
u/Additional_One_1230 25d ago
I thought that agents work for you so why take it with you when you go to lunch? That half hour it could do its own job in the office.
1
u/astrick304 25d ago
😭😭😭
1
u/coldoven 25d ago
It is called renting a server.
1
u/[deleted] 25d ago
Dont use AI then. Problem solved.
1
u/ninjabreath 25d ago
capsomnia. but also, cooling lol
1
u/PunctualPanther 25d ago
Run the agent on a vm. And connect it from the laptop.
1
u/Ok-Hospital-5076 25d ago
Try herdr
1
u/InevitableResident53 25d ago
Hardworker
1
u/E1eveny 24d ago
Yeah, the biggest progress happens during my lunch break.
1
u/DauntingPrawn 24d ago
Not caffeinated why?
1
u/Naud1993 24d ago
My laptop would go into standby at this angle.
1
u/Soopermane 22d ago
That depended on your job tho
1
u/jessejones1 21d ago
Caffeinate
-6
u/Curious_Associate904 26d ago
What do people actually use agents for? Like, honestly, I can't actually think of something useful for them at present... I mean, it just seems, so pointless... It's like NFTs... I think it's going to end up like NFTs.
1
u/dim13 26d ago
1
u/MikeTangoRom3o 26d ago
Need to save those cache tokens
1
u/tempelton27 25d ago
Not offloading your agentic work to a remote system, using your laptop as a server and permanently leaving the lid open is pure programmer logic.
I approve.