r/GithubCopilot • • 22d ago

General AwakeMate - keeps your agents running by changing the Windows power plan

https://github.com/ehrnst/AwakeMate

I prefer cloud agents when I can, but today I wanted my machine to access something my cloud agents do not have access too. So naturally, instead of changing the power settings in Windows. The only sensible solution was to create a plugin for it. Yes it is stupid, but I did it anyway.

PLugin is a couple of hooks that uses PowerShell (`powercfg`) to change the active Power plan on your machine

However, the work was done before I finished the plugin. Try it out if you want. Or even better, close the lid and go home.

0 Upvotes

7 comments sorted by

1

u/aonymark JetBrains User 🧱 21d ago

Neat idea. My laptop idle timeout is three minutes so this kind of thing might be useful, though I suspect this exact thing is not, due to details of my setup.

1

u/ehrnst 21d ago

If you’re not able to edit power settings your self. These hooks won’t help unfortunately

1

u/aonymark JetBrains User 🧱 21d ago

I can edit, I usually like 3 minutes

1

u/ehrnst 21d ago

This will just keep everything on as long as an agent session is active. Once the agent is done, it reverts back to your normal power options. So I can close the lid and put the laptop in my bag 🙈

1

u/aonymark JetBrains User 🧱 21d ago

Wait, in your bag? And then what, go somewhere? Unless you have local model, won’t you lose connection?

1

u/ehrnst 21d ago

My laptop has a sim 🫡

1

u/aonymark JetBrains User 🧱 21d ago

Ah fancy :)