I've successfully hamstrung my LLMs ability to write code. It generates a composite design spec instead, and is only allowed to refactor existing code.
Discussion
coincidentaly, I'm porting slip39 to java/clojure (8 hours and still doesn't work ðŸ˜) and let the llm refactor some of my code.
And it's capable to do very subtle changes like you need a bit shift of n times iteration and it removes that multiplication. Or you have a complex computation which needs to be xored at the end and it lefts that out. lol.
It has figured out that generic code examples are fine.