Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

xihuai18/agentic-metric

https://github.com/xihuai18/agentic-metric · scanned 2026-06-16 01:02 UTC (2 months, 1 week ago)

42 raw signals (0 security + 42 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months, 1 week ago · v1 · 38 actionable findings from 1 signal source. 4 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 79.5/100 with 77.8% coverage. It contains 596 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 42 findings — concentrated in software (19), quality (19), cicd (2). Risk profile is low: 0 critical, 0 high, 3 medium. Recommended next step: open the software layer findings first — that's where the highest-impact wins live.

Showing 32 of 38 actionable findings. 42 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

medium System graph cicd CI/CD security conf 1.00 GitHub Action is tag-pinned rather than SHA-pinned
pypa/gh-action-pypi-publish@release/v1 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
.github/workflows/publish.yml:32 CI/CD securitySupply chainGithub actions
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/publish.yml CI/CD securitySupply chainGithub actions
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
low System graph quality Agent instructions conf 1.00 Multiple root agent instruction files without precedence
The repo has multiple top-level AI-coder instruction files. Without precedence rules, different agents may follow different policies.
Governance
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/agentic_metric/usage.py:openai_non_cached_input, src/agentic_metric/usage.py:openai_input_tokens_are_separate This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or docume…
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: src/agentic_metric/cli.py:today_cmd, src/agentic_metric/cli.py:week_cmd, src/agentic_metric/cli.py:month_cmd This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document wh…
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: src/agentic_metric/tui/widgets.py:update_data, src/agentic_metric/tui/widgets.py:update_data, src/agentic_metric/tui/widgets.py:update_data, src/agentic_metric/tui/widgets.py:update_data This is *the* AI-coder failure mode (4× more duplication in vib…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `sessions_old` in src/agentic_metric/store/database.py:193
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `sessions_old` in tests/test_store.py:110
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: action_auto_refresh_off
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:538
low System graph software Dead code conf 1.00 Possibly dead Python function: action_auto_refresh_on
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:525
low System graph software Dead code conf 1.00 Possibly dead Python function: action_next_view
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:484
low System graph software Dead code conf 1.00 Possibly dead Python function: action_noop
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:562
low System graph software Dead code conf 1.00 Possibly dead Python function: action_prev_view
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:480
low System graph software Dead code conf 1.00 Possibly dead Python function: action_show_help
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:521
low System graph software Dead code conf 1.00 Possibly dead Python function: action_show_pricing
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:508
low System graph software Dead code conf 1.00 Possibly dead Python function: cache_tokens
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:147
low System graph software Dead code conf 1.00 Possibly dead Python function: check_action
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/app.py:549
low System graph software Dead code conf 1.00 Possibly dead Python function: delete_sync_state_prefix
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/store/database.py:287
low System graph software Dead code conf 1.00 Possibly dead Python function: root_label
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:69
low System graph software Dead code conf 1.00 Possibly dead Python function: share_suffix
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:127
low System graph software Dead code conf 1.00 Possibly dead Python function: short_session_id
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:38
low System graph software Dead code conf 1.00 Possibly dead Python function: source_prefixed_path
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:82
low System graph software Dead code conf 1.00 Possibly dead Python function: source_root_label
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:74
low System graph software Dead code conf 1.00 Possibly dead Python function: sum_tokens
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:138
low System graph software Dead code conf 1.00 Possibly dead Python function: time_bucket_label
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:208
low System graph software Dead code conf 1.00 Possibly dead Python function: time_bucket_label_short
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/formatting.py:214
low System graph software Dead code conf 1.00 Possibly dead Python function: ts_to_local
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/agentic_metric/tui/widgets.py:47
low System graph quality Provenance conf 1.00 Shallow git history limits provenance confidence
The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence.
Git historyGenerated repo pattern
low System graph quality Complexity conf 1.00 Very large file: src/agentic_metric/cli.py (1593 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: tests/test_collectors.py (2224 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: tests/test_store.py (2204 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/7af4f4fb-75ea-4651-a450-b76db388753d/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/7af4f4fb-75ea-4651-a450-b76db388753d/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.