How to Train Your Agent to Read and Write