Live data from Hacker News

DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

github.com

211–220 of 322 posts

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#211

Earlier quoted context omitted.

those who use deepseek v4, what level of output you get? Codex 5.3 or GPT 5.4? is flash version on level of gpt 5.4 mini

I tried it on a non trivial, but also well documented and self contained task. It did amazingly well. I used deepseek v4 pro via deepseek platform. The model is very fast and also it is super cheap. I burned only 0.06 USD (I reckon how the same task would have cost me had I used e.g., amp). PS. mentioning amp because i used to use it and I pay directly for token. I topped up 5 usd so I will be going to use it and see…

> even when model subsidization is done, those open source models are quite viable alternatives.

Model inference was never subsidized. Inference is highly profitable with today's prices. That's why you have many inference providers. My guess, the prices for inference will go down, as more competition starts cutting the margin.

It's model training, development and R&D that cost a lot, and companies creating closed models don't have any business model except astroturfing and trying to recover training costs through overpriced inference.

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#212
post #180

Not sure you can replace Claude with DeepSeek V4 that easily and have same results. From what I see while building my own agentic system in Elixir, the problem is in training for your specific harness/contracts. Claude/GPT-style models seem to be trained around very specific contracts used by the harness like tool call formats, planning structure, patching, reading files, recovering from errors, and knowing when to s…

There are certainly quirks, but identifying and conforming to those quirks is not that complex. E.g. I had Kimi "fix" my harness to work better with Kimi by pointing it at the (open source) kimi-cli + web search and telling it to figure out which differences might matter (it made compaction more aggressive, and worked around some known looping issues (by triggering compaction if it spotted looping tool calls). Largely addressing the quirks tend to harden the harness for other models too. But, yeah, it is more work to make the smaller models work with instead of against the harness.

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#213
post #13

I'm not exactly sure what the point of this is. Deepseek already has instructions to use its API with many CLI's including Claude Code directly: https://api-docs.deepseek.com/quick_start/agent_integrations...

It's really getting a lot of upvotes so it's nearly as if people were feeling locked-in and wanted a way out but...

Why would you keep using CC CLI if you want to use the much cheaper DeepSeek v4 models (Flash and Pro): isn't it the opportunity to kiss CC CLI goodbye and use something not controlled by Anthropic?

Anyone here successfully moved from CC CLI to a fully open-source project? I'm asking this as a Claude Code CLI (Sonnet/Opus) user. My "stack" is all open-source: from Linux to Emacs to what-have-you. I'd rather also have open-weight models and a fully open-source (not controlled by a single company) AI CLI.

Any suggestion for something that works well? (by "well" I mean "as well as Claude Code CLI", which is not a panacea so my bar ain't the end of the world either).

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#214
post #30

If you're looking for Claude Code alternatives, I would first suggest looking into pi.dev or opencode for your harness. And then for models, you can choose from OpenCode Go (IMO most cost effect at this moment), OpenRouter, or direct from DeepSeek. Better if you go the Kimi route IMO and just buy a subscription from kimi.com

I liked pi.dev but why is registering endpoints and models not as simple as possible ? Or am i missing something ? I always have to fiddle with the config file.

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#215
post #42

Earlier quoted context omitted.

agreed. OpenCode is a strong base, and with a couple modifications it can become a very effective harness. my sideproject mouse.dev I’ve been combining parts from OpenCode, Claude Code, and Hermes to build a cloud agent architecture that works well from mobile.

I'm a Claude Code Web fan and a rather heavy user. So I was interested in your product. However, I couldn't find an answer on the website. What parts did you find so good that you ported them?

Nothing groundbreaking but i'll do a blog writeup on the architecture if it would be helpful for people. My focus has been on mobile.

The main pieces I've integrated for mouse.dev inspired by claude/cursor was plan mode, agent questions, subagents, pre/post hooks, context compaction, repo-local skills, and permission modes. So mostly tools like enter_plan_mode, ask_user_question, and spawn_subagent, plus .mouse/skills and .mouse/plans.

One nice feature is continuity. If you’re working on desktop and save a plan to .mouse/plans, you can pick it up later on mobile with cloud agents, or do the reverse. You can plan something from your phone, then when you’re back at your desk, review it/build it. That was my initial goal with this project because I've found the plan act loop so helpful.

Mouse Cloud Agents is mostly an OpenCode-based harness, but everything routes through our MCP/event system so it’s mobile-first and provider-agnostic.

I intentionally skipped a lot of IDE and Claude Code style desktop features. The bet is that this new style of coding is becoming less “edit files in an IDE” and more steer a capable coding chatbot.

Would love to hear from anyone reading that's iterating on harness architecture, it's been really fun to work on.

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#216
post #71
post #22

Earlier quoted context omitted.

I thought the tool format wasnt exactly the same ? So plugging any IA into claude code requires a conversion of format

DeepSeek has a dedicated Anthropic-compatible endpoint [1]. [1] https://api-docs.deepseek.com/guides/anthropic_api

This one still lacks some features. They still recommend using their OpenAI compatible endpoint.

But I guess Anthropic is just not capable of implementing the OpenAI API compatible client in Claude Code.

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#217
post #36
post #20

Earlier quoted context omitted.

More features than CC ? Also opencode tracks you by default. Its not safe. Every first prompt you send is routed through their servers, logged and they can use your data however they want

I could not find any evidence of prompt logging. The code is open; can you point me to it?

When you send your first message and opencode generates a title automatically, it uses the free opencode/gpt-5-nano model from the OpenCode Zen provider at https://opencode.ai/zen/v1

Ask AI to look at the code for you

We don't have any proof they're not logging everything, by default we should assume they are

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#218
post #30

If you're looking for Claude Code alternatives, I would first suggest looking into pi.dev or opencode for your harness. And then for models, you can choose from OpenCode Go (IMO most cost effect at this moment), OpenRouter, or direct from DeepSeek. Better if you go the Kimi route IMO and just buy a subscription from kimi.com

I liked pi.dev but why is registering endpoints and models not as simple as possible ? Or am i missing something ? I always have to fiddle with the config file.

Editing config files is not necessary. Just do /login from your session, choose your provider, and there you go.

Re: DeepClaude – Claude Code agent loop with DeepSeek V4 Pro

#220
post #21

#!/bin/sh export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic export ANTHROPIC_AUTH_TOKEN=sk-secret export ANTHROPIC_MODEL=deepseek-v4-flash export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 exec claude $@

those who use deepseek v4, what level of output you get? Codex 5.3 or GPT 5.4? is flash version on level of gpt 5.4 mini

It's close to Opus 4.5 for me
Post reply on HN