The agent kept repeating itself.
Early on, the agent re-ran tools several times for a single request. Tracing the actual message list on each turn showed why: the loop was rebuilding the conversation every iteration instead of adding to it, so the model never saw its own earlier tool calls.
The fix was one growing message list. A second surprise came from testing on two platforms: Linux honors the memory limit and macOS rejects it, and the CPU cap kills with a different signal on each. Limits the OS refuses are now skipped instead of crashing.
