shipwithmuse

№ 0471GitHub

Muse Spark fix for DeepSeek Harness

A config and write-up that makes muse-spark-1.2-contributor via OpenCode Go work in DeepSeek Harness, fixing empty first-turn output and multi-turn thinking replay errors.

Muse Spark fix for DeepSeek Harness on github.com
caicaitou001/muse-opencode-deepseek-harnessREADME ↗
# Muse Spark via OpenCode Go in DeepSeek Harness (DSH)

> 让 `muse-spark-1.2-contributor`(OpenCode Zen Go 网关)在 DeepSeek Harness(`deepseek-harness` / `pi-ai`)里正确工作:首轮出内容 + 多轮 thinking 回传不报错。
>
> Make `muse-spark-1.2-contributor` (the OpenCode Zen Go gateway model) work correctly in DeepSeek Harness (`deepseek-harness` / `pi-ai`): first-turn output plus lossless multi-turn thinking replay.

> **免责声明 / Disclaimer**:本仓库是个人技术分享,**非** DeepSeek / opencode 官方项目,与 `deepseek-ai`、`sst/opencode`、`opencode.ai` 均无关联。文中涉及的协议与代码分析基于公开接口,仅用于学习与自用。
> This is a personal tech-sharing repo. It is **not** an official DeepSeek or opencode project and is unrelated to `deepseek-ai`, `sst/opencode`, or `opencode.ai`. Protocol/code analysis herein is based on public interfaces, for learning and personal use only.

| 项目 | 值 |
| --- | --- |
| 模型 | `muse-spark-1.2-contributor` (Muse Spark 1.2 Contributor) |
| 网关 | OpenCode Zen Go — `https://opencode.ai/zen/go/v1` |
| 协议(正确) | **OpenAI Responses API** (`openai-responses`) |
| 宿主 | DeepSeek Harness (`deepseek-harness`), LLM 适配层 `@deepseek-ai/dsh-llm-pi-ai` → `@earendil-works/pi-ai` |
| 状态 | ✅ 已验证:多轮 + thinking 回传 + 工具调用 + **图片输入** 正常 |

---

## 一、问题现象 / Symptoms

在 `~/.dsh/settings.yaml` 里用 `muse-spark-1.2-contributor`,无论怎么配都会遇到下列错误之一:

| 配置的协议 | 现象 |
| --- | --- |
| `openai-completions` | `Stream ended without finish_reason`(流被网关截断,`message.content` 恒为空) |
| `anthropic-messages` | `model returned a completed response with no content`(非流式空回复) |
| `openai-responses` + 错误的 assistant 补丁 | `input[5] did not match any supported type`(发了 responses 不认识的输入项) |
| `openai-responses`(原始)多轮 | `reasoning_content in the thinking mode must be passed back to the API` |

而 **在 opencode 官方客户端里,Muse 完全正常**。

---

## 二、为什么 opencode 能用 / Why it works in opencode

opencode 的模型目录来自 `https://models.opencode.ai/api.json`(本地缓存在 `~/.cache/opencode/models.json`)。其中:

```jsonc
// provider "opencode-go"
{
  "id": "opencode-go",
  "npm": "@ai-sdk/openai-compatible",
  "api": "https://opencode.ai/zen/go/v1"
}
// model "muse-spark-1.2-contributor"
{
  "provider": { "npm": "@ai-sdk/openai" },   // ← 关键:模型级覆盖为 OpenAI Responses SDK
  "reasoning_options": [
    { "type": "effort", "values": ["minimal", "low", "medium", "high", "xhigh"] }
  ],
  "limit": { "context": 1048576, "output": 131072 }
}
```

**Muse 只认 OpenAI Responses 协议**(模型级 `@ai-sdk/openai`),不是 Chat Completions、也不是

Also filed under Coding & dev tools

