Repository Analysis

ryoppippi/ccusage

Analyze coding (agent) CLI token usage and costs from local data.

1.3 Likely human-written View on GitHub
1.3
Adjusted Score
1.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
15,223
Stars
Rust
Language
58,462
Lines of Code
271
Files
26
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 3HIGH 1MEDIUM 0LOW 22

Pattern Findings

26 matches across 3 categories. Click a row to expand file-level details.

Hallucination Indicators3 hits · 45 pts
SeverityFileLineSnippet
CRITICALrust/crates/ccusage/src/adapter/pi/parser.rs140 &entry.data.message.usage.input_tokens.to_string(),
CRITICALrust/crates/ccusage/src/adapter/pi/parser.rs141 &entry.data.message.usage.output_tokens.to_string(),
CRITICALrust/crates/ccusage/src/adapter/pi/parser.rs148 &entry.data.message.usage.cache_read_input_tokens.to_string(),
Hyper-Verbose Identifiers22 hits · 22 pts
SeverityFileLineSnippet
LOWbump.config.ts8function getUpdatedRustReleaseFiles(cwd: string): string[] {
LOWapps/ccusage/scripts/compare-pr-performance.ts174function nativePackageDirectoryName(
LOWapps/ccusage/scripts/compare-pr-performance.ts187async function installedNativePackageBinEntry(
LOWapps/ccusage/scripts/compare-pr-performance.ts343function measurementFromMilliseconds(times: number[]): CommandMeasurement {
LOWapps/ccusage/scripts/compare-pr-performance.ts497async function measureCommandPeakRssBytes(
LOWapps/ccusage/scripts/compare-pr-performance.ts581export function createCcusageCommandFromBin(
LOWapps/ccusage/scripts/compare-pr-performance.ts604function createCcusageBenchmarkCommandFromBin(
LOWapps/ccusage/scripts/compare-pr-performance.ts617export function createCcusageCommandFromRustBinary(
LOWapps/ccusage/scripts/compare-pr-performance.ts638function createCcusageBenchmarkCommandFromRustBinary(
LOWapps/ccusage/scripts/compare-pr-performance.ts655export function createCcusageCommandFromBunxPackage(
LOWapps/ccusage/scripts/compare-pr-performance.ts682function createCcusageBenchmarkCommandFromBunxPackage(
LOWapps/ccusage/scripts/compare-pr-performance.ts714async function measureCommandMilliseconds({
LOWapps/ccusage/scripts/compare-pr-performance.ts740async function measurePackageRunnerStartup({
LOWapps/ccusage/scripts/compare-pr-performance.ts788async function measurePackageRunnerWithAcquisition({
LOWapps/ccusage/scripts/compare-pr-performance.ts841async function createCcusageBenchmarkCommand(
LOWapps/ccusage/scripts/compare-pr-performance.ts898async function createHeadCcusageBenchmarkCommand(options: {
LOWapps/ccusage/scripts/compare-pr-performance.ts1241async function compareRuntimeDiagnosticCommand(
LOWapps/ccusage/scripts/compare-pr-performance.ts1305async function compareRuntimeDiagnosticSection(options: {
LOWapps/ccusage/scripts/compare-pr-performance.ts1505export function renderRuntimeDiagnosticSection(
LOWapps/ccusage/scripts/compare-pr-performance.ts1594function renderPackageRunnerComparison(
LOWapps/ccusage/scripts/ensure-native-binary.ts39async function nativePackageIncludesBinary(packageRoot: string | undefined): Promise<boolean> {
LOWapps/ccusage/src/cli.ts118function ensureNativeBinaryExecutable({
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHCONTRIBUTING.md66### Is AI-generated code banned?