Overview
Find duplicate and near-duplicate test cases, then decide what to keep, merge, or remove.
Cleaner Agent
Cleaner Agent helps you reduce duplicate coverage in your test repository.
Use it to find repeated or highly similar test cases, review grouped results, and decide what to keep, merge, or remove.
Before you start
Your project must already contain test cases.
If the project is empty, Cleaner Agent will not find anything to compare.
Open Cleaner Agent

Open Test Cases from the sidebar.
In the top-right toolbar, click ✦ AI Cleaner.
A drawer opens from the right side of the page.
Start a scan
At the bottom of the drawer, enter the journey you want to scan.
To scan the full repository, enter scan all.
You can also choose how the scan runs:
Semantic — finds near-duplicates and similar intent
Exact — finds word-for-word matches
In Semantic mode, you can also set a similarity threshold.
When you are ready, send your request.

Review duplicate groups

When the scan finishes, Cleaner Agent opens a results panel on the left.
Each result appears as a group of similar test cases.
Open a group to review:
why the test cases were grouped together
which test case should stay
which test cases may be merged or removed
the similarity score for each related case

One test case is marked as the primary version for the group.
Take action on results
From a result group, you can take action directly.

Delete a duplicate

Delete a test case when it adds no value beyond the primary version.
After deletion, the case is removed from the group and no longer appears in Test Cases.
Mark as not duplicate
Use Not Duplicate when a grouped case should remain separate.
This removes it from the duplicate group without deleting it.
Merge a group
Use Merge when multiple test cases contain useful details worth combining.
Cleaner Agent opens a merged draft that combines the best content from the group. Review it, then save it as a new test case.
Edit a test case
Open any test case from the results view to update its title, steps, or other details before you decide what to do with it.
Filter and explore results
Use the filter field at the top of the results panel to narrow groups by title.
You can also ask follow-up questions in the chat, such as which journey has the most duplicates or how many exact duplicates are in the project.
If no results appear
Cleaner Agent may return no groups when:
the project has too few test cases to compare
the selected journey has little or no matching content
the threshold is set too high for near-duplicates to qualify
If needed, lower the threshold or expand the scan to a broader scope.
Next step
Read Cleaner Agent scan modes to understand the difference between Semantic and Exact scans, similarity thresholds, and result labels.
Last updated
Was this helpful?

