The code command collates the code that has been generated by refinement steps. It is applicable to a node in the proof tree for which there is an attempted proof. It uses a dialogue box to acquire a name for the file into which the code is to be written, the default response suggesting that code be held in a separate code sub-directory. Any specified sub-directory is created if it does not already exist. The code is generated in an ASCII notation inspired by Dijkstra's guarded command language.