Add durable Agent teams with safe mode and tool gating (#3926)