Teaching Cognee to Remember Your Background Jobs: Building the Trigger.dev Connector A developer built a Trigger.dev connector for Cognee, the open-source memory layer for AI agents, that syncs background job history — schedules, errors, failed runs and deployments — into searchable memory via a triggerdev_source(...) function returning a dlt resource passed to cognee.remember(). The connector deliberately omits run payloads, outputs, metadata, cost data and Git remote URLs to limit sensitive data exposure, excludes volatile fields so unchanged records produce identical documents, and only deletes a schedule after a confirmed HTTP 404 rather than treating missing listing data as deletion. It also stops cleanly on HTTP 429s or revoked API keys instead of retrying, and retains historical records within a configurable lookback_days window defaulting to seven days. Pull Request: topoteretes/cognee-community 464 https://github.com/topoteretes/cognee-community/pull/464 Related Issue: topoteretes/cognee 6197 https://github.com/topoteretes/cognee/issues/6197 When a background job fails at 3 a.m., finding the reason is rarely straightforward. The answer is usually scattered across schedule configurations, error logs, stack traces, and the deployment that introduced the bug. I wanted an AI agent to see all of that information in one place. That led me to build a Trigger.dev connector for Cognee https://github.com/topoteretes/cognee , a system that turns background job history into searchable memory. The goal was simple: help AI agents understand what happened, identify patterns in recurring failures, and connect those failures to recent deployments. The connector exposes a triggerdev source ... function that returns a dlt resource, which can then be passed to cognee.remember . With a single integration, it syncs a Trigger.dev environment into Cognee's memory, collecting four types of records: Each record becomes a document associated with the node set triggerdev:task: