We present an agent-based implementation of the SWAN system. SWAN is a peer-to-peer look-up system that functions by letting the participating nodes self-organise in a virtual Small World Network. We have used DIET, a lightweight ecologically inspired multi-agent platform, to implement a test application of SWAN. We describe the implementation of the test application and present experiments in which the application runs on a cluster of computers. Our results show that the system is robust to failure and shows promising scalability.