Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.supermodeltools.com/llms.txt

Use this file to discover all available pages before exploring further.

Uploads the repository to the Supermodel API and runs multi-phase dead code analysis including call graph reachability, entry point detection, and transitive propagation. Results include confidence levels (high/medium/low), line numbers, and explanations for why each function was flagged. Aliases: dc

Synopsis

supermodel dead-code [path] [flags]

Flags

FlagDescription
--min-confidenceMinimum confidence: high, medium, or low
--limitMaximum number of candidates to return
--ignoreGlob pattern to exclude (repeatable, supports **)
--timeoutMaximum seconds to wait (default 7200, 0 = no limit)
--forceRe-analyze even if a cached result exists
-o, --outputOutput format: human | json
-h, --helpHelp for dead-code

Examples

# High-confidence candidates only
supermodel dead-code --min-confidence high

# Top 20 results, JSON output
supermodel dead-code --limit 20 -o json

# Skip vendored and generated code
supermodel dead-code --ignore '**/vendor/**' --ignore '**/*_pb.go'