NEW: Allow clicking on agents to edit their code.