Code Smarter, Not Harder: Developing with Cursor and Claude Sonnet
Cursor is an AI-powered code editor that enhances software development by integrating with the Claude Sonnet 3.5 model, allowing users to generate code and reference various sources for context.
Read original articleCursor is a code editor designed to enhance the software development process by leveraging AI for code generation. It is based on the familiar layout of VSCode and integrates with the Claude Sonnet 3.5 model from Anthropic, which aids in writing code efficiently. Users can interact with the AI through keyboard shortcuts, such as CTRL/CMD + L to chat and CTRL/CMD + K to generate code based on prompts. Cursor allows referencing various sources for context, including files, code sections, web searches, and documentation, which improves the relevance of generated code. A notable feature in beta is the composer mode, enabling users to create multi-step interactions with the AI for more complex coding tasks. The author shares their experience of using Cursor to develop a Next.js application that visualizes stock market data, demonstrating the tool's capabilities in real-world scenarios. Overall, the author expresses enthusiasm for Cursor's potential to transform software development and looks forward to future enhancements.
- Cursor is an AI-powered code editor that enhances development efficiency.
- It integrates with the Claude Sonnet 3.5 model for code generation.
- Users can reference various sources for context to improve code accuracy.
- The composer mode allows for multi-step interactions with the AI for complex tasks.
- The author successfully created a Next.js app using Cursor, showcasing its practical applications.
Related
Ask HN: Am I using AI wrong for code?
The author is concerned about underutilizing AI tools for coding, primarily using Claude for brainstorming and small code snippets, while seeking recommendations for tools that enhance coding productivity and collaboration.
Up to 90% of my code is now generated by AI
A senior full-stack developer discusses the transformative impact of generative AI on programming, emphasizing the importance of creativity, continuous learning, and responsible integration of AI tools in coding practices.
Cursor – The AI Code Editor
Cursor is an AI-powered code editor that enhances developer productivity through predictive editing, natural language coding, and a focus on privacy, receiving positive feedback for its efficiency and user experience.
Open-source analytics dashboard for Cursor IDE – CursorLens
Cursor Lens is an open-source tool that enhances AI-assisted coding by logging interactions, providing analytics, and supporting multiple AI providers. It features real-time monitoring, cost estimation, and is built with Next.js.
An open source Claude Artifacts – generate small apps with one prompt
Llama Coder is an open-source tool that generates small applications from a single prompt using the Llama 3 405B model, aiming to assist developers in rapid application development with future enhancements planned.
Those of us who've been copying and pasting LLM-generated code back and forth from ChatGPT and Claude.ai for the past year had figured this out already, so Cursor wasn't a huge surprise for us.
For a lot of people Cursor is the first time they've really appreciated how good this stuff has got - so it's getting a massive amount of buzz, much of which should really be credited to Claude 3.5 Sonnet.
(Cursor have done an excellent job designing editor features on top of that model and deserve credit for that, I'm just a bit tickled at some of the excitement which basically boils down to "Huh, LLMs can write good code now".)
I really want to code with voice to text via LLM. Why am I typing any code with my hands these days?
Mind you, I am coming on board from a very particular station: I am a UX designer and developer, and bouncing between Figma and our HTML/CSS/Templ template stack back and forth all day. So I am writing markup more so than code.
And after a few days of using Cursor, I’m very into it. Partly because the default color scheme and layout just feels better than any theme I’ve used in VSCode. But more so, I really like their approach to the actual UI design of the autocompletes and access to AI features. They’re making a lot of smart choices that make it easier to understand what the autocomplete is actually completing, and exposing contextual keyboard shortcuts to access more features.
It also seems to be better at picking up my UI patterns than VSCode. Maybe. I need to get some more time with it, but it really seems to pick up the typographic and spacing rhythms and patterns I’m building.
I'm aware of open source alternatives like Avante.nvim [1]. I mean official support from the folks at Anysphere/Cursor, Codeium, Poolside, etc.
It's actually a nice tool but I'm getting a "you should be a unicorn to fork ~Chrome~ VS Code" vibe.
But that should be no surprise. After all, LLMs simply complete the next token in a long sequence of text based on some probability outcome. A lot of the code is a sequence of patterns. So the LLM should be able to do well.
I feel that true coding agents are perhaps around the corner, but it seems to me that we are a couple of innovations away before this happens.
However, even with coding agents, there will be simply more people producing a lot more code (even non developers) which I believe will drive the demand for higher quality code or at least code that can be understood and proved by other humans. Thus, coding agents are just force-multipliers. Great developers will become greater. I wrote something about this here if you are interested: go.cbk.ai/divide. My $0.02.
I run aider in a terminal, and separately review and manually code in VSCode. Usint the `--no-auto-commits` switch means that I can immediately view the diffs in the nice VSCode diff view and it's very easy to do hybrid manual and AI coding. There are plenty of handy settings (see /help), for example you can /ask questions about your code.
`aider --no-auto-commits --cache-prompts --no-stream --cache-keepalive-pings 6 --no-suggest-shell-commands`
Related
Ask HN: Am I using AI wrong for code?
The author is concerned about underutilizing AI tools for coding, primarily using Claude for brainstorming and small code snippets, while seeking recommendations for tools that enhance coding productivity and collaboration.
Up to 90% of my code is now generated by AI
A senior full-stack developer discusses the transformative impact of generative AI on programming, emphasizing the importance of creativity, continuous learning, and responsible integration of AI tools in coding practices.
Cursor – The AI Code Editor
Cursor is an AI-powered code editor that enhances developer productivity through predictive editing, natural language coding, and a focus on privacy, receiving positive feedback for its efficiency and user experience.
Open-source analytics dashboard for Cursor IDE – CursorLens
Cursor Lens is an open-source tool that enhances AI-assisted coding by logging interactions, providing analytics, and supporting multiple AI providers. It features real-time monitoring, cost estimation, and is built with Next.js.
An open source Claude Artifacts – generate small apps with one prompt
Llama Coder is an open-source tool that generates small applications from a single prompt using the Llama 3 405B model, aiming to assist developers in rapid application development with future enhancements planned.