13 comments

  • chopete3 51 minutes ago
    This is great. Will check it.

    Recently I bought a usb-c empty external monitor card to prevent mac from going to sleep. There are many of these external monitor simulators on Amazon.

    I still see the laptop go to sleep many times with the external monitor simulator.

    This is the one I bought.

    4K 60Hz USB-C Type-C Virtual Display Adapter DDC EDID Dummy Plug Headless Ghost Display Emulator 2K 60hz1080P@120Hz

    • kageroumado 12 minutes 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.

    • bluedino 34 minutes ago
      Can't you just use a hot corner configured as "prevent sleep"?
      • fragmede 33 minutes ago
        How does it sleep when the agent is done working with the hot corner?
        • doubled112 26 minutes ago
          Have the agent write an app that moves the cursor our of the hot corner and trigger it when done.
          • darig 15 minutes ago
            [dead]
  • aqme28 31 minutes ago
    Thank goodness. I can’t leave my laptop for a second unattended because my cat loves nothing more than to dance on the keyboard. I’ve need something like this.
  • rancar2 30 minutes ago
    For MacOS, keep awake with:

    sudo pmset -a disablesleep 1

    Reset back:

    sudo pmset -a disablesleep 0

    • kageroumado 23 minutes 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.
      • xbar 20 minutes ago
        Nice. I needed this yesterday, and will need it again today.
  • dawnerd 49 minutes ago
    But Amphetamine has an option to end when an app closes. I’m just so confused why everyone using ai is reinventing solutions that already exist.
    • kageroumado 41 minutes ago
      Claude Code or Codex (normally) don’t close the terminal window after a turn ends, they wait for the user’s reply.
    • neoecos 18 minutes ago
      I think the same...It happend to me that I just ask Claude to build whatever I need for my personal very specific use case without looking what else it's outhere
    • flexagoon 25 minutes ago
      Everyone dreams about making the next cool AI tool and doesn't bother checking if someone has already made the same thing years ago without the word "AI" in the description
    • conception 41 minutes ago
      Easier to ask Claude than ask google I guess.
  • processunknown 1 hour ago
    Does it also make my Mac irritable?
    • kageroumado 45 minutes ago
      Probably less irritable than amphetamine~
  • xlii 56 minutes ago
    Um so it is

        sudo bash -c 'touch KEEP_RUNNING; pmset -b sleep 0; pmset -b disablesleep 1; while [ -e KEEP_RUNNING ]; do sleep 1; done; pmset -b sleep 5; pmset -b disablesleep 0'
    
    and

        Agent, when you're done do `rm KEEP_RUNNING`, kthxbye.
    
    ?

    (personally I have Ruby scripts that check activity on "tmux capture-output" for that)

  • moralestapia 1 hour ago
    What's old is new again, but I welcome this.

    I used to do this 15 years ago to keep listening to music from my laptop (one of the white chiclet ones) in my backpack, can't remember the name of the app I used then.

    One caveat, your laptop cannot cool inside a backpack, it will overheat and shut down anyway. This happened to me several times.

    • kageroumado 47 minutes 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.
    • dmd 1 hour ago
      that was true of intel but definitely not of arm macbooks.
      • NewJazz 55 minutes ago
        Then why do they have fans?
    • dominotw 1 hour ago
      had a coworkers whose laptop keys melted into mush
  • cyanydeez 13 minutes ago
    you can run opencode inside a docker container and expose it's webui.
  • WUMBOWUMBO 43 minutes ago
    reminds me of ye old caffeinate
    • kageroumado 26 minutes ago
      Caffeinate doesn’t prevent sleep with the lid closed.
  • operatingthetan 53 minutes ago
    So now we're naming apps after obscure Modafinil derivatives?
  • cyclopeanutopia 45 minutes ago
    Ridiculous bloat.