A mobile agent may be provided for collaborative content control in
peer-to-peer networks. A peer may launch a mobile agent including an
itinerary of peers to be visited and indications of one or more documents
that the peers are collaboratively editing. The mobile agent may visit
peers indicated by the itinerary to collect version information for the
document(s). The mobile agent may return the version information to the
initiating peer, which may coordinate each of the document(s) on the peer
to a most recent version in accordance with the version information
provided by the mobile agent. Visited peers may use the payload to
determine if their version of the document(s) are up to date and, if not,
may add a version update request to the payload. The initiating peer may
send the most recent version information to peers that added version
update requests to the payload.