Cursor Agent CLI is Cursor’s AI-powered coding assistant that provides intelligent code assistance, file operations, and browser automation. PraisonAI integrates with Cursor CLI to use it as an external agent.
--external-agent cursor invokes Cursor CLI via a manager Agent by default. The manager reasons and calls Cursor as a subagent tool. Use --external-agent-direct for pass-through proxy behavior.
# Manager delegation (default — manager reasons + calls cursor as subagent tool)praisonai "Fix the bug in auth.py" --external-agent cursor# Direct proxy (escape hatch — no manager, passes prompt straight to cursor)praisonai "Fix the bug in auth.py" --external-agent cursor --external-agent-direct# With verbose outputpraisonai "Refactor this module" --external-agent cursor --verbose
# Simple questionpraisonai "What files are in this directory?" --external-agent cursor# Code analysispraisonai "Analyze the code quality" --external-agent cursor
# Create a new chatcursor-agent create-chat# Resume specific chatcursor-agent --resume abc123 "Continue from where we left off"# Resume latest chatcursor-agent resume# List all chatscursor-agent ls