Claude Code 2.0

npmjs.com

833 points by polyrand 2 days ago


simonw - 2 days ago

Something I realized about this category of tool (I call them "terminal agents" but that already doesn't work now there's an official VS Code extension for this - maybe just "coding agents" instead) is that they're actually an interesting form of general agent.

Claude Code, Codex CLI etc can effectively do anything that a human could do by typing commands into a computer.

They're incredibly dangerous to use if you don't know how to isolate them in a safe container but wow the stuff you can do with them is fascinating.

paradite - 2 days ago

Claude Code can actually do much more than just coding.

You can use it for writing, data processing, admin work, file management, etc.

I compiled a list of non-coding use cases for Claude Code here:

https://github.com/paradite/claude-code-is-all-you-need

numpad0 - 2 days ago

fyi: for chatboxes that may take CJK inputs, you MUST use "shift+enter to send" pattern. There is a reason why most multinational chat/LLM app providers always do that instead of simple enter to send even for single-line chatboxes; because plain enter to send breaks input for CJK users.

Specifically, Input Method Editors needed for CJK inputs(esp. for C and J), to convert ambiguous semi-readable forms into proper readable text, use enter to finalize after candidates were iterated with spacebar. While IME engines don't interchange between different languages, I believe basically all of them roughly follow this pattern.

Unless you specifically wants to exclude CJK users, you have to either detect presence of IME and work with it so that enter do nothing to the app unless conditions are met. Switching to shift+enter works too.

1: https://github.com/anthropics/claude-code/issues/8405

2: https://www.youtube.com/watch?v=mY6cg7w2eQU

3: https://youtu.be/sYAnawy_VoA?feature=shared&t=282

4: https://www.youtube.com/watch?v=VmoeZ_W3WXo

d4rkp4ttern - 2 days ago

The thing I’m most curious about is: There are new context management and memory features in the API —

https://www.anthropic.com/news/context-management

Anyone know if these are used in Claude-Code?

OisinMoran - a day ago

Two feature suggestions: 1. When showing a diff, indicate what function the altered lines are in (Github does this nicely) 2. There are leading spaces when copying some multiline snippets from the output and these make it harder to copy paste

sunaookami - 2 days ago

FINALLY checkpoints! All around good changes, Claude Code is IMHO the best of the LLM CLI tools.

marckrn - 2 days ago

You can find the revamped prompt on github[1], or on twitter summarized by my bot[2].

[1] https://github.com/marckrenn/cc-mvp-prompts/compare/v1.0.128...

[2] https://x.com/CCpromptChanges/status/1972709093874757976

mohsen1 - 2 days ago

Actual Changelog[1]

* New native VS Code extension

* Fresh coat of paint throughout the whole app

* /rewind a conversation to undo code changes

* /usage command to see plan limits

* Tab to toggle thinking (sticky across sessions)

* Ctrl-R to search history

* Unshipped claude config command

* Hooks: Reduced PostToolUse 'tool_use' ids were found without 'tool_result' blocks errors

* SDK: The Claude Code SDK is now the Claude Agent SDK Add subagents dynamically with --agents flag

[1] https://github.com/anthropics/claude-code/blob/main/CHANGELO...

arjie - 2 days ago

I really like these tools. Yesterday I gave it a filename for a video of my infant daughter eating which I took while I had my phone on the charger. The top of the charger slightly obscured the video.

I told it to crop the video to just her and remove the obscured portion and that I had ffmpeg and imagemagick installed and it looked at the video, found the crop dimensions, then ran ffmpeg and I had a video of her all cleaned up! Marvelous experience.

My only complaint is that sometimes I want high speed. Unfortunately Cerebras and Groq don't seem to have APIs that are compatible enough for someone to have put them into Charm Crush or anything. But I can't wait for that.

satvikpendem - 2 days ago

> New native VS Code extension

This is pretty funny while Cursor shipped their own CLI.

djha-skin - 2 days ago

I'm currently using Goose[1]. My brother in law uses Claude Code and he likes it. It makes me wonder if I'm missing anything. Can anyone tell me if there's any reason I should switch to Claude Code, or comparisons between the two?

