zackelia/bclm
52.9
Adequate · 15 November 2026
903
lines of production code
Swift
primary language
5
measurements over time
What this system is
This system is a macOS utility named BCLM that manages battery charge limits by reading and writing SMC keys. It supports architecture-specific constraints for x86\_64 and Apple Silicon Macs and provides commands to persist these settings across reboots via a LaunchDaemon. The project includes integration tests to verify command functionality and argument parsing capabilities.
Features
Introduce BCLM utility with persistent charge-limit control
The Sources directory now contains the BCLM (Battery Charge Level Max) utility, replacing the previous placeholder. This tool allows users to read and write battery charge limits via SMC keys, with architecture-specific behavior: x86\_64 Macs accept values between 50–100, while Apple Silicon Macs accept only 80 or 100. The utility adds \persist\ and \unpersist\ subcommands to manage a LaunchDaemon plist, ensuring the charge limit is restored after reboots. It also handles missing keys gracefully on USB-C Macs by ignoring non-existent BFCL keys during writes.
Sources · high confidence
Test coverage
Added integration tests for bclm read, write, persist, and unpersist commands
The test suite now includes comprehensive functional tests for the bclm tool. These tests verify that reading and writing BCLM values works correctly, including validation of invalid inputs (0, 101, and 79 on Apple Silicon). Additionally, the suite tests the persist and unpersist functionality, ensuring that the launch daemon plist is correctly created, removed, and detected via launchctl, while also handling edge cases like double-persisting or double-unpersisting.
Tests · high confidence
Dependencies
Add swift-argument-parser dependency
The project now includes the swift-argument-parser library (version 0.1.0) as a dependency, enabling command-line argument parsing capabilities for the bclm target.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 53 → 53 (-0.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 98 → 95 (-3.0)
- Architecture 69 → 69 (+0.0)
- Maturity 54 → 54 (+0.0)
- Readiness 36 → 36 (+0.0)
- Security 95 → 95 (+0.0)
New (3)
- Edited copies of one member (3 members, 7+ corresponding lines) (Sources/bclm/SMC.swift)
- Edited copy of a member (10 corresponding lines) (Sources/bclm/SMC.swift)
- Edited copy of a member (19 corresponding lines) (Sources/bclm/main.swift)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
zackelia/bclm was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit ae2c209614755d81bf5b788513dba1d44280a6f6 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.