Repository navigation
Add AGENTS.md for coding agents - #21
Merged
Merged
Conversation
Records that CI on macos-latest is the only way to compile this, how to confirm XCTest actually ran, the four pbxproj entries every new file needs, and why Shimmer3Protocol cannot be unit tested. Docs only. No build or source files are touched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
JongChern
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
AGENTS.md, matching the repos that already carry one.CLAUDE.mdis a one-line@AGENTS.mdimport so Claude Code reads the same file without duplicating it.Docs only; no build or source files are touched.
What it records
CI is the only way to compile this repo. Most of the team is on Windows — no Swift toolchain, no Xcode — so nothing here builds locally.
swift.ymlrunsxcodebuild test -scheme ShimmerBluetoothTestsonmacos-latest. A PR's first CI run is the first execution of the code, andAGENTS.mdsays to state that rather than imply a change has been tested.It also records how to confirm the tests actually ran: the workflow step is named "Build", which is misleading, so look for
** TEST SUCCEEDED **and per-casepassedlines ingh run view <id> --log. A green check alone does not prove execution.Adding a file needs four hand-written
project.pbxprojentries.objectVersion = 56means classic groups rather than synchronized folders, so a new source file needsPBXBuildFile,PBXFileReference, thePBXGroupchild and the target'sPBXSourcesBuildPhase. Miss one and CI reports it as an unrelated symbol error.Shimmer3Protocolcannot be unit tested. Its initialiser takes a concreteBleByteRadio, which needs a liveCBPeripheral, so no test can construct it and none does —ShimmerBluetoothTestscovers the sensor classes and utilities instead. Anything wired insideShimmer3Protocolis untestable until that initialiser accepts aByteCommunicationabstraction. Documented so it is a known constraint rather than something each person rediscovers; changing the initialiser would be a real improvement, and is not in this PR.Which Swift repo is which.
Shimmer-Swift-APIandShimmerSwiftAPIare private and stale (2024-05 and 2023-10). This is the live one.Sibling implementations. This is the fifth native implementation of the wire format. A parsing, protocol, calibration or timestamp fix here almost always applies to the Java, C#, Python and TypeScript APIs — DEV-1023 was the same rule wrong the same way in four of them.
🤖 Generated with Claude Code