Debugging Main Agent