feat(cli): add manus-agent cluster-variants subcommand for CVE variant clustering - #136
Open
manus-use wants to merge 1 commit into
Open
feat(cli): add manus-agent cluster-variants subcommand for CVE variant clustering#136manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
This was referenced Jul 21, 2026
This was referenced Aug 12, 2026
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the
manus-agent cluster-variantsCLI subcommand and the underlyingcluster_variantstool module. This was explicitly documented in the README (usage examples, flag table, workflow section) but had zero implementation — no tool module, no CLI wiring.What it does
Groups CVEs related to an input CVE across three cluster dimensions:
This is useful for mapping the full attack surface when one CVE is confirmed exploited — "if Log4Shell is in our environment, what else from the same component/weakness/researcher should we check?"
Usage
manus-agent cluster-variants CVE-2021-44228 manus-agent cluster-variants CVE-2021-44228 --output json | jq .clustersImplementation details
src/manus_agent/tools/cluster_variants.py(~370 lines): Tool module with NVD API queries across three dimensions, text rendering, and Strands SDK tool entry pointsrc/manus_agent/cli.py(+55 lines): Parser, runner,_SUBCOMMANDSregistration, and dispatchtests/test_cli_cluster_variants.py(51 tests): Comprehensive mocked test suite covering extraction helpers, fetch logic, main clustering, text rendering, Strands tool entry point, CLI text/json output, error handling, and edge casesTest results
(Baseline 1158 + 51 new tests, 0 failures)
Duplicate check
Checked all 50 open PRs (#75–#135) and 30 most recent merged PRs — no existing open or merged PR implements
cluster-variants. The closest PRs are:compare_cves— side-by-side comparison of two specific CVEs, not clusteringcve-timeline— event timeline for a single CVE, not clusteringosv-package-cve-lookup— per-package CVE lookup in blast-radius, different purposeNone implement multi-dimensional CVE variant clustering.