1: https://block.github.io/goose/

stared - 2 days ago

Out of all changes I want the most is to not need to type `\ ` to make a line break.

navanchauhan - 2 days ago

You have to specify `/model sonnet[1m]` to get the 1 million context version

aeon_ai - 2 days ago

To those lamenting that the Plan with Opus/Code with Sonnet feature is not available, check the charts.

Sonnet 4.5 is beating Opus 4.1 on many benchmarks. Feels like it's a change they made not to 'remove options', but because it's currently universally better to just let Sonnet rip.

jmward01 - 2 days ago

"When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command."

So I can opt out of training, but they still save the conversation? Why can't they just not use my data when I pay for things. I am tired of paying, and then them stealing my information. Tell you what, create a free tier that harvests data as the cost of the service. If you pay, no data harvesting.

trumbitta2 - 2 days ago

The native VSCode extension has worse UX than the TUI, so I'm sticking with the TUI

j1elo - 2 days ago

Prompt: https://raw.githubusercontent.com/marckrenn/cc-mvp-prompts/r...

I've always been curious. Are tags like that one: "<system-reminder>" useful at all? Is the LLM training altered to give a special meaning to specific tags when they are found?

Can a user just write those magic tags (if they knew what they are) and alter the behavior of the LLM in a similar manner?

jarek83 - 2 days ago

I notice that thinking triggers like "Think harder" are not highlighted in the prompt anymore. Could that mean that thinking is now only a single toggle with tab (no gradation)?

cadamsdotcom - 2 days ago

Claude Code is so much better than anything else.

If Claude Code was a car it'd be the ideal practical vehicle for all kinds of uses.

If OpenAI Codex was a car, it'd be a cauldron with wheels.

The reason I say this is CC offers so many features: plan mode, hooks, escape OR ctrl-c to interrupt it, and today added quick rewind. Meanwhile Codex can't even wrap text to the width of the terminal; you can't type to it while it's working to queue up messages to steer it (you have to interrupt with Ctrl-C then type), and it doesn't show you clearly when it's editing files or what edits it's making. It's the ultimate expression of OpenAI's "the agent knows what to do, silly human" plan for the future - and I'm not here for that. I want to steer my agent, and be able to have it show me its plan before it edits anything.

I really wish the developers of Codex spent more time using Claude Code.

alecco - 2 days ago

As a burnt-out, laid-off aging developer, I want to thank Anthropic for helping me get in love with programming again. Claude Code on terminal with all my beloved *nix tools and vim rocks.

gdudeman - 2 days ago

> New native VS Code extension

Looks great, but it's kind of buggy:

- I can't figure out how to toggle thinking

- Have to click in the text box to write, not just anywhere in the Claude panel

- Have to click to reject edits

ollysb - 2 days ago

The vscode integration does feel far tighter now. The one killer feature that Cursor has over it is the ability to track changes across multiple edits. With Claude you have to either accept or reject the changes after every prompt. With Cursor you can accumulate changes until you're ready to accept. You can use git of course but it isn't anywhere near as ergonomic.

kip_ - 2 days ago

tab-completion of filenames in the directory tree is now unavailable. You'll need to use the Codex style @file to bring up an fzf style list

moomoo11 - 2 days ago

how do i revert to the previous version? I find that the "claude" command in terminal still works great, but the new native VSC extension is missing all these things (before it would launch terminal + run "claude")

I feel like there's so many bugs. The / commands for add-dir and others I used often are gone.

I logged in, it still says "Login"

nrjames - 2 days ago

I would really like for them to add the option to constantly display how much context is left before compression or a new session.

neumann - 2 days ago

I have been using code + vscode extensively for coding, but in the last few months it has been a frustrating downgrade compared to the same prompts and code being pasted into chatGPT.

Is this going to be the way forward? Switching to whichever is better at a task, code base or context?

anonymid - 2 days ago

For folks who use neovim, there's always https://github.com/dlants/magenta.nvim , which is just as good as claude code in my (very biased) opinion.

- 2 days ago
[deleted]
f311a - 2 days ago

It still bothers me that almost every agentic TUI is written in TS + React. It often consumes at least a few GB of RAM. No one bothers about it. Everybody is trying to ship as fast as possible.

Galanwe - 2 days ago

Wait, still no support for the new MCP features? How come Claude Code, from the creators of MCP, is still lacking félicitation, server logging, and progress report ?!

singularity2001 - 2 days ago

How to check the version? claude version one told me that it updated to version two but I don't know if it's true

cl --version 1.0.44 (Claude Code)

as expected … liar! ;)

cl update

Wasn't that hard sorry for bothering

pmarreck - 2 days ago

I was already using jj (jujutsu) to do my own rewinds (it saves every change to every file as an unlabeled commit, assuming you set up its daemon). Would sort of prefer to continue to do that since it's far more flexible than checkpoints

adham-omran - 2 days ago

I find the /usage command most interesting as it's giving you a % towards your limits and when they reset rather than having to note all of that down and guess when you'll hit them.

wanderer2323 - 2 days ago

Anthropic announcement: https://www.anthropic.com/news/enabling-claude-code-to-work-...

cute_boi - 2 days ago

seems like closed source obfuscated blob distributed on npm to save bandwidth cost.

andoando - 2 days ago

/rewind is a super nice addition. That was annoying the hell out of me.

aitchnyu - 2 days ago

Tangential, did anybody get FOMO about Aider and found a much better tool?

vanillax - 2 days ago

Has anyone figured out how to do claude sub agents without using claude? some sort of opensource cli with openrouter or something? I want to use subagents on differnt LLMs ( copilot,selfhost ).

mercurialsolo - 2 days ago

/rewind was a must needed upgrade for the agent.

- Need better memory management and controls (especially across multi-repos) - /upgrade needs better management

sixhobbits - 2 days ago

I haven't had time to fully play with it yet, but first impression is that it's really pretty!

oofbey - 2 days ago

Now if only `/rewind` could undo the `rm -rf ~/*` commands and other bone-headed things it tries to do on the filesystem when you're not watching!

jakozaur - 2 days ago

Just use `claude update` if you already have it. Unfortunately, they removed Plan mode, when I could use Opus for planning and Sonnect for coding.

Though I will see how this pans out.

xmpirate - 2 days ago

I wish there were an option to cancel a currently running prompt midway. Right now, pressing Ctrl+C twice ends up terminating the entire session instead.

unshavedyak - 2 days ago

I'm concerned that i don't see the "Plan with Opus, impl with Sonnet" feature with Claude 2.0.

lerchmo - 2 days ago

I see thinking can be toggled in the CLI, anyone figured out how to toggle it in the extension?

- 2 days ago
[deleted]
_betty_ - 2 days ago

VS Code plugin seems to be missing quite a number of the CLI features.

jarek83 - 2 days ago

It's first time I started get hit by "ERROR Out of memory" in CC - after about an hour of use. I'm on Mac Pro M4 Max with 128 GB RAM...

risho - 2 days ago

i really hate the fact that every single model has its own cli tool. the ux for claude code is really great, but being stuck using only anthropic models makes me not want to use it no matter how good it is.

didip - 2 days ago

wow, the new Claude Code UI looks beautiful. Good job Anthropic designers!

OddMerlin - a day ago

How is this any different from just using claude-cli? The example on the npm page is something you could easily do from within claude-cli...? Sorry, I must be missing the point on this??

postalcoder - 2 days ago

I'm disappointed that they haven't done more to make the /resume command more usable. It's still useless for all intents and purposes.

asadm - 2 days ago

ooh I like my ctrl-R in gemini cli. Good that it lands here too.

____tom____ - 2 days ago

What are they doing about the supply chain attacks on npm?

acedTrex - 2 days ago

wow its way uglier lol, and why does it default to full screen?

ph4rsikal - 2 days ago

[dead]

user3939382 - 2 days ago

I’m way ahead of anthropic and all of you on orchestration but not ready to share.

mentalgear - 2 days ago

Well I guess I'll be sticking with opencode.

athrowaway3z - 2 days ago

This is a tangent, but why is there a Jupyter notebook cell editor function and tool usage direction build into the standard context?