Keep awake
keep-awake holds the machine awake from a prompt to the stop that ends the turn, and never leaves a process behind.
Keep a laptop from sleeping in the middle of a long agent turn. keep-awake holds the machine awake from the prompt that starts a turn to the stop that ends it, and only then.
Never blocking
It decides nothing, so a machine that cannot be held awake never blocks the agent. Without a
command of your own, it needs caffeinate (macOS) or systemd-inhibit (Linux); a machine with neither is not held awake.API reference
The defaults and every option, with its type:
keep-awake.Hold the machine awake
import { defineConfig } from '@microeinhundert/harness-kit';
/**
* The machine kept awake while the agent works on a turn, with the command the kit picks for the platform.
*/
export default defineConfig({
policies: [
{
id: 'keep-awake',
use: 'keep-awake',
},
],
});A command of your own is a program and its arguments, such as ['caffeinate', '-d', '-t', '7200'] to keep the display on too. Give it a time limit of its own, so a process the kit loses track of still ends.
What the agent reads
Nothing: the Policy prints nothing and allows every call.
Turn it off
Remove the entry.
Related
- Stop checks and hand-off: the stops that re-arm it.