src: debug agent, work in progress