There is an article on that topic in the Bitcoin wiki: https://en.bitcoin.it/wiki/Agents.
I am deeply interested in the subject and would love to discuss the topic and brainstorm some possible implementations with like minded people on Freenode (#bitcoin-agent).