shipwithmuse

№ 0769GitHub

Muse agent-api shim

An OpenAI Responses-compatible shim that serves the Muse assistant as a stateless HTTP model backend for Claude Code via CLIProxyAPI, one model turn per request.

Muse agent-api shim on github.com
arshansgithub/muse-agent-apiREADME ↗

agent-api

An OpenAI Responses-API-compatible shim that serves Muse (a personal AI assistant) as a stateless HTTP API, so it can be used as a model backend for Claude Code via CLIProxyAPI.

The core semantic: Claude Code owns the multi-turn agentic loop. Each HTTP request to this bridge is exactly one model turn, handled by one stateless worker. The bridge never accumulates conversation state.

Architecture

Claude Code → CLIProxyAPI → POST 127.0.0.1:8787/v1/responses
    │
    ▼
server.py ── writes queue/<resp_id>.json ── long-polls (≤900s) for responses/<resp_id>.json
    │
    ▼
dispatcher (persistent subagent) ── watches queue/ ── spawns ONE worker subagent per file
    │
    ▼
worker (single-use subagent) ── reads ONLY its request file ── writes OpenAI
    response object to responses/<resp_id>.json ── exits
    │
    ▼
server.py returns the response as JSON, or as SSE when "stream": true

Workers never execute tools. They emit function_call items; Claude Code / CLIProxyAPI executes them and sends results back as function_call_output in a follow-up request.

Per-request overhead is ~5–10s fixed (LLM inference steps: dispatcher notice + worker spin-up), regardless of task size. Floor is ~3–5s — this is a property of the agent harness, not the plumbing. Irrelevant for long agentic turns; noticeable for rapid-fire trivial calls.

Quickstart

./scripts/bootstrap.sh   # (re)start the server
./scripts/status.sh      # health overview

# smoke test
curl -s -X POST http://127.0.0.1:8787/v1/responses \
  -H 'Content-Type: application/json' \
  -d '{"model":"muse-spark","input":"Reply with exactly: SMOKE_OK","max_output_tokens":30}'

The dispatcher is supervised automatically (see "Supervision" below) — no manual step needed.

File map

Path What it is
server.py HTTP server: POST /v1/responses, GET /v1/models, GET /health. Model id muse-spark.
DISPATCHER.md Brief for the persistent dispatcher subagent (queue watcher, worker spawner).
WORKER_PROMPT.md Brief for single-use workers (context isolation, response format, must-write rule).
scripts/bootstrap.sh (Re)start the server with logging.
scripts/status.sh Health overview: server, dispatcher liveness, queue depths.
archive/ Retired designs (the pre-warmed pool experiment).
queue/, `pro

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. 1077

    BlindPilot

    It is a frontend and a chat client for AI providers, supporting 7 backends including muse code

    mastodon: serrebiradio.com/@serrebi

    GitHub

    Agents & automation

  2. 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

  3. 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

  4. 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

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