14 ms·
Claude Code SDK
- andrewstuart 1y agoClaude has been left in the dust by Gemini with its million token session and ability to upload a zip file of my entire code base.
- barefootford 1y agoand then get the honor of copy and pasting all of the changes afterward?
- andrewstuart 1y ago“Make me a bash script which creates all the files using heredoc” Works for a reasonable chunk of files say 5 to 10 that aren’t too big. No doubt they’ll get to better file access. Anyhow I’m quite happy to do the copy and paste because Geminis coding and debugging capability is far better than Claude.
- danenania 1y agoYou can try my project Plandex[1] to use Gemini in a way that's comparable to Claude Code without copy-pasting. By default, it combines models from the major providers—Anthropic, OpenAI, and Google. The default planning/coding models are still Sonnet 3.7 for context size under 200k, but you can switch to Gemini with `\set-model gemini-preview`. 1 - https://github.com/plandex-ai/plandex https://github.com/plandex-ai/plandex
- dimitri-vs 1y agoCursor with gemini-2.5 MAX and agentic mode. I really like the idea of Claude Code but its rare that I fully spec out a feature on my first request and I can't see how it can be used for frontend features that require a lot of browser-centric iteration/debugging to get right.
- termin3 1y agoI'm using this https://github.com/coffeegrind123/gemini-code https://github.com/coffeegrind123/gemini-code to use Claude Code with Gemini and it's working perfectly
- mickeyp 1y agoI'm building a browser based tool that runs on your computer, with full tool access of course, that works with all the major models and is far better and more ergonomic to use than code, codex, etc. If you (or anyone else reading this) wants to try out the upcoming beta give me a ping. (see profile.)
- Sajarin 1y agoI wonder if anyone has done an analysis on the HN user sentiment on the varying AI models over time. I'd be curious to see what that looks like. Increasingly, I'm seeing more and more people talk positively about Gemini and Google (and having used Gemini recently, I align with that sentiment) I think Bard (lol) and Gemini got a late start and so lots of folks dismissed it but I feel like they've fully caught up. Definitely excited to see what Gemini 3 vs GPT-5 vs Claude 4 looks like!
- Karrot_Kream 1y agoGemini hit the top of a bunch of leaderboards recently so it probably prompted folks to try Gemini out and they found it useful.
- fallinditch 1y agoI'm using Windsurf IDE so have all the main models available. Mainly doing Python, JS, HTML, CSS, some Go. I have found Claude 3.7 outperforms Gemini 2.5 and ChatGPT 4.1, 4o, Deepseek, etc, for my work in most cases. I suspect that I experience some performance throttling with Gemini 2.5 in my Windsurf setup because it's just not as good as anecdotal reports by others, and benchmarks. I also seem to run up against a kind of LLM laziness sometimes when they seemingly can't be bothered to answer a challenging prompt ... a consequence of load balancing in action perhaps.
- lcfcjs6 1y agoWindsurf is about to lose its ability to use other models since it got bought by OpenAI. Still very cool tool though!
- mbesto 1y agoWho cares about sentiment when you can just look at a proxy for usage: https://openrouter.ai/rankings https://openrouter.ai/rankings EDIT: Specifically: https://openrouter.ai/rankings/programming?view=week https://openrouter.ai/rankings/programming?view=week
- deleted 1y ago[deleted]
- ChadMoran 1y agoContext is only one part of it. I tried using Gemini and got sub par results. comment-laden code with not not following instructions.
- simonw 1y agoHow are you uploading zip files of code to Gemini?
- deleted 1y ago[deleted]
- andrewstuart 1y agoIn AI Studio select file upload then select a zip file.
- cube2222 1y agoI’ve tried Gemini 2.5 Pro a couple of times and honestly don’t like its output. Claude Sonnet 3.7 is much better at correctly understanding and executing my imprecise prompts. Gemini 2.5 Flash on the other hand has excellent. I’ve started using it to rewrite whole files after talking the changes through with Claude, because it’s just so ridiculously fast (and dependable enough for applying already outlined changes).
- ramoz 1y agoThis is Claude Code. The two work really well with Gemini as a planner and Claude Code as an executor.
- dgellow 1y agoclaude code still has the best UX IMHO. But I would love to have the million token context, for sure
- andy12_ 1y agoI can't say that I don't love Gemini. I use it a lot, and the huge context window does help. But I can also say that I much prefer how Claude writes code.
- swyx 1y agomore context from the claude code team: http://latent.space/p/claude-code http://latent.space/p/claude-code you can skim the transcript but some personal highlights: - anthropic employees, with unlimited claude, average to $6/day of usage - headless claude code as a "linux" utility that you use everywhere in CI is pretty compelling - claude code as a user extensible platform - future roadmap of claude code: sandboxing, branching, planning - sonnet 3.7 as a persistent, agentic model
- ipsum2 1y agoMaybe I'm holding it wrong, but I can easily spend $20+ using Claude Code for 2 hours. I've stopped using it because it was too expensive for my personal projects.
- d_watt 1y agoClaude max plan has Claude code bundled into the price. $100/month isn't cheap, but the RoI is there for me personally.
- ipsum2 1y agoThanks, I was just commenting on "- anthropic employees, with unlimited claude, average to $6/day of usage".
- ttcbj 1y agoThanks, this is helpful. I tried Claude Code, and thought it had a lot of potential, but I was on track to spend at least $20/day. For a tool that radically increases productivity (say 2x), I think it could still make sense for a VC funded startup or an established company (even $100/day or $36k/year is still a lot less than hiring another developer). But for a side project or bootstrap effort, $36k/year obviously significantly increases cash expenses. $100/month does not, however. So, I'm going to go back and upgrade to Max and try it again. If that keeps my costs to $100/month, thats a really different value proposition.
- buzzerbetrayed 1y ago
- d_watt 1y agoThe way Claude Code is going is exactly what I want out of a agentic coding tool with this "unix toolish" philosophy. I've been using Claude code since the initial public preview release, and have seen the direction over time. The "golden" end state of coding agents is that you give it a Feature Request (EG Jira ticket), and it gives you a PR to review and give feedback on. Cursor, windsurf, etc, are dead ends in that sense as they are local editors, and can not be in CI. If you are tooling your codebase for optimal AI usage (Rules, MCP, etc), you should target a technology that can bridge the gap to headless usage. The fact Claude Code can trivially be used as part of automation through the tools means it's now the default way I thinking about coding agents (Codex, the npm package, is the same). Disclaimer, I focus on helping companies tool their codebases for optimal agent usage, so I might have a bias here to easily configurable tools.
- andrewstuart 1y ago> The "golden" end state of coding agents is that you give it a Feature Request (EG Jira ticket), and it gives you a PR to review and give feedback on. I see your point but in the other hand how depressing to be left only with the most soul crushing part of software entering - the Jira ticket.
- d_watt 1y agoI personally find figuring out what the product should be is the fun part. There still a need for architecting a plan, but the actual act of writing code isn't what gives me personal joy, it's the building of something new. I understand the craft of code itself is what some people love though!
- TeMPOraL 1y agoThing is, LLMs are already better than people at the "architecting a plan" and "figuring out what the product should be" in details that go beyond high-level vibes. They do that even better than raw coding. In fact, that's the main reason I like developing quick prototypes and small projects with LLMs. I use them less to write code for me, and more to cut through the bullshit "research" phase of figuring out what code to write, which libraries to pick, what steps and auxiliary work I'm missing in my concept, etc.
- woah 1y agoIf I was making an AI code assistant, the last thing I would do is to lock it in to a particular foundation model provider. The only possible way for this to be a successful offering is if we have just now reached a plateau of model effectiveness and all foundation models will now trend towards having almost identical performance and capabilities, with integrators choosing based on small niceties, like having a familiar SDK.
- ChadMoran 1y agoOther than the command/arguments there isn't much locking you in. It's just input/output. Swap it out for something else or simply wrap it. There's not much going on here.
- ramoz 1y ago"Lock i-" At this point Claude Code is a software differentiator in the agent coding space. I am building things related to AI code assistants - we were hacking ways to integrate Claude Code - it was the first thing we wanted to build around. It's too early to care about lock in. Need the best, will only build around the best.
- baalimago 1y agoHasn't this been invented already in multiple shapes and forms..? I wrote my own version clai[1] over a year ago which does exactly this, only that it has tools support + is multi vendor. [1]: https://github.com/baalimago/clai https://github.com/baalimago/clai
- simonw 1y agoLooks quite similar to my https://llm.datasette.io https://llm.datasette.io tool as well. Honestly though, CLI tools for accessing LLMs (including piping content in and out of them) is such a clearly good idea I'm glad to see more tools implementing the pattern.
- dcre 1y agoIt's very surprising that it has taken this long to see a first-party CLI like this.
- simonw 1y agoOpenAI have had a bad one for a couple of years. It looks something like this: pip install openai export OPENAI_API_KEY="..." openai api completions.create \ --model gpt-4.1-mini \ --prompt "tell a joke about a fish"
- kristopolous 1y agoWhat is really needed is a usable multiplexed pipeline management and event system. Then you can instrument through metaprogramming. For instance, an alert system could be: "If the threshold goes over 1.0, contact the on-call person through their preferred method" - which may work ... maybe. Or: if any( "check_condition {x}", condition_set ): find_person("on call", right now).contact("preferred") ... the point is to divide everything up into small one-shots, parallelize them, use it as glue/api. Then you get composability. If you can get a framework for coroutines going then it's real game on. The final step is "needs based pulling" which is an inversion of mcp - contextual streams as event based sub-systems. Things are still too slow for this to be not painful but that won't be the case forever. Currently everything is linear. Doesn't have to be ... really doesn't.
- bionhoward 1y ago> You may not access or use, or help another person to access or use, our Services in the following ways: > 2. To develop any products or services that compete with our Services, including to develop or train any artificial intelligence or machine learning algorithms or models or resell the Services. Can somebody please tell me what software product or service doesn’t compete with general intelligence? Imagine selling intelligence with a legal term that, under strict interpretation, says you’re not allowed to use it for anything. Is it so vague it’s unenforceable? How do we own the output if we can’t use it to compete with a general intelligence? Is it just a “lol nerd no one cares about the legal terms” thing? If no one cares then why would they have a blanket prohibition on using the service ? We’re supposed to accept liability to lose a lawsuit just to accept their slop? So many questions
- mirekrusin 1y agoI'll try when they start supporting claude via copilot. Can't use at work anything else.
- anotherpaulg 1y agoAider has had support for Python and shell scripting [0] for a long time. I made a screencast [1] recently that included ad-hoc bash scripting aider as part of the effort to add support for 130 new programming languages. It may give a flavor for how powerful this approach can be. [0] https://aider.chat/docs/scripting.html https://aider.chat/docs/scripting.html [1] https://aider.chat/docs/recordings/tree-sitter-language-pack.html https://aider.chat/docs/recordings/tree-sitter-language-pack...
- k__ 1y agoAider could really profit from a polished GitHub Actions workflow. Add a file to your repo and you can talk to any model via issues.
- unshavedyak 1y agoHow close can you get Aider to Claude Code? Ie i liked the Claude Code UX, but i don't use it because i prefer Gemini 2.5 Pro. I don't really want it committing and stuff, i mostly like the UX of Claude Code. Thoughts?
- m3kw9 1y agoYou can turn off auto commit
- CGamesPlay 1y agoYou can disable the automatic commits, but you cannot disable the automatic modification of files. One nice thing about Claude Code is that you can give it feedback on a patch before it is even applied.
- mafro 1y agoThat's the whole point of /architect mode, no? You refine the solution in the prompt before aider asks you if you want to apply the changes.
- cube2222 1y agoThis is great! Especially the GitHub Actions issue/PR integration[0] that’s paired with this is exactly what I’ve been wanting! [0]: https://docs.anthropic.com/en/docs/claude-code/github-actions https://docs.anthropic.com/en/docs/claude-code/github-action...
- hosainnet 1y agoThe new GitHub action is exactly what I have been looking for https://docs.anthropic.com/en/docs/claude-code/github-actions https://docs.anthropic.com/en/docs/claude-code/github-action... but there doesn't seem to be a way to use it with the Claude Code's Max plan? As it only accepts an API key as far as I can tell.
- Wowfunhappy 1y agoClaude Code could already be used in non-interactive mode, and by extension it could be integrated into other apps in the same manner as any other UNIX command line utility. This SDK currently supports only command line usage. Isn't that just what we already had? I don't understand what's actually new here. What am I missing?
- blueorange8 1y agoI don't either - not sure why noone has commented on this as far as i can see
- Vanclief 1y agoClaude Code is my favorite way to use LLMs for coding. However I feel what we really need is to have an open source version of it where you can pass any model and also you can compare different models answers. (Aider and other alternatives really doesn't feel as good to use as Claude Code) I know this is not what anthropic would want to do as it removes their moat, but as a consumer I just want the best model and not be tied to an ecosystem. (Which I imagine is the largest fear of LLM model providers)
- ayargz 1y agoOpenAI codex is probably the closest to what you're talking about, its open source and you can use models from any provider. It's not as good as claude code right now but I bet it wont take long for them to catch up. https://github.com/openai/codex/tree/main https://github.com/openai/codex/tree/main
- pram 1y agoYou can use Claude Code as an MCP server so you can kinda do this already.
- energy123 1y ago> (Aider and other alternatives really doesn't feel as good to use as Claude Code) What does Claude Code do better than Aider?
- baalimago 1y agoI've self-plugged too hard of late. But check my previous comments for a service I wrote in go, which is exactly what you're asking for.
- greyman 1y agoQuestion: I agree, but doesn't that other model need to be trained so it knows how to work with MCP servers? Or that isn't an issue?
- jennings_hunter 1y agoYou might be interested in the OpenCode project: https://github.com/opencode-ai/opencode https://github.com/opencode-ai/opencode It's still under development but looks promising.
- doctorpangloss 1y agoI’ve cancelled my subscription. Sorry guys…
- m3kw9 1y agoWhen you have model lock in, it’s a big detriment to use because if anyone comes out with SOTA models, and you have already invested infra development on this, you are stuck. Even if you open it up, it’s likely not to work as your model is likely trained specifically on that CLI. Just look at Codex CLI, you can use Gemini 2.5 pro, but it will get randomly stuck or fail a lot vs OpenAI models
- karn97 1y agoThey just need to release a useful model which can actually code now!
- jiangplus 1y agoI would also recommend Codebuff (https://www.codebuff.com/ https://www.codebuff.com/), a great CLI code assistant comparable to Claude Code, which can save a lot on token costs. (I am not affiliated with this project, just a user.)
- hoppp 1y agoPretty cool ngl. I think I'll try it
- bilater 1y agoI don't understand why this isn't just baked into cursor/windsurf? I think in reality that's where most devs will use it.
- sean_ 1y agohttps://cloudcoding.ai/ https://cloudcoding.ai/ is a way to use a similar claude code sdk in the cloud!
- sean_ 1y agoYou can use this in the cloud through a nice UI in https://cloudcoding.ai/chat https://cloudcoding.ai/chat