Add max stack depth to agent
am: 9e709debac

Change-Id: I46698b7a19472678ec6815b0fa69bd1f6933cd73