I’m probably not a lucid dreamer, but at times when I write code all day long I may also dream about it at night. Sometimes, I would wake up in the middle of the night and write an “amazing solution” down so I can implement it the next day. Not surprisingly, most of the “amazing solutions” are total nonsense.
Edit: If this happens to you, it’s probably a sign that you code way too much. I know it might be difficult, but try to relax more please.