kageroumado

Joined 7 months ago

Karma
267
Submissions
52
Member since
Mar 19
I'm Mado Kagerou, publishing as kageroumado: an independent researcher and expert Swift engineer with more than ten years of software development experience. My research interests center on computational pharmacology, computational neuroscience and AI safety. My engineering specialties include Apple platform internals, reverse engineering, GPU rendering and local model training. Contact: [email protected]
View on Hacker News

Recent submissions

Comment · 4 months ago
Claude Code actually uses caffeinate -i -t 300 during Claude’s turn, restarted automatically until the turn finishes.
Comment · 4 months ago
It’s an Electron app that uses powerSaveBlocker to prevent display sleep. It won’t prevent macOS system sleep on lid close with no power.
Comment · 4 months ago
Afinils are cool, and your app is cool too~
Comment · 4 months ago
This looks beautiful! I hope it works out well for you
Comment · 4 months ago
In order to get the same behavior with Amphetamine you’ll need to: 1. Install it from the AppStore (no brew, no GitHub) 2. Not forget to enable lock on lid close 3. If you ever connect/disconnect power while the lid is closed without the optional “Power Protect” system, the MacBook will sleep. The system is a script and a configuration file making sudo pmset -a disablesleep passwordless. 4. Add hooks to Claude Code configuration that will use Apple Script to start and stop Amphetamine sessions. For Codex you’ll have to make a script that will watch process activity to know when a turn ends.

It’s not like Amphetamine can’t do the same, it’s that this app is made specifically for AI agents and nothing else.

Comment · 4 months ago
The app is built for 26+, as I never tested it on earlier versions. It won’t solve your specific case, though, as it only prevents sleep. It won’t wake it once it’s already sleeping.
Comment · 4 months ago
The dummy display enables “clamshell mode,” which lets your MacBook stay awake even with the lid closed, provided that it’s also on AC power. If the MacBook is not connected to power, the clamshell mode isn’t activated and it will sleep normally.

Adrafinil simply disables the global sleep without spoofing hardware, and re-enables it once the agent is done working, the temperature is too high, or the battery is low.

Comment · 4 months ago
This is exactly what the app does, except it ties it to agent activity and re-enables sleep once the turn ends, the laptop is close to overheating, the battery is low, or on a timer.
Comment · 4 months ago
Caffeinate doesn’t prevent sleep with the lid closed.
Comment · 4 months ago
Claude Code or Codex (normally) don’t close the terminal window after a turn ends, they wait for the user’s reply.
Comment · 4 months ago
Probably less irritable than amphetamine~
Comment · 4 months ago
It has a setting for thermal cutoff that you can set to something like 60º C. Sleeping will stop heavy work (like a build) before it leads to overheating.
Comment · 4 months ago
Not only the power plants, but power in residential areas too. Cables and distrubution transformers overheat, forcing shutdowns.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton