Who it is forA maintainer or contributor who needs proof that the Swift port matches the original engine before shipping or changing it.
The problemA port of a 3D animation engine can drift from the original in small ways that are hard to spot by eye.
The outcomeThe unit tests and the differential sweep both run, reporting pass or fail on the geometry checks.
What you need first
- Xcode 16 or later with Swift 6, on a Mac
- An app targeting iOS 17+, macOS 14+, tvOS 17+, watchOS 10+ or visionOS 1+
- Node, only if you want to run Scripts/differential-sweep.sh (inferred from the README, which says the script runs the original engine under Node)
Steps
- Clone https://github.com/haplollc/ThinkingOrbs and open the folder in Terminal.
- Run
xcodebuild test -scheme ThinkingOrbs -destination "platform=iOS Simulator,name=iPhone 17 Pro"to run the golden vector tests. - Run
Scripts/differential-sweep.shto compare the Swift engine with the original engine under Node. - Read the output and note any frame that does not match.
- If you change the engine, rerun both commands before you commit.
Prompt for your agent
In the ThinkingOrbs repo (https://github.com/haplollc/ThinkingOrbs), run `xcodebuild test -scheme ThinkingOrbs -destination "platform=iOS Simulator,name=iPhone 17 Pro"` and `Scripts/differential-sweep.sh`, then report the pass or fail result for each. Verify that the sweep reports zero mismatched frames before you claim parity.
Caveat. The sweep needs the original engine running under Node and an iPhone simulator, so it will not run on a machine without them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for haplollc/ThinkingOrbs and "Run the test suite and parity sweep on the orb engine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer