Ryder Sun 0e4f1620e6 refactor: split the 6000-line auto-runner into files grouped by what they do
LocalWorkspaceAutoRunner was one class of 6000 lines. Its 99 largest methods now
live in eleven files named for their topic (recovery, collaboration,
natural-discussion, v4-context, v4-delivery, v4-synthesis, v4-results,
v4-phase, v4-discussion, task-graph, rounds) and are assembled onto the same
prototype the way the existing natural-decisions and v4-outcomes parts already
were. local-workspace-auto-runner.cjs keeps the constructor, start/resume and
run-level helpers (285 lines); the largest remaining file is 965 lines.

This is a move, not a rewrite. The split was generated by a script that copies
method source verbatim, and checked three ways before the tests ran:
- all 135 prototype methods exist with the same name and an identical source
  hash before and after (only the class constructor text differs, because the
  mixins are listed after it)
- a scope analysis finds no identifier that is read but not declared or
  imported in any of the 15 auto-runner files
- node --check on every file

The V2 round and V3 task-graph runs, which only exist to resume older runs,
are in their own files so they can be deleted together when that support ends.

Checked with: npm --prefix desktop run test:workspace (627 pass).
2026-10-16 11:43:34 +08:00
2026-08-07 10:49:43 +08:00
2026-10-15 16:32:53 +08:00
2026-10-15 16:32:53 +08:00

Meldwork README banner

English · 简体中文

Meldwork — A local-first workspace for General Agents

Turn several General Agents into a reviewable working group. Meldwork gives every task a shared context, lets selected Agents investigate independently or discuss across rounds, and keeps the evidence and human decision visible before anything is adopted.

Meldwork is a local-first Electron workspace for using the Agent tools you already have on your Mac. It supports focused conversations, independent concurrent responses, and Auto Discussion V4 for proposal, challenge, negotiated work, synthesis, and verification. Agents can work with text, files, images, media, Skills, and selected knowledge sources, so the same workspace can support research, analysis, writing, planning, review, and implementation.

The product is organized around a durable review record: Case → Finding → Evidence → Decision → Disposition. Meldwork keeps the task snapshot, Agent contributions, run state, artifacts, Human Gates, and adoption decision together in one local work cell. Workspace writes are opt-in and remain under the user's control.

Download Meldwork V1.0.5 for Apple silicon macOS · Architecture · License

What Meldwork is for

Meldwork is useful when a decision benefits from more than one perspective and a clear record of why a result was adopted. Typical work includes:

  • research and information synthesis across local Agent tools and selected knowledge sources;
  • product, market, operational, and technical analysis;
  • writing, planning, review, and structured document work;
  • multimodal work with local documents, images, audio, video, PDFs, and code or configuration files;
  • implementation and review tasks where findings, evidence, permissions, and the final adoption decision should remain inspectable.

How a task moves through Meldwork

  1. Select the Agents and participants for this Case.
  2. Scope the goal, working directory, context, attachments, Skills, knowledge sources, and permissions.
  3. Run a direct conversation, Concurrent Responses, or Auto Discussion V4.
  4. Review the findings, evidence, artifacts, trace, and any Human Gate.
  5. Adopt the approved result or leave the Case unresolved for further work.

Collaboration modes

Mode What happens Best for
Direct One selected Agent keeps its conversation and native session when supported. Focused research, writing, analysis, or execution.
Concurrent Responses Selected Agents receive the same frozen task snapshot and return independent responses in stable order. Comparing perspectives before choosing a path.
Auto Discussion V4 Agents propose, challenge, negotiate responsibilities, execute agreed work, synthesize a candidate result, and verify it across bounded rounds. Native Agent sessions continue when supported. Multi-step work that needs discussion, division of responsibility, and review.

Participants are selected by the user. Automatic selection from a larger roster is outside the current preview.

The review record

Meldwork treats collaboration as a decision process rather than a stream of chat messages:

  • Case defines the question, scope, context, and permissions.
  • Finding records an Agent's claim, observation, or proposed action.
  • Evidence links the finding to a response, artifact, file, knowledge result, or other bounded reference.
  • Decision records what the evidence supports, what remains uncertain, and which path is selected.
  • Disposition records whether the result was accepted, revised, rejected, superseded, or left unresolved.

The Run Ledger preserves phase, participant, attempt, receipt, artifact, recovery, and Human Gate state. Diagnostic tool output and sensitive runtime details stay behind the Electron main-process boundary.

General Agent catalog

Meldwork detects and invokes compatible locally installed Agent commands. The catalog currently includes:

Codex logo
Codex
Hermes logo
Hermes
OpenClaw logo
OpenClaw
WorkBuddy logo
WorkBuddy
Pi Agent logo
Pi Agent
Kimi Code logo
Kimi Code
MiMo Code logo
MiMo Code
Claude Code logo
Claude Code
Gemini CLI logo
Gemini CLI
OpenCode logo
OpenCode
Qwen Code logo
Qwen Code
OpenCodeReview logo
OpenCodeReview

Approved Agent Connectors and custom executable Agents use the desktop connector paths. The desktop guide contains the current adapter, installation, provider, and capability matrix.

Context and local boundaries

Meldwork runs as a local Electron application. Conversations, group configuration, run records, and app-owned attachments stay in the local user data directory. The renderer receives only validated snapshots through a narrow preload API; executable paths, credentials, native session references, Skill paths, and unrestricted shell access remain in the main process.

Selected Agents may send prompts, attachments, or Skills to the model provider configured in their own CLI. Knowledge access is explicit and bounded: the current implementation supports local Obsidian retrieval and CLI-owned Feishu or DingTalk access modes. Local-first describes where Meldwork stores and coordinates work; it does not promise that an Agent's model provider is offline.

Download V1.0.5

For Apple silicon macOS, download the Meldwork V1.0.5 prerelease and choose Meldwork-0.1.5-arm64.dmg. The release also includes a ZIP archive and SHA-256 manifest. Install at least one supported local Agent CLI before opening the app.

The preview artifacts are ad-hoc signed and not notarized with an Apple Developer ID. macOS may require Open Anyway under System Settings → Privacy & Security on first launch.

Run from source

Prerequisites: Node.js 22.12+ and npm.

npm --prefix frontend ci
npm --prefix desktop ci
npm --prefix desktop run dev

Before distributing a build:

npm --prefix frontend test
npm --prefix frontend run build
npm --prefix frontend run build:desktop
npm --prefix desktop test

V1.0.5

V1.0.5 improves local Agent readiness and recovery, preserves healthy participants when another Agent fails, keeps completed and stopped work visible after restart, and tightens group execution and output handling. It also updates the workspace preference flow, sidebar and titlebar details, and the Pi capability probe contract.

Verification for this prerelease includes 343/343 frontend tests, 1,562/1,562 desktop tests, six deterministic evaluation cases with 18 results, web and desktop builds, packaging, ZIP integrity, deep code-signature verification, and packaged macOS acceptance for group execution, cancellation, and restart recovery. The artifacts remain ad-hoc signed and unnotarized; live behavior still depends on the installed Agent CLI version, authentication, Provider, and capabilities.

Documentation

License

Meldwork is source-available under the Meldwork Non-Commercial Source License 1.0. You may inspect, run, modify, and share it for non-commercial purposes. Commercial use requires prior written permission; see COMMERCIAL_USE.md.

S
Description
Local-first AI agent workspace for multi-agent collaboration, agent orchestration, scoped permissions, evidence-aware runs, and human-in-the-loop decisions.
Readme Apache-2.0
71 MiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 91.4%
Vue 4.1%
CSS 3.6%
HTML 0.9%