agent: remove event_writer, implement io.Writer
agent: IPC skeleton for remaining methods