When Richard reaches out to an unlikely ally, Jared worries about the company he’s keeping. Gilfoyle gets tough on security in the wake of Dinesh’s latest dalliance; later, he considers whether to put his pride aside for a job. Concerned about Jian-Yang’s commitment to his app, Erlich takes matters into his own hands.