Teaching an AI assistant to forget a deleted Figma comment
Description and use
A Figma connector for Cognee was built to ensure that deleted comments and files are removed from the AI assistant’s knowledge graph, preventing stale references.
Problem
An AI assistant continues to reference a Figma comment that has been deleted, causing misinformation for new hires.
Outcome
The connector ensures that the AI assistant’s knowledge stays consistent with the current state of Figma files and comments, preventing stale or deleted information from being recalled.
Workflow
- 1. Configure a Figma personal access token with scopes file_content:read, file_comments:read, folders:read, file_metadata:read.
- 2. Specify folder or team IDs in the connector configuration.
- 3. Run the sync script (e.g., cognee.remember(source, dataset_name='figma')).
- 4. The connector lists selected folders, fetches only files whose last_modified changed, and reads comments for every file.
- 5. Deleted files or comments are removed from the knowledge graph on the next sync.
- 6. The connector limits node tree fetches to 100 per run and handles 429 rate‑limit responses gracefully, preserving already synced data.
- 7. Search queries against the graph now reflect only current Figma content.
Evidence
A deleted file, a deleted comment, or a folder you deselect is forgotten on the next sync.
The connector feeds it from Figma: Each comment thread becomes one document: the comment and its replies in time order with their authors, which frame it is pinned to, and whether it is resolved.
When Figma returned a 429 that outlasted the retries, the whole run failed and the next run started from zero, hitting the same wall.
First sync: both files and the thread came in, and a search answered correctly from the design text.
- Record date: 2026-11-01T10:13:43.681Z