HNHacker News
TopNewBestAskShowJobs

kageroumado

267 karma · joined March 19, 2026

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: mail@kagerou.glass
submissionscomments
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
Claude Code actually uses caffeinate -i -t 300 during Claude’s turn, restarted automatically until the turn finishes.
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
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.
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
Afinils are cool, and your app is cool too~
kageroumado··on Show HN: Starglyphs - A constellation puzzle game based on Euler paths
This looks beautiful! I hope it works out well for you
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
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.

kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
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.
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
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.

kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
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.
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
Caffeinate doesn’t prevent sleep with the lid closed.
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
Claude Code or Codex (normally) don’t close the terminal window after a turn ends, they wait for the user’s reply.
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
Probably less irritable than amphetamine~
kageroumado··on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
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.
kageroumado··on Europe's extreme heat is shutting down power plants
Not only the power plants, but power in residential areas too. Cables and distrubution transformers overheat, forcing shutdowns.
kageroumado··on The gap between open weights LLMs and closed source LLMs
There’s going to be more and more propaganda about open models being a tool to program your children into being Chinese spies or some other absurd reason, and then a new beautiful law will be enacted unanimously, banning their use. And “thankfully," child-protecting measures will by then be implemented at the OS level.
kageroumado··on The gap between open weights LLMs and closed source LLMs
If anything open-source models are a hedge against the apocalypse. Or at least against the cyberpunk dystopia.
kageroumado··on Use boring languages with LLMs
Swift is something that works very well if you enforce Swift 6 + good architecture and doesn’t work very well and ends up with slop if you don’t.

Usually once the project is already established and has good patterns, both Claude and GPT will continue the good patterns, but you may still want to add a review pass step to remove bad practices (usually hacks around concurrency instead of doing it properly).

kageroumado··on [dead]
Yesterday I posted my video wallpaper app which adds a custom section to your wallpaper settings and allows to use any videos you want. If you want to know how to inspect and reverse-engineer any other Apple framework, this article outlines how to do this.

I recommend asking Claude to do this and periodically check what happens. It can take a long time and quite a lot of tokens to test all the possibilities.

kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
Thank you! I’m glad you like it
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
My repo has a skill that describes most of my approaches in more detail.

https://pastebin.com/XLhjr4pf https://github.com/kageroumado/swiftui-macos-skill

kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
It’s actually configurable. You can make it keep playing if you want to.
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
Could you please open a PR with your refactor? This way everyone can benefit
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
Yes, I told Claude to design it to their taste, I just provided the screenshots and the video.
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
Thank you! The way it works is that the video playback is shared between the lock screen and the desktop, and Apple’s framework transparently switches the surface it’s displayed to.
kageroumado··on I made a browser alone and barely got any users
Yes, I agree with you. It’s my first project of this scale and distribution isn’t something I’m good at. Hopefully, the open source version will have a better future

The browser is now open-source at https://github.com/kageroumado/refrax-browser/

kageroumado··on I made a browser alone and barely got any users
I’ll open source it
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
Not much, Claude was trying different things on their own for hours. It was Opus 4.6, this public release was done by 4.7
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
The video will keep playing on the lock screen, but screen savers are a different thing. You can have the same video as your wallpaper and screen saver though.
kageroumado··on I made a browser alone and barely got any users
I’ve been an Arc user for a long time, and grew very used to its horizontal tabs and other features. Once it became abandoned, I, like many others, decided to search for an alternative. There were no real alternative. So I spent months making myself a browser that would look and feel like I want it to feel.

The entire project is made from zero, the only dependency it uses is WebKit itself. Looking through obscure undocumented functions and sometimes using Apple’s private frameworks to achieve effects others don’t even try.

And then I presented it to the world, and the world largely ignored it. I tried various channels, but it seems like asking people to switch browsers is just too much. It basically traumatized me and I lost interest in the project.

I hope this post will get more popular and more people can try the browser. I’d be grateful of someone reposted it on platforms like Reddit as I don’t have the karma to post in most subreddits and got insta banned once I tried.

You can download it for free, it’s simple, elegant, and tries to be what Safari should’ve been.

kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
Thank you! I’m glad you like it
kageroumado··on Show HN: I reverse engineered Apple's video wallpapers
This app injects itself directly into Apple’s actual pipeline, so your videos won’t get removed or changed. It’s not just an automated replacer of Apple’s own videos.
Page 1 of 2Next →