# `mix pixir.bench.codex_pressure`
[🔗](https://github.com/Ranvier-Technologies/pixir/blob/main/lib/mix/tasks/pixir.bench.codex_pressure.ex#L1)

Samples local macOS process and memory pressure while Pixir or Codex work is
running elsewhere.

This task does not spawn Codex threads or subagents. Codex thread/subagent
creation is a runtime tool surface, not a shell API. The task is instead an
agent-useful sampler that can run beside a manual or Codex-orchestrated
fan-out window and write bounded evidence:

    mix pixir.bench.codex_pressure --dry-run --json
    mix pixir.bench.codex_pressure --target-n 8 --duration-seconds 120
    mix pixir.bench.codex_pressure --profile pixir-runtime-only --json
    mix pixir.bench.codex_pressure --profile codex-app-stack --json
    mix pixir.bench.codex_pressure --process-patterns codex,electron
    mix pixir.bench.codex_pressure --configured-limit 20 --json

Artifacts:

    samples.jsonl
    summary.json
    report.md
    completion_audit.json

The reported memory is local process/system pressure. It is not model memory
and it is not provider-side inference memory.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
