Reduce agent memory, fix typo, rearrange agent attributes