codeye / docs

Usage

Basic scans

# Scan the current repository
codeye .

# Scan a specific branch, tag, or commit
codeye --branch main .
codeye --branch HEAD~5 .

# Filter to specific languages
codeye --lang Go,Markdown .
codeye --lang Go --lang TypeScript .

--ref still works as a compatibility alias for --branch, but --branch is the canonical flag.

Main flags

FlagDefaultDescription
--branch <ref>HEADScan a branch, tag, or commit SHA
--format <fmt>tabletable, bar, spark, json, ndjson, csv, badge, markdown, compact
--sort <field>lineslines, files, code, blank, comment, lang
--top <n>0Limit output rows
--lang <list>allComma-separated or repeated language filter
--exclude <glob>noneExclude paths matching one or more globs
--path-filter <glob>noneInclude only matching paths
--no-vendorfalseExclude vendor-like directories
--no-generatedfalseExclude generated files such as *.pb.go
--no-testsfalseExclude common test file patterns
--min-lines <n>0Hide languages below a line threshold
--no-cachefalseSkip cache read and write
--no-colorfalseDisable ANSI colors
--no-headerfalseSuppress header and footer chrome
--widefalseShow blank and comment columns in table output
--compactfalseForce compact terminal rendering
--pcttrueShow percentage column
--theme <name>darkdark, light, mono
--workers <n>GOMAXPROCSWorker pool size
--dry-runfalsePrint matching files without scanning
--config <path>autoExplicit .codeye.toml path
--versionfalsePrint version information and exit

Analysis modes

# Ownership by author
codeye --blame .

# Repository growth
codeye --history --history-interval month .

# High-churn files
codeye --hotspots --top 20 .

# Snapshot the repo at a historical date
codeye --at 2025-12-31 .

Related flags:

FlagDescription
--blameAggregate line ownership by author
--historyShow repository growth over time
--history-interval <unit>day, week, month, quarter, or year
--history-limit <n>Maximum commits walked for history and hotspots
--hotspotsShow most-changed files by churn score
--since <date>Limit history or hotspot analysis to newer commits
--until <date>Limit history analysis to older commits
--at <date>Resolve the repo state at or before a date
--speedtestRun three uncached scans and print timings

--interval and --hotspot remain available as compatibility aliases for older docs.

Subcommands

codeye diff <ref1> <ref2>
codeye langs
codeye doctor
codeye cache status
codeye cache clear
codeye completion bash
codeye version

Non-git directories

If the target path is not a git repository, codeye falls back to a direct directory walk for standard scans. Git-dependent analysis modes such as --blame, --history, and --hotspots still require a repository.