Menu

An Agent That Knows What I Watched, When, and Where I Left Off (Trakt x Cognee)
πŸ“°

An Agent That Knows What I Watched, When, and Where I Left Off (Trakt x Cognee)

DEV CommunityΒ·Shikhar GoelΒ·about 5 hours ago
#kUKGLTwt
#devcommunity#dev#trakt#connector#cognee
Reading 0:00
15s threshold

This is my Mergetober hackathon entry for the Trakt connector (proposed in cognee#6488 ).

Trakt is the quiet layer that has tracked everything I've watched for years β€” scrobbled automatically from my media setup, every episode with a timestamp. It's the closest thing I have to a ground-truth viewing record, and until now it was write-only memory: tracked, stored, never used.

This connector makes it agent-readable. With cognee, "which show was I bingeing in March?", "what episode did I last watch of Severance ?" and "what's rated highly on my watchlist but never watched?" become answerable from my actual history.

Connecting

Trakt's official OAuth PIN flow, walked through in the README: create a free app at trakt.tv/oauth/applications, run the built-in helper, paste the PIN once:

from cognee_community_connector_trakt import trakt_pin_flow , trakt_source import cognee

trakt_pin_flow ( client_id , client_secret ) # prints a URL, asks for the PIN, saves the token await cognee .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.