AN embattled FBI agent whose anti-Trump text messages exposed the US justice department to claims of institutional bias has vigorously defended himself at an extraordinary congressional hearing.

The meeting devolved into shouting matches, finger-pointing and veiled references to personal transgressions.

Peter Strzok testified publicly for the first time since being removed from special counsel Robert Mueller’s team following the discovery of texts last year that were traded with an FBI lawyer in the run-up to the 2016 presidential election.

In a chaotic hearing that spanned 10 hours, he insisted he had never allowed personal opinions to affect his work, though he did acknowledge being dismayed by Donald Trump’s behaviour during the campaign.

Strzok also said he had never contemplated leaking damaging information he knew about the Trump campaign.

He called the hearing “just another victory notch in Putin’s belt”, referring to Russian president Vladimir Putin.

“At no time, in any of those texts, did those personal beliefs ever enter into the realm of any action I took,” Strzok told members of congress.

In breaking his silence, Strzok came face-to-face with Republicans who argued that the texts had tainted two hugely consequential FBI probes he had helped steer.