By: Ammar Nanjiani <ammar.nanjiani@gmail.com>
pi: keep herdr state working while background subagents or processes run