Very less amount of information is available on this topic.
See: http://agent.cs.dartmouth.edu/software/agent2.1/
for the software.
escargo 7 Apr 2005 - It looks to me like TIP #226: Interface to Save and Restore Interpreter State [L1 ] might simplfy the implementation of such agents.