Warwickshire 274 and 132 for 7 (Hain 46, Cohen 3-26) lead Derbyshire 121 (Miles 5-30, Norwell 4-24) by 285 runs
Warwickshire pace bowlers Craig Miles and Liam Norwell demolished Derbyshire before the home side hit back strongly on day two of the LV=Insurance County Championship match at Derby.
The pair shared nine wickets to skittle Derbyshire for 121 but after Warwickshire chose not to enforce the follow on, Michael Cohen took 3 for 26 as the visitors collapsed to 132 for 7, a lead of 285.
Miles took 5 for 30, including a post-lunch spell of 3 for 5 in five overs, and Norwell 4 for 24 as Derbyshire's last eight wickets fell for 45 in 14 overs.
The day's wicket count reached 18 despite Sam Hain's 46 but Warwickshire are still favourites to complete a fourth victory in Group 1.
There was no sign of the mayhem that unfolded in the afternoon when Derbyshire went into lunch on 61 for 2 after Warwickshire added only two more runs to their overnight 272 for 9.
Luis Reece was lbw when he offered no shot to a Oliver Hannon-Dalby delivery that seamed back but Warwickshire tended to bowl too short and wide in the first session.
Billy Godleman and Brooke Guest took advantage until Miles had Derbyshire's captain caught behind four overs before the interval.
Warwickshire's bowlers adjusted their sights and ran through Derbyshire in 14 overs after lunch with wickets tumbling to a combination of good bowling and poor shot selection.
Wayne Madsen missed a drive, Ben McDermott edged to third slip pushing hard at Miles who then moved one away to have Matt Critchley caught behind.
Norwell swept aside the lower order, having Guest caught behind and Anuj Dal snared at first slip before Alex Hughes edged into Michael Burgess's gloves as he pushed forward.
Ben Aitchison gave Tim Bresnan another catch at first slip and although Norwell speared the hat-trick ball wildly down the leg side, Derbyshire were still four short of the follow-on target of 125 when Cohen became Burgess's fifth victim.
Warwickshire's decision to bat again looked questionable when Will Rhodes played around Sam Conners and Pieter Malan bagged a pair when he was caught down the leg side off Cohen.
Derbyshire sensed an opening when Rob Yates was bowled driving at Reece but Hain and Matt Lamb restored order until another clatter of wickets gave the home side a glimmer of hope.