Cursor is an AI-native code editor built on a VS Code fork, deeply integrating AI capabilities into the coding workflow. It supports code completion, multi-line edits, natural language-driven code generation and refactoring, and offers an Agent mode that autonomously completes multi-step coding tasks. Its core mechanism involves indexing the entire codebase to give AI project context, and it supports multiple models including GPT-4o and Claude.