Keel · a slow PC, explained

Codex makes your PC lag? Find which part is busy.

There are two different problems behind "Codex slows my whole PC", and they have different fixes. One is Codex itself using the CPU. The other is what Codex starts for you: cargo build, npm test, pytest, each taking every core it can find, and a sub-agent doing the same beside it. A minute in Task Manager tells you which one you have.

Keel is free for two agents. Every install starts with 14 days of Pro. No account.

Check first

See what is using the CPU.

Open Task Manager (Ctrl+Shift+Esc), Activity Monitor or top, sort by CPU, and read the first ten rows while the PC lags.

What you can change today

The free fixes.

Tell Codex to use fewer cores. Put the line in AGENTS.md and every session reads it:

cargo build -j 4 four jobs, instead of one per core go test -p 2 ./... two packages at a time make -j4 npx vitest run --maxWorkers=2 npx jest --maxWorkers=2 pytest -n 2 with pytest-xdist

Each sub-agent can start a build of its own. Codex's config, ~/.codex/config.toml, has a limit for how many run at once:

[agents] max_concurrent_threads_per_session = 2

Or start the heavy work at low priority, so it waits for everything else:

nice -n 10 cargo test Linux, macOS start /low /b /wait cargo test Windows, in cmd

What it costs: a cap holds when the PC is idle too, so every build is slower, always. nice treats a dev server the same as a test run. And the agent has to remember it, in every project and every session.

What Keel does about it

The same thing, per process, and only when the PC is busy.

Keel is a small app in the tray. It knows which processes Codex started, from the process tree and from the marks Codex puts in the shells it runs commands in, and it gives each one a lane:

With CPUs to spare, a lowered build runs as fast as before: a lower priority only matters when something else wants the CPU. Work that waits three seconds without running gets its priority back for five, so nothing starves. Quit Keel and every priority is put back as it was. How it decides

Measured, with the cost

110 ms to start a command, not 1,335.

On one machine (i7-11700K, 16 threads, Windows 10), with more spinning tests than CPUs on top of the agents already running, a new command took 110 ms to start with Keel steering and 1,335 ms without. A thread that asked to wake was 3.6 ms late at worst instead of 21.7 (99th percentile).

The cost is the other side of the same trade: the steered work got 21% to 56% less done while the PC was overloaded. It yields, and that is the point. Your own CPU work got no faster. The receipt, and how to run it yourself

To be straight about it

When Keel won't help.

Try it

Free for two agents.

Keel steers the work of your two oldest agents for free, for good. Pro steers every agent's work and keeps CPUs for you: $39 once, no subscription. Every install starts with 14 days of Pro, and there is no account.

Running several at once? Several agents on one PC: do the sum