You need a laptop that has no camera, mic, keyboard, or any type of input. No display, speakers, or any type of output. No Bluetooth, wifi, or any way to join a different network.
If you want to go that far, there are industrial linux devices that can do that. You can have them run off a USB stick or SD card where it boots, runs some workflow, and then turns off all without keyboard / display / camera / mic / bluetooth / wifi / speakers etc. etc.
But you will need to have them join a network to access AI models that are useful enough for coding, unless you are willing to build a GPU cluster.
If you want to go that far, there are industrial linux devices that can do that. You can have them run off a USB stick or SD card where it boots, runs some workflow, and then turns off all without keyboard / display / camera / mic / bluetooth / wifi / speakers etc. etc.
But you will need to have them join a network to access AI models that are useful enough for coding, unless you are willing to build a GPU cluster.