# MacBook Low Power Mode Off for Heavy Builds and Tests

> Keep your MacBook in Low Power Mode for everyday work, but run cargo/go builds, Docker, make, npm builds, pytest and backtests at full speed, then get your own setting back, even after a kill or a timeout.

MacBook Low Power Mode Off for Heavy Builds and Tests is a paid AI agent skill on Agensi by Claude Workflow Lab, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Claude Workflow Lab](https://www.agensi.io/creators/creator-1578)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/macbook-low-power-mode-off-for-heavy-builds-and-tests
- Tags: productivity, automation, devops, macos, low-power-mode, battery, performance, claude-code

## What it does

- Turns Low Power Mode off only while a heavy build or test runs, then restores your setting
- Counts holds across parallel jobs and restores even after a kill or timeout
- Optional Claude Code hook wraps heavy commands automatically; self-test included

## About this skill

Low Power Mode is great on battery until a build or test suite takes twice as long. This skill turns it off for exactly the heavy job and restores your own setting (battery and charger separately) when the job ends.

**What is inside**
- `lpm-hold`: a small bash tool that runs a command under a "hold". Holds are counted across parallel sessions, so the mode comes back only when the last heavy job ends. A detached watcher restores it even after `exit`, SIGKILL, a process-group kill or a tool timeout.
- `lpm-sudo-setup.sh`: one-time setup that adds an exact-match sudoers rule (only `pmset -a lowpowermode 0` and `pmset -b|-c lowpowermode 0|1`, no wildcards) and turns off idle sleep on battery. You run it yourself after reading it.
- `lpm-hook.py`: optional Claude Code PreToolUse hook for the Bash tool. It spots heavy local commands (cargo, go, docker build/compose, make, npm/pnpm/yarn builds, tsc, pytest, backtest/sweep scripts) and wraps them in the same shell, so `cd` carries over, the exit code is kept and zsh syntax works. It ignores text in quotes and heredocs, skips ssh/remote commands and never blocks a command.
- `test_lpm_hold.py`: a self-test with a fake pmset (no root needed) covering a table of heavy and non-heavy commands, overlapping sessions, kills, busy locks and failed restores.
- `SKILL.md`: install steps the agent follows only with your yes, manual use without the hook, a how-to-prove-it recipe and honest limits.

**Limits:** macOS only; closing the lid still sleeps the Mac; a manual mode change during a heavy job is overwritten by the restore; heavy programs hidden behind an alias, a variable or `bash -c` are not detected by the hook (prefix them with `lpm-hold`).

## Requires

- Runs on macOS only
- Python 3
- Perl
- Claude Code (for the optional automatic hook)

Admin password once, for a narrow sudoers rule that allows only pmset lowpowermode calls.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MacBook Low Power Mode Off for Heavy Builds and Tests skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does MacBook Low Power Mode Off for Heavy Builds and Tests do?

Keep your MacBook in Low Power Mode for everyday work, but run cargo/go builds, Docker, make, npm builds, pytest and backtests at full speed, then get your own setting back, even after a kill or a timeout.

### Which AI agents support MacBook Low Power Mode Off for Heavy Builds and Tests?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use MacBook Low Power Mode Off for Heavy Builds and Tests?

Connect your AI agent to Agensi through MCP, then ask it to use MacBook Low Power Mode Off for Heavy Builds and Tests on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
