Détection des tâches en double avec MCP : fusionner ou lier le travail similaire
Identify and consolidate duplicate tasks using MCP. This workflow shows you how to find likely duplicate tasks by comparing titles and descriptions, propose merge plans, and safely link related work—with approval steps to prevent accidental changes.
Ce que ce workflow permet
Duplicate task detection with MCP helps you maintain a clean task list:
Résultats clés
- Duplicate identification: Find tasks with similar titles and descriptions
- Merge planning: Propose which tasks should be consolidated
- Safe linking: Add comments or links between related tasks after approval
- Cleanup recommendations: Get actionable suggestions for task consolidation
- Approval-based safety: Only add comments/links after explicit confirmation
Prérequis
Before using this workflow, ensure you have:
- Corcava MCP server configured in your AI assistant
- API key with read access to tasks
- Write access for adding comments (optional, for linking tasks)
- Tasks that may have duplicates or similar work
Workflow pas à pas
Step 1: Find Potential Duplicates
Start by searching for tasks that might be duplicates:
Duplicate Search Prompt
What the AI does:
- Calls
list_tasksto get all tasks - Compares task titles and descriptions
- Identifies similar or duplicate tasks
- Presents potential duplicate pairs
Step 2: Review Task Details
Get full details of potential duplicates to confirm they're the same:
Task Detail Review Prompt
What the AI does:
- Calls
get_taskfor each potential duplicate - Reads task descriptions and comments
- Compares task content and context
- Provides detailed comparison and recommendations
Step 3: Propose Merge Plan
Generate a merge plan for confirmed duplicates:
Merge Plan Prompt
What the AI does:
- Analyzes duplicate pairs
- Determines primary vs secondary tasks
- Creates merge strategy
- Presents merge plan (read-only)
Step 4: Link Tasks (After Approval)
After reviewing the merge plan, link related tasks with comments:
Link Tasks Prompt (Requires Approval)
What the AI does:
- Drafts comment text
- Shows preview for approval
- Waits for confirmation token
- Only calls
add_task_commentafter approval
Complete Workflow Prompts
Here are complete, copy-paste ready prompts:
Full Duplicate Detection Workflow
Use this when: You want a complete duplicate detection analysis
Quick Duplicate Check
Use this when: You just want to quickly identify duplicates
Link Related Tasks (With Approval)
Use this when: You've identified duplicates and want to link them
Workflow Variants
Variant 1: Exact Duplicate Detection
Find tasks with identical or near-identical titles:
What happens: AI focuses on title similarity for exact duplicates
Variant 2: Similar Work Detection
Find tasks that describe similar work but with different wording:
What happens: AI analyzes descriptions to find similar work
Variant 3: Cross-Project Duplicate Detection
Find duplicates across multiple projects:
What happens: AI searches across all projects for duplicates
Example: Complete Duplicate Detection Session
Here's a real example of how a duplicate detection session flows:
User Prompt
AI Response (Analysis)
Duplicate Detection Analysis (3 pairs found)
Pair 1: Exact Duplicates
- Task #123: "Implement user authentication" (created 2026-04-15)
- Task #145: "Implement user authentication" (created 2026-04-20)
- Recommendation: Keep #123 (older), link #145 to it
Pair 2: Similar Work
- Task #156: "Add OAuth 2.0 support" (description: "Implement OAuth for third-party login")
- Task #167: "OAuth integration" (description: "Add OAuth 2.0 authentication")
- Recommendation: These describe the same work - merge into #156
Pair 3: Related Work
- Task #178: "Fix authentication bug"
- Task #189: "Authentication error handling"
- Recommendation: Related but different - link them, don't merge
Merge Plan:
- Link task #145 to #123 with comment: "Duplicate of #123"
- Link task #167 to #156 with comment: "Same work as #156 - consider merging"
- Link tasks #178 and #189 as related work
User Approval
AI Action (After Approval)
✅ Added comment to task #145: "Related to task #123: Implement user authentication. Consider merging or consolidating."
✅ Added comment to task #167: "Related to task #156: Add OAuth 2.0 support. Consider merging or consolidating."
✅ Added linking comments to tasks #178 and #189
Safety Patterns
✅ Approval-Based Write Operations
This workflow uses explicit approval for any write operations:
- Read-first: Always analyze before proposing changes
- Preview comments: Show comment text before posting
- Confirmation tokens: Require "CONFIRM" or "YES, ADD COMMENT" before adding comments
- No automatic merges: Only suggests merge plans, never executes them
- Safe linking: Adds comments to link tasks, doesn't delete or modify tasks
Troubleshooting
No Duplicates Found
Symptom: Analysis returns no duplicate pairs
Possible causes:
- Tasks are genuinely unique
- Search scope is too narrow
- Tasks use very different wording
Fix: Try broader search: "Find similar work, not just exact duplicates" or expand to multiple projects
Too Many False Positives
Symptom: Many tasks flagged as duplicates that aren't
Possible causes:
- Similar but distinct work
- Tasks in a series (e.g., "Part 1", "Part 2")
Fix: Ask for stricter matching: "Only flag exact duplicates, not related work"
Comments Not Being Added
Symptom: AI doesn't add comments even after approval
Possible causes:
- Confirmation token not recognized
- API key lacks write permissions
- Task ID incorrect
Fix: Use exact confirmation: "CONFIRM" or "YES, ADD COMMENT". Verify API key has write access.
Related Tools
This workflow uses these Corcava MCP tools:
list_tasks
Search and list tasks to find duplicates
get_task
Get task details for comparison
add_task_comment
Add comments to link related tasks
list_task_comments
Review existing comments before linking
Related Use Cases
Cross-Project Search
Use search to find related tasks across projects
Backlog Grooming
Clean up stale tasks and identify duplicates
Detect and Consolidate Duplicates
Connect your AI assistant to Corcava and keep your task list clean
