demo code for omniagent system