{
  "api_version": "1.0.0",
  "slug": "hardsid4u-usb-protocol-claude",
  "url": "https://reversedwithai.com/p/hardsid4u-usb-protocol-claude",
  "markdown_url": "https://reversedwithai.com/p/hardsid4u-usb-protocol-claude.md",
  "json_url": "https://reversedwithai.com/p/hardsid4u-usb-protocol-claude.json",
  "title": "Worked out the USB protocol of a discontinued HardSID 4U SID-chip box and made it playable from a DAW, with Claude",
  "tagline": "A Windows-only SID chip box, now playable from macOS and Linux.",
  "summary": "Claude analysed the vendor driver and USB captures to document the protocol of a 2008 USB box holding real C64 sound chips, now played from macOS and Linux.",
  "target": {
    "name": "HardSID 4U (USB SID-chip box, 2008)",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "USB, macOS / Linux",
  "models": [
    "Claude"
  ],
  "tools": [
    "libusb",
    "Python"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "Per Thulin",
    "url": "https://github.com/pjthulin"
  },
  "sources": {
    "repository": "https://github.com/pjthulin/hardsid4u",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/pjthulin/hardsid4u"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/hardsid4u-usb-protocol-claude.webp",
    "credit": "Image: GitHub (pjthulin/hardsid4u)"
  },
  "commit_history": {
    "commits": 11,
    "ai_commits": 2,
    "ai_days": 2,
    "first_ai_commit": "2026-09-04",
    "last_ai_commit": "2026-09-05",
    "credited_models": [
      {
        "name": "Claude Opus 4.8",
        "commits": 2
      }
    ]
  },
  "added_at": "2026-10-15T04:13:30.452086+00:00",
  "updated_at": "2026-10-15T04:13:30.452086+00:00",
  "sources_reviewed_at": "2026-10-15T04:13:30.452086+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "Per Thulin owns a HardSID 4U, a 2008 USB box that holds up to four real Commodore 64 SID sound chips. It shipped with a Windows-only driver and no published protocol. Thulin had Claude reverse engineer the protocol, and the repo now plays the chips from macOS and Linux, including as a MIDI instrument. The README gives no date.\n\nThulin supplied the device, the vendor files and USB captures. By Thulin's account Claude did the binary analysis, formed and discarded hypotheses, wrote the probe scripts, and wrote the library and docs, running experiments against Thulin's own hardware. The AI commit census counts 2 of 11 commits with AI credit (Claude Opus 4.8), on 4 and 5 September 2026. Static analysis of the packed driver got the wire format right but the state machine wrong several times. What broke the deadlock was capturing the real driver on the wire. One finding is that 0xFFFF, long treated as padding, is an escape prefix that can stall the device. The author records each wrong theory in the docs.\n\nThe result is a Python library over libusb that plays a note on a power-cycled device, plus a MIDI instrument that opens a virtual CoreMIDI destination for a DAW such as Ableton or Cubase. A note-on is one bulk write at 0.8 ms median. It was endurance tested for six hours across two chips.\n\nYou need a HardSID 4U with real SID chips fitted, and macOS or Linux. Run uv run --with libusb1 src/hardsid4u/hs4u.py --chip 0 --hz 440 to play a note, or uv sync --extra midi and then uv run hardsid4u-midi for the instrument.\n\nSources:\n- https://github.com/pjthulin/hardsid4u",
  "ai_use_excerpts": null
}
