Context: Queue Modify
This internal utility manages the .cursor/research-queue.json file in the current workspace.
File Format
{
"items": [
{
"url": "https://...",
"title": "...",
"type": "github_pr",
"score": 85,
"reason": "..."
}
],
"metadata": {
"last_updated": "timestamp"
}
}
Operations
push/add: Append links to the queue. Auto-deduplicates against existing items and global visited set.pop: Remove and return the top item (highest score).sort: Re-sort theitemsarray descending byscore.truncate: Ensure the queue does not exceed 15 items. Discard lowest-scoring items if over limit.