Agent in Cursor CLI vs Cursor UI

Is the agent in the Cursor CLI mode essentially the same as the one in the UI agent panel? I’m not asking about extra features like skills, MCP, or commands.

I’m wondering how they compare when given a complex prompt that doesn’t need those tools. If you’re just looking at context gathering, diffing, and implementation, do they perform the same way?