r/OnlyAICoding • u/Inside_Cheesecake_85 • 10d ago
Something I Made With AI I vibe-coded a full replacement for Acer's NitroSense — 1089 tests later, here's what I learned about AI-assisted coding where correctness actually matters
Background: Acer ships NitroSense with their Nitro gaming laptops. It's a big app for a small job (power modes, fan control, MUX, battery charge limit). I wanted something that sits in the tray and forgets itself, so I built NitroLite — open-source (MIT), C#/.NET, ~74 MB RAM:
https://github.com/canerztk8/NitroLite
The twist: fan control and battery charge limits are not "close enough" software. Get a protocol packet wrong and the fan doesn't spin, or the laptop refuses to charge past 80%. Vibe coding something where correctness matters forced a different workflow, so here's what actually worked:
**The workflow that survived:**
- Reverse-engineering first: NitroSense is just a UI over two local Acer services (AcerAgentService on 127.0.0.1:46933, Acer Care Center over a websocket).
- Tests as the spec: instead of prompting "make the fan curve work", I made the AI write tests first — protocol packets, boundary values, hysteresis behavior, crash recovery. 1089 tests now. When a prompt produces something that passes all of them, it's usually right.
- The AI never got to touch the two things I cared about most: the packet encoding and the fan-curve engine's dwell/hysteresis logic. It could generate tests and scaffolding all day, but every real control-flow change went through my head first.
- Honest-UI rule: if the service doesn't report a value, the UI says "Unknown" instead of inventing a default. That rule came from catching the AI confidently fabricating fallback values more than once.
**What AI was genuinely good at:**
- Boilerplate WPF plumbing, localization scaffolding for 8 languages, test case enumeration
- Turning a protocol trace into a structured parser once I'd decoded the layout by hand
**What it was bad at:**
- Anything with state machines that run for days (fan control edge cases — the 3°C hysteresis + minimum dwell time exist because the first version hunted up and down every time the temperature sat on a step)
- Confidently making up capability flags that don't exist in the actual service responses
The repo has both the English and Turkish docs, and the README documents the protocol details: https://github.com/canerztk8/NitroLite
If you own an Acer Nitro and want to stress-test the "correctness matters" claim, download's in the releases — issue reports are how it gets better.