See all →
  1. 0561

    Muse-Desktop★

    A desktop app for Muse Code on macOS and Windows with projects, git worktrees, subagents, MCP, a diff review panel and opt-in computer use that lets the agent see the screen and use apps.

    @EtienneLescot

    GitHub

    Coding & dev tools

  2. 0547

    MuseGlass★

    A hands-free interface that turns Meta AI glasses into a voice control surface for Muse Code on a Mac: assign a task, walk away, hear progress, interrupt and approve sensitive steps.

    @MoheetBrain

    GitHub

    Coding & dev tools

  3. 0150

    Helicon: desktop app for Muse Code★

    I pay for @Muse Code but didn't want to live in a terminal. On Windows it's WSL-only. So I built Helicon: an open-source desktop app for the actual Muse CLI. • uses your existing muse login, no API key • talks to muse serve over MSP, so Muse stays the agent • resumes

    @harjjotsinghh

    X post

    Coding & dev tools

  4. 0128

    Helicon desktop app for Muse Code★

    Helicon is an open-source desktop and web app that wraps Meta's Muse Code CLI in a Codex/Claude-style interface, grouping sessions by project with history, resume and diffs on Windows, macOS and WSL2.

    @HarjjotSinghh

    GitHub

    Coding & dev tools

More GitHub

See all →
  1. 1074

    Ziggy, a 24/7 voice assistant on Muse Spark

    An always-on laptop voice companion: local Porcupine wake word, local Whisper speech-to-text in Hindi and English, Muse Spark via the Meta Model API as the brain, offline TTS and local conversation memory.

    @TanayYadavDev

    GitHub

    Agents & automation

  2. 1066

    Muse remote-control bridge for Intel Macs

    Since Muse for Mac ships only for Apple silicon, this small service lets Muse's cloud VM screenshot, click and type on an Intel Mac, compressing each 5K frame to about 150 KB and handling Retina coordinate scaling.

    @LilMuh

    GitHub

    Errands & personal agent

  3. 1040

    CursorBench 4.0 score-vs-cost report

    A self-contained visual report comparing CursorBench 4.0 score against cost per task for Opus 5.5, Fable 5.1, Grok 4.7 and Muse Spark 1.3, where Muse Spark 1.3 Max scores 41.6% at $2.64 per task. GPT-6 points are clearly marked as estimates.

    @dominicletz

    GitHub

    Benchmarks & research

  4. 0995

    BitNet Gateway: cheap CPU triage, Muse Spark decides

    A hybrid FastAPI gateway where a 1-bit BitNet layer on CPU filters routine traffic and Muse Spark 1.3 is called only for sales, urgency, money or low-confidence cases; the author estimates the local filter handles about 60-70% of volume.

    @rafaelnovaes22

    GitHub

    Agents & automation

Curator picks

  1. 1046

    Medical bills audited line by line, $4,000 saved★

    Got Muse logged in to my medical provider’s portal, he pulled the itemized bills, and questioned every line. So far he’s found several times I’d been double billed, asked for some discounts and has saved me over $4,000. If your moat is bureaucracy, you’re cooked.

    @Ryan_Holdaway

    X post

    Errands & personal agent

  2. 1013

    Shop Pay agentic checkout on every Shopify store★

    We are excited to announce we are partnering deeply with Muse to enable agentic checkout with Shop Pay on all Shopify stores, offering people an easy and delightful way to shop and check out with Muse.

    @tobi

    X post

    Business & commerce

  3. 1009

    Private e-book library app from Google Drive★

    Muse built me a private library for the e-books and articles in my Google Drive. Everything is organized by topic, and each section opens onto its own subcategorized shelves. Each book opens like a real book and is readable in-app

    @chiasmus_cap

    X post

    Apps & websites

  4. 1007

    Plumbing company run by a Muse agent★

    I still can’t believe I can run my plumbing company with an agent so easily. I send this message to my Muse agent while in bed at 6am. And it: updates my job board, texts customer, updates office manager who arrives at 8am in slack Notifies technician

    @HouseHackerJon

    X post

    Agents & automation