Leaderboard github.com
varun-ml/buddy
A little pet on your Mac that tells you when Claude Code or Codex needs you. 100% local.
unreviewed-ai-risk
AI provenance
100%
explicit
- Confidence
- 87%
- Coverage
- 100%
Estimated share of AI-generated code. Explicit attribution is a lower bound.
Code quality
56/100
weak
- Confidence
- 90%
- Coverage
- 100%
Complexity, duplication, lint density, tests, CI, docs and review process.
Security
86/100
strong
- Confidence
- 85%
- Coverage
- 100%
Secrets, static analysis, vulnerable dependencies, CI and supply-chain posture.
AI provenance
100% explicit
Explicit AI attribution on 100% of first-party code added; an estimated 100% including velocity signals.
How the score is built
- Explicitly attributed share100%
- Unattributed share in AI-pace bursts0%
- Estimated AI-generated share100%
- AI tool configuration files0
- Work sessions at AI pace1
- Releases at AI pace0
- Coding-style index (1.0+ means possible)6.68
Attributed AI tools
| Tool | Commits | Lines added | First seen | Last seen |
|---|---|---|---|---|
| Claude Code | 68 | 15,819 | 2026-10-07 | 2026-11-02 |
Lines added per month all AI-attributed share
- 2026-1015,671 · 100% AI
- 2026-11148 · 100% AI
Findings in AI-attributed lines vs the rest
From git blame: 10,397 lines trace to AI-attributed commits, 0 to others. Too few lines in one group for a fair comparison. Reported, not scored.
| Findings per 1,000 lines | AI-attributed | Other | Ratio |
|---|---|---|---|
| Code quality | 2.02 | — | — |
| Security | 1.06 | — | — |
Evidence by analyzer
Explicit AI attributionok26 items
- Claude Code: 68 attributed commits, 15,819 lines added
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- attributed_commit_share
- 100.0%
- attributed_commits
- 68
- attributed_loc
- 15,819
- attributed_loc_share
- 100.0%
- commits
- 68
- effective_loc
- 15,819
- tools_detected
- 1
AI tool configurationok
- artifacts
- 0
- tools_configured
- 0
- workflow_agents
- 0
Commit velocityok1 item
- excluded_import_loc
- 8,352
- flagged_loc
- 1,705
- flagged_loc_share
- 22.8%
- flagged_units
- 1
- max_loc_per_hour
- 1,654.89
- measured_loc
- 7,467
- median_loc_per_hour
- 49.43
- pr_timed_units
- 52
- pre_ai_era_burst_loc
- 0
- pre_ai_era_bursts
- 0
- pre_ai_era_measured_loc
- 0
- work_units
- 55
Release velocityok
- flagged_releases
- 0
- max_loc_per_day
- 1,367.20
- releases
- 4
Coding styleok
- count:assistant_voice
- 0
- count:emoji_in_code
- 139
- count:narrated_steps
- 0
- count:placeholder
- 0
- files:assistant_voice
- 0
- files:emoji_in_code
- 26
- files:narrated_steps
- 0
- files:placeholder
- 0
- index
- 6.68
- lines_scanned
- 10,397
- per_kloc:assistant_voice
- 0
- per_kloc:emoji_in_code
- 13.37
- per_kloc:narrated_steps
- 0
- per_kloc:placeholder
- 0
Findings in AI-written linesok
- ai_lines
- 10,397
- blame_failures
- 0
- files_blamed
- 51
- other_lines
- 0
- quality:ai_findings
- 21
- quality:ai_per_kloc
- 2.02
- quality:other_findings
- 0
- security:ai_findings
- 11
- security:ai_per_kloc
- 1.06
- security:other_findings
- 0
Code quality
56 weak
Code quality is weak: test-to-source ratio 0.02, no CI test run detected; 36% of function code in complex or long functions; 0% duplicated lines. Weakest area: complexity.
How the score is built
- Complexity34
- Duplication98
- Lint and smells58
- Tests and CI42
- Documentation80
- Type safety40
- Review processnot measured
Evidence by analyzer
Complexity (lizard)ok10 items
- body in Sources/Pet.swift: complexity 133, 152 lines
- wander in Sources/Window.swift: complexity 60, 80 lines
- ninjaAvatar in Sources/BuddyNinja.swift: complexity 53, 117 lines
- lifeNudge in Sources/Life.swift: complexity 49, 62 lines
- robotAvatar in Sources/BuddyRobot.swift: complexity 45, 83 lines
- wizardAvatar in Sources/BuddyWizard.swift: complexity 43, 121 lines
- googleSelftest in Sources/GoogleSelftest.swift: complexity 41, 108 lines
- say in Sources/Model.swift: complexity 41, 27 lines
- main in beat.py: complexity 39, 73 lines
- chemistAvatar in Sources/BuddyChemist.swift: complexity 35, 111 lines
- complex_functions
- 45
- function_nloc
- 7,279
- functions
- 682
- long_functions
- 9
- many_param_functions
- 1
- mean_ccn
- 4.85
- p90_ccn
- 11
- risky_nloc_share
- 36.1%
Duplication (jscpd)ok2 items
- 6+ duplicated lines: Sources/Glass.swift:138 and Sources/Ink.swift:159
- 6+ duplicated lines: Sources/main.swift:254 and Sources/main.swift:274
- compared_lines
- 8,215
- duplicated_lines
- 24
- duplicated_share
- 0.3%
- files
- 51
Lintok
- category:best-practice
- 21
- findings
- 21
- scanned_lines
- 10,397
- weighted_findings
- 23
Tests and CIok1 item
- CI config: .github/workflows/ci.yml
.github/workflows/ci.yml
- check:ci_present
- yes
- check:ci_runs_lint
- no
- check:ci_runs_tests
- no
- check:has_tests
- yes
- check:test_ratio
- no
- check:tests_cochange
- no
- ci_files
- 1
- cochange_commits
- 64
- cochange_share
- 15.6%
- source_lines
- 10,397
- test_lines
- 215
- test_ratio
- 0.02
Documentationok3 items
- README.md
README.md - LICENSE
LICENSE - CONTRIBUTING.md
CONTRIBUTING.md
- check:changelog
- no
- check:contributing
- yes
- check:license
- yes
- check:readme
- yes
- readme_lines
- 166
Type safetyok
- check:low_escape_density
- yes
- check:strict_config
- no
- escapes
- 0
- escapes_per_kloc
- 0
Security
86 strong
Security posture is strong: 7 high-severity SAST findings. Weakest area: posture.
How the score is built
- Secrets100
- Static analysis (SAST)75
- Vulnerable dependenciesnot measured
- CI workflows94
- Security posture60
- OpenSSF Scorecardnot measured
Evidence by analyzer
OpenSSF Scorecardskipped
no published OpenSSF Scorecard result for this repo
Package registriesskipped
no registry dependencies declared
Secrets (gitleaks)ok
- secrets_current
- 0
- secrets_history
- 0
- secrets_low_confidence
- 0
- secrets_nonprod
- 0
Static analysis (opengrep)ok
- findings
- 12
- findings_high
- 7
- findings_low
- 0
- findings_medium
- 5
- parse_errors
- 5
- scanned_lines
- 10,397
- weighted_findings
- 8.60
Dependencies (osv-scanner)skipped
CI workflows (zizmor)ok
- findings
- 2
- findings_high
- 0
- findings_low
- 0
- findings_medium
- 2
- penalty
- 3.60
- workflows
- 1
Security postureok1 item
- Security policy: SECURITY.md
SECURITY.md
- check:dependency_updates
- no
- check:lockfiles
- yes
- check:security_policy
- yes
- check:signed_commits
- yes
- signed_commit_share
- 79.4%
- unpinned_manifests
- 0
Release downloadsok
- binary_assets
- 0
- signals
- 0
- suspicious
- 0
Findings
8 high27 medium
| Severity | Rule | Location | Message | Tool |
|---|---|---|---|---|
| high | opengrep/python.lang.best-practice.arbitrary-sleep |
phone.py:271 | time.sleep() call; did you mean to leave this in? | Lint |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit |
beat.py:133 | Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external... | Static analysis (opengrep) |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit |
beat.py:147 | Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external... | Static analysis (opengrep) |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-tainted-env-args |
beat.py:147 | Detected subprocess function 'run' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.quote()'. [confidence medium] | Static analysis (opengrep) |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit |
beat.py:349 | Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external... | Static analysis (opengrep) |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-tainted-env-args |
beat.py:349 | Detected subprocess function 'Popen' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.quote()'. [confidence medium] | Static analysis (opengrep) |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit |
buddy-cli:22 | Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external... | Static analysis (opengrep) |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit |
phone.py:39 | Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external... | Static analysis (opengrep) |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:106 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:161 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:165 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:226 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:233 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:300 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:345 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:364 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:383 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.hardcoded-tmp-path |
beat.py:396 | Detected hardcoded temp directory. Consider using 'tempfile.TemporaryFile' instead. | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
beat.py:396 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:139 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:156 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:169 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:219 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:268 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:281 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:31 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:33 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
phone.py:336 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:5 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/artipacked |
.github/workflows/ci.yml:8 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| medium | opengrep/swift.lang.crypto.insecure-random |
Sources/Model.swift:521 | A random number generator was detected which is **not** *guaranteed* to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the... | Static analysis (opengrep) |
| medium | opengrep/swift.lang.crypto.insecure-random |
Sources/Model.swift:529 | A random number generator was detected which is **not** *guaranteed* to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the... | Static analysis (opengrep) |
| medium | opengrep/swift.lang.crypto.insecure-random |
Sources/Window.swift:497 | A random number generator was detected which is **not** *guaranteed* to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the... | Static analysis (opengrep) |
| medium | opengrep/swift.lang.crypto.insecure-random |
Sources/Window.swift:535 | A random number generator was detected which is **not** *guaranteed* to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the... | Static analysis (opengrep) |
| medium | opengrep/swift.lang.crypto.insecure-random |
Sources/Window.swift:547 | A random number generator was detected which is **not** *guaranteed* to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the... | Static analysis (opengrep) |
Tools and coverage
Every analyzer that ran on this commit. A failed or skipped tool is a coverage gap: its share of the score is left out and the coverage figure drops.
| Analyzer | Pillar | Status | Version | Findings | Note |
|---|---|---|---|---|---|
| AI tool configuration | AI provenance | ok | signatures-v1 | 0 | |
| Explicit AI attribution | AI provenance | ok | signatures-v1 | 0 | |
| Release velocity | AI provenance | ok | prov-4 | 0 | |
| Coding style | AI provenance | ok | — | 0 | |
| Commit velocity | AI provenance | ok | prov-4 | 0 | |
| Findings in AI-written lines | AI provenance | ok | git-blame | 0 | |
| Complexity (lizard) | Code quality | ok | lizard 1.25.1 | 0 | |
| Documentation | Code quality | ok | — | 0 | |
| Duplication (jscpd) | Code quality | ok | repotrust-dup-w6 | 0 | |
| Lint | Code quality | ok | opengrep 1.33.1; rules f1d2b562b414 | 21 | |
| Tests and CI | Code quality | ok | — | 0 | |
| Type safety | Code quality | ok | — | 0 | |
| CI workflows (zizmor) | Security | ok | zizmor 1.32.0 | 2 | |
| Dependencies (osv-scanner) | Security | skipped | — | 0 | |
| Release downloads | Security | ok | — | 0 | |
| Security posture | Security | ok | — | 0 | |
| Package registries | Security | skipped | — | 0 | no registry dependencies declared |
| Static analysis (opengrep) | Security | ok | opengrep 1.33.1; rules f1d2b562b414 | 12 | |
| OpenSSF Scorecard | Security | skipped | — | 0 | no published OpenSSF Scorecard result for this repo |
| Secrets (gitleaks) | Security | ok | gitleaks 8.30.1 | 0 |
Score history
Scores from different scoring versions aren't directly comparable.
| Scored | Commit | Scoring | AI provenance | Quality | Security |
|---|---|---|---|---|---|
| 2026-11-14 | 24a42083e475 | prov-5+qual-2+sec-2 | 100% | 56 | 86 |
| 2026-11-14 | 24a42083e475 | prov-4+qual-2+sec-2 | 100% | 56 | 86 |
Full text report
- Repository: https://github.com/varun-ml/buddy
- Commit:
24a42083e475676a74ef0611c91e151201d96d25 - Generated: 2026-11-14T14:52:08+00:00
- Scorer 0.1.0, scoring prov-5+qual-2+sec-2, report schema v2
Scores
Unreviewed AI code risk: a large share of this code is explicitly AI-attributed, and its tests or review process are weak while quality or security scores are low.
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 100 | explicit | 87% | 100% |
| Code quality | 56 | weak | 90% | 100% |
| Security | 86 | strong | 85% | 100% |
AI provenance
Explicit AI attribution on 100% of first-party code added; an estimated 100% including velocity signals.
- Explicitly attributed share (lower bound): 100.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 100.0%
| AI tool | Attributed commits | Lines added |
|---|---|---|
| Claude Code | 68 | 15,819 |
Current source lines last changed by AI-attributed commits: 10,397 of 10,397.
Too few lines in one group to compare finding densities.
- Stylometry index: 6.68 per 1,000 lines (narrated steps 0, placeholders 0, assistant phrasing 0, emoji 139). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2026-10 | 15,671 | 100% |
| 2026-11 | 148 | 100% |
Evidence
- Claude Code: trailer 'Co-authored-by: Claude' (24a42083e475)
- Claude Code: trailer 'Co-authored-by: Claude' (1539cf385ea8)
- Claude Code: trailer 'Co-authored-by: Claude' (f85ab0141b23)
- Claude Code: trailer 'Co-authored-by: Claude' (eb75dca2a67c)
- Claude Code: trailer 'Co-authored-by: Claude' (437d2c3667aa)
- Claude Code: trailer 'Co-authored-by: Claude' (ffd16c3f0d6f)
- Claude Code: trailer 'Co-authored-by: Claude' (deb2f853a516)
- Claude Code: trailer 'Co-authored-by: Claude' (72f6fef7bad6)
- Claude Code: trailer 'Co-authored-by: Claude' (b34fd979f6e5)
- Claude Code: trailer 'Co-authored-by: Claude' (101f10a7c62e)
- Claude Code: trailer 'Co-authored-by: Claude' (ea893f6e6006)
- Claude Code: trailer 'Co-authored-by: Claude' (2c1b4763bd80)
- Claude Code: trailer 'Co-authored-by: Claude' (9ae54330c517)
- Claude Code: trailer 'Co-authored-by: Claude' (271f60060076)
- Claude Code: trailer 'Co-authored-by: Claude' (dd9fd8a4d09e)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is weak: test-to-source ratio 0.02, no CI test run detected; 36% of function code in complex or long functions; 0% duplicated lines. Weakest area: complexity.
| Area | Score |
|---|---|
| Complexity (lizard) | 34 |
| Duplication | 98 |
| Code smells (Opengrep) | 58 |
| Tests and CI | 42 |
| Documentation | 80 |
| Type safety | 40 |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 682; mean complexity 4.8, 90th percentile 11; 45 complex and 9 long functions
- Duplicated lines: 0.3% of 8,215 compared
- Tests: 215 test lines for 10,397 source lines (ratio 0.02); CI test commands: none detected; 16% of recent source commits also change tests
- Docs missing or thin: changelog
Most complex functions:
- body in Sources/Pet.swift: complexity 133, 152 lines
- wander in Sources/Window.swift: complexity 60, 80 lines
- ninjaAvatar in Sources/BuddyNinja.swift: complexity 53, 117 lines
- lifeNudge in Sources/Life.swift: complexity 49, 62 lines
- robotAvatar in Sources/BuddyRobot.swift: complexity 45, 83 lines
Security
Security posture is strong: 7 high-severity SAST findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 75 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | 94 |
| Posture (policy, updates, signing, lockfiles) | 60 |
| OpenSSF Scorecard | n/a |
- Posture checks passed: security policy, signed commits, lockfiles; missing: dependency updates
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
beat.py:133 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
beat.py:147 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-tainted-env-args: Detected subprocess function 'run' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.quote()'. [confidence medium] |
beat.py:147 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
beat.py:349 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-tainted-env-args: Detected subprocess function 'Popen' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.quote()'. [confidence medium] |
beat.py:349 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
buddy-cli:22 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
phone.py:39 |
| medium | opengrep/swift.lang.crypto.insecure-random: A random number generator was detected which is not guaranteed to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the SecCopyRandomBytes API explicitly. [confidence low] |
Sources/Model.swift:521 |
| medium | opengrep/swift.lang.crypto.insecure-random: A random number generator was detected which is not guaranteed to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the SecCopyRandomBytes API explicitly. [confidence low] |
Sources/Model.swift:529 |
| medium | opengrep/swift.lang.crypto.insecure-random: A random number generator was detected which is not guaranteed to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the SecCopyRandomBytes API explicitly. [confidence low] |
Sources/Window.swift:497 |
| medium | opengrep/swift.lang.crypto.insecure-random: A random number generator was detected which is not guaranteed to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the SecCopyRandomBytes API explicitly. [confidence low] |
Sources/Window.swift:535 |
| medium | opengrep/swift.lang.crypto.insecure-random: A random number generator was detected which is not guaranteed to be Cryptographically secure. If the source of entropy is used for security purposes (e.g. with other Cryptographic operations), make sure to use the SecCopyRandomBytes API explicitly. [confidence low] |
Sources/Window.swift:547 |
| medium | zizmor/artipacked: credential persistence through GitHub Actions artifacts [confidence low] |
.github/workflows/ci.yml:8 |
| medium | zizmor/excessive-permissions: overly broad permissions [confidence medium] |
.github/workflows/ci.yml:5 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 10,397; test lines: 215
| Language | Lines |
|---|---|
| Swift | 8,146 |
| Kotlin | 1,311 |
| Python | 999 |
| Shell | 156 |