On top of @Code \def:
@Code \newcommand[number-of-arguments]{\command-name} @Code { @Code %command-body @Code }