agent run basic logic