You can't write code in the Codex App, it's not an editor. You just manage agents (and ask them to write/implement whatever)