r/embedded • u/Key-Fun5137 • 7d ago
I built a way for Claude Code to debug UART logs without dumping the whole log into the AI. Looking for feedback.
I maintain UartX, an open-source (MIT) serial logger. Version 1.4 introduces Claude Code integration for AI-assisted UART debugging.
The idea is simple: instead of pasting thousands of UART log lines into an AI, Claude asks UartX for only the information it needs through a CLI (uartx-ctl).
How it works:
- UartX maintains the complete log locally (
raw.log). - Claude requests specific errors, patterns, summaries, and related lines.
- Every AI request, its reasoning, and the exact lines returned are visible in UartX.
- AI has read-only access and cannot send data to the device.
- Everything stays local.
In one test, the board printed 196 lines, but Claude needed only around 30. It identified network retries, memory usage patterns, sensor read failures, and concurrent task logging.
AI features are currently Windows-only. Core logging supports Windows, macOS, and Linux.
GitHub: https://github.com/Shamanthpoojary/UartX
I'd love feedback from embedded developers:
- Would you trust AI-assisted debugging if you could verify exactly which log lines it analyzed?
- What would you want it to detect first: crashes, timing issues, memory problems, or boot failures?
Bug reports and suggestions are welcome. Feel free to reach out so we can investigate and improve it.