Skip to content
CAI
Software that uses CAICheck a score

zackelia/bclm

49.0

Weak · 1 October 2026

903

lines of production code

Swift

primary language

2

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

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 watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 55 → 49 (-5.8)
  • Rubric changed (rubric-2026.09.11 → rubric-2026.09.18) — scores are not directly comparable.

Lenses

  • Code Health 98 → 98 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 39 → 39 (+0.0)
  • Readiness 52 → 36 (-15.9)
  • Security 95 → 95 (+0.0)

New (5)

  • Coverage not measured — Swift suite
  • Dependency hygiene PARTLY measured — SwiftPM pinning read, dependency currency NOT established
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • No Package.resolved committed (Package.swift)

Written by watchdog.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 1 October 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.09.18 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-e569280dd5e2.