Built to make you extraordinarily productive, Cursor is the best way to code with AI.

Painted landscape wallpaper
Cursor
import torch
import torch.nn as nn
-
from torch.utils.data import DataLoader
+
from torch.utils.data import DataLoader, random_split
-
from torchvision import datasets
+
from torchvision import datasets, transforms
+
from tqdm import tqdm
+
import yaml
+
from pathlib import Path
+
import json
-
def get_dataloaders(batch_size=64):
+
def load_config(config_path="experiments/config.yaml"):
+
  with open(config_path) as f:
+
    return yaml.safe_load(f)
+
def get_dataloaders(config):
+
  transform_list = [transforms.ToTensor()]
+
  if config['data'].get('normalize', True):

PyTorch MNIST Experiments

AGENT

I'll enhance your MNIST Trainer with a complete experimental framework, including mixed precision, validation splitting, and proper configuration management. Let me start by rewriting the training module:

train_model.py
+150 -34

Now let me update the evaluation module to save results and generate a detailed report:

evaluation.py
+1 -2
run_experiment.py
+29
AGENT

Done, a configurable MNIST experiment framework with AMP and reports.

  • Training: AMP, train/val split, cosine schedule, gradient clipping, checkpoints
  • Experimentation: YAML config, saved history, confusion matrix + classification report, CLI runner
for commands, @ for filesGPT-5

Trusted every day by millions of professional developers.

Apple logo
Microsoft logo
Amazon logo
Fastly logo
Stripe logo
OpenAI logo
Accenture logo
IBM logo
Linear logo
UNICEF logo
Autodesk logo
Datadog logo
Ford logo
Palo Alto Networks logo
Bosch logo
Dell logo
Rippling logo
Figma logo
Twilio logo
Rappi logo
Ramp logo
Adobe logo
1M+
Apps Built
25%
Of Fortune 500
27K
GitHub Stars
150K+
Developers

Agent turns ideas into code

A human-AI programmer, orders of magnitude more effective than any developer alone.

Learn about Agent
Abstract light-colored background pattern

Cursor

Analyze Tab vs Agent Usage Patterns

I'll build an analytics toolkit that highlights tab versus agent adoption and switching behavior.

summary.py

+150-0

Next I'll normalize the interaction labels and add session tagging so product can filter specific cohorts.

segmentation.py

+94-0

Time to stitch everything together with a report helper that combines the key metrics.

report.py

+40-0

I'll add tests to lock in the behaviour using a representative sample from last week's export.

test_usage.py

+90-0

All set! We now track focus share, switching rates, and rolling engagement so PMs can compare tab-first and agent-first.

Plan, search, build anything...

use Agent:GPT-5
AI-Powered Development

Build From Prompt to Production App

Describe your idea in natural language, and watch as AI transforms it into a complete, production-ready application with full backend and frontend code.

Intelligent Code Generation

AI understands context and generates production-quality code with best practices built-in

Full-Stack Integration

Complete UI components, backend APIs, and database schemas generated in one seamless flow

Iterative Refinement

Continuously improve and modify your app through natural conversation

AI Assistant
Online
Cursor
Dashboard.tsx
SupportChat.tsx
'use client';

import React, { useState } from 'react';
import Navigation from './Navigation';
import SupportChat from './SupportChat';

export default function Dashboard() {
  const [activeTab, setActiveTab] = useActiveTab('support');
  return (
    <div className="flex h-[600px] border rounded-lg overflow-hidden">
      <div className="w-80 border-l">
        <SupportChat />
      </div>
    </div>
  )
}

Magically accurate autocomplete

Our custom Tab model predicts your next action with striking speed and precision.

Everywhere software gets built

Cursor is in GitHub reviewing your PRs, a teammate in Slack, and anywhere else you work.

Learn about Cursor's ecosystem
Scenic painted background with overlapping application windows

#ask-cursor

dylan 7/16/2025

wanna be able to go to cursor.com/changelog#1.0 to see 1.0 changelog

eric 7/16/2025

checks out.

@cursor can you take a stab?

Cursor APP 7/16/2025

I implemented direct linking for changelog entries and updated Node.js version constraints.

cursor.com

GitHub Pull Request

Nice @cursor

View inreviewed 1m ago
3292-[setUseMode().keybinding]
3293+[composeOpenModeToggle.keybinding]
cursor bot1m ago

!Bug: Function Returns Object Instead of String (logic bug)

The `composeOpenModeToggle.keybinding` is a function that needs to be called to get its value. Using it directly causes the keybinding display condition to always be truthy.

Build From Prompt to Production

A complete platform to transform your ideas into production-ready applications

01

Generate Your App With AI

Describe your idea, and let AI transform it into a complete, production-ready application in seconds.

View Use Cases
02

Iterate With Pure Code

Build and refine your app using your preferred language—fast, flexible, scalable, and open source.

Get Started In Docs
03

Deploy, Host, and Scale

Deploy through cloud providers, self-host on your infrastructure, or use managed hosting solutions.

Explore Hosting Options

The new way to build software.

It was night and day from one batch to another, adoption went from single digits to over 80%. It just spread like wildfire, all the best builders were using Cursor.

Diana Hu

Diana Hu

General Partner, Y Combinator

The most useful AI tool that I currently pay for, hands down, is Cursor. It's fast, autocompletes when and where you need it to, handles brackets properly, sensible keyboard shortcuts, bring-your-own-model... everything is well put together.

shadcn

shadcn

Creator of shadcn/ui

The best LLM applications have an autonomy slider: you control how much independence to give the AI. In Cursor, you can do Tab completion, Cmd+K for targeted edits, or you can let it rip with the full autonomy agentic version.

Andrej Karpathy

Andrej Karpathy

CEO, Eureka Labs

Cursor quickly grew from hundreds to thousands of extremely enthusiastic Stripe employees. We spend more on R&D and software creation than any other undertaking, and there's significant economic outcomes when making that process more efficient and productive.

Patrick Collison

Patrick Collison

Co-Founder & CEO, Stripe

It's official. I hate vibe coding. I love Cursor tab coding. It's wild.

ThePrimeagen

ThePrimeagen

@theprimeagen

It's definitely becoming more fun to be a programmer. It's less about digging through pages and more about what you want to happen. We are at the 1% of what's possible, and it's in interactive experiences like Cursor where models like GPT-5 shine brightest.

Greg Brockman

Greg Brockman

President, OpenAI

Stay on the frontier

Access the best models

Choose between every cutting-edge model from OpenAI, Anthropic, Gemini, and xAI.

Explore models

Auto

Suggested

GPT-5

high fast

Claude Sonnet 4.5

Claude Opus 4.1

Gemini 2.5 Pro

Grok Code

Complete codebase understanding

Cursor learns how your codebase works, no matter the scale or complexity.

Learn about codebase indexing

Where are these menu label colors defined?

Gripped
Choose a model

Develop enduring software

Trusted by over half of the Fortune 500 to accelerate development, securely and at scale.

Explore enterprise
Code editor interface with syntax highlighting
Integrations

Integrate With Your Platforms

Build entire app flows using powerful integrations with your favorite tools and services

Databricks

Data Platform

Snowflake

Data Cloud

AWS

Cloud Provider

GCP

Cloud Provider

Azure

Cloud Provider

Docker

Container

Kubernetes

Orchestration

PostgreSQL

Database

MongoDB

Database

Redis

Cache

Slack

Communication

GitHub

Version Control

Cursor is an applied team focused on building the future of coding.

Cursor team members collaborating in an office.

Try Cursor now.