The cascade ability doesn’t cause a player to shuffle their library, even if that player revealed their entire library. The revealed cards are put on the bottom of their owner’s library in a random order, but they’re not “shuffled.”

Artwork
Loading artwork…
Cosi's Trickster
Zendikar · #45 · EN
Nonfoil—Foil—
Card rules
Whenever an opponent shuffles their library, you may put a +1/+1 counter on this creature.
1/1
She watches the chaos created by the Roil, seeking strength in the patterns of anarchy.
Rare · Illustrated by Igor Kieryluk
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If an opponent’s library is empty or has just a single card in it when a spell or ability instructs that player to shuffle their library, Cosi’s Trickster’s ability will still trigger.
Cosi’s Trickster’s ability triggers when an opponent shuffles their library because that player was instructed to do so by a spell or ability that specifically contains the word “shuffle” in its text or (in the case of a keyword ability) in its rules.