Skip to content

Releases

MateClaw 3.1.0

Choose a tag to compare

@mateaix mateaix released this 20 Nov 03:20

3.1.0: skill lesson governance and execution reliability

Version: 3.1.0. Release date: 2026-11-19. These notes cover features and fixes after v3.0.0; the 3.0.0 execution architecture upgrade remains a historical record. Published packages are listed on GitHub Releases.

3.1.0 makes learned skill lessons easier to inspect and withdraw, presents chat, tool and channel outcomes more accurately, and improves long-context, historical-media and failure recovery.

Skill lessons and memory

  • Withdraw individual lessons: durable identities identify the exact lesson being withdrawn instead of relying on its display position. Market listings and lesson panels refresh after changes.
  • Preview snapshot restoration: inspect the skill changes and their impact before confirming a restore.
  • Trustworthy review results: incomplete scans cannot be treated as successful reviews; results refresh after review actions.
  • Cancellable installation: skill installation runs asynchronously with cancellation and completion managed by task lifecycle.
  • Attachment integrity: binary attachments survive bundle imports. The x-intel installation source is pinned and remote-shell installation is removed (#685).
  • Precise memory edits: untouched sections remain intact. Asynchronous saves and deletions stay bound to the memory object selected when the operation began, preventing edits from leaking across selections or conversations.

Reflection and routine mining remain disabled by default and require explicit workspace-policy configuration. Lesson governance changes do not automatically expand skill execution permissions.

Chat status and tool results

  • Quote selected answer text into follow-up drafts. Browser titles and favicons reflect conversation and run status.
  • Shell tools show short intent titles without changing command arguments. Failed commands use actual execution outcomes, including correct rendering of historical failures.
  • Native-loop tool events publish once. Fragment message lists retain a DOM container for rendering and positioning (#683).
  • Output-limited answers retain incomplete status instead of appearing successful. Stopped native streams preserve token usage already reported by the provider.
  • Usage lists show recent dates first, and language guidance stays consistent across user-visible responses (#679).

Models, context and execution recovery

  • Validate generation parameters before saving model/provider configuration. Support Azure unified OpenAI endpoints while preserving required endpoint query parameters.
  • Bound concurrent requests through shared provider limits and clarify busy/cooldown failures. Failover uses the actual fallback model identity and provider telemetry (#676).
  • Unify context assembly and preserve compacted history. Attempt recovery from local context overflow before rejecting history (#684).
  • Downscale oversized images and filter empty media in request copies. Oversized requests can omit historical media while persisted original attachments remain intact.
  • Bound skill overviews/discovery and retain verification evidence. Raise the default iteration budget from 10 to 100 for newly created employees, retain existing employee settings, and explain capped runs (#672, #674).
  • Honor tool timeout overrides and abort unfinished plan steps. Recover plan summaries and surface finalization failures (#672, #681).
  • Enforce cumulative team-dispatch budgets across Lead retries rather than granting a fresh full budget on every retry (#688).
  • Harden H2 interrupted-write recovery and authentication-session persistence (#681).

Wiki, documents and channels

  • Per-source entity extraction: extract entities from a selected document in the Wiki raw-material panel (#673).
  • Consistent answers and citations: preserve answers and reconcile citations across retrievals. Recover interrupted document analysis and keep empty child sessions out of ordinary history (#683, #686).
  • Document delivery: continue reasoning after DOCX generation instead of treating tool completion as task completion (#687). Preserve Markdown table values, handle export edge cases, and retain file newline styles during text edits.
  • Message delivery: split long DingTalk Markdown and validate delivery acknowledgements. Preserve readable Feishu attachment names. Prevent proxy buffering on Team and A2A event streams.

DeepSeek Harness, desktop and deployment

DSH adds the optional 0.2.2-rc.1 candidate, requiring Node.js 24.9+ (24.x). The managed-install default remains 0.2.0-rc.1. Updating MateClaw does not automatically switch an existing DSH configuration to the candidate.

Candidate upgrades retain runtime homes, configuration and rollback generations, restore file observation guards, and bind configured model capacities. Installation, SDK handshake, real chat and Bash checks passed in native mode on macOS arm64. These checks do not cover Linux/Windows, persisted V3→V4 history migration, multi-hour endurance or production rollback. The macOS Docker shared-directory Landlock EACCES limitation remains; see DSH integration.

Desktop fixes harden multi-platform packaging and macOS signing/notarization of native binaries inside the server JAR. Publishing signed installers still depends on the corresponding platform artifacts, certificates and validation results.

Existing managed deployments gain offline-upgrade preflight backups, trial migrations and search-health checks, with backup-symlink and documentation-route fixes. These are deployment-specific operational improvements; availability and migration scope follow the deployment plan.

Dependency versions

Component 3.0.0 3.1.0
Java / desktop JRE 21 21
Spring Boot 4.1.1 4.1.2
Spring AI 2.0.1 2.0.2
AgentScope Java 2.0.4 2.0.5
MyBatis Plus 3.5.17 3.5.18.1

AgentScope 2.0.5 supplies stable core fixes with regression checks for trailing-JSON rejection and string round trips. The synchronous Anthropic adapter also selects the correct generation so final text and tool calls are retained. Application code still owns model requests, approvals, permissions, memory, compaction and persistence. No beta Harness is introduced, and unused SDK queues/JDBC/Redis stores require no migration.

Upgrade and validation

  1. Back up the database, workspace, plugins, .env / .env.local, and DSH runtime directories. Retain the JWT secret to keep existing login tokens valid.
  2. For source development, install mateclaw-plugin-api first, then start the backend from the repository root with explicit root data/ database/workspace paths as shown in Contributing. Start the frontend in mateclaw-ui/.
  3. Keep Flyway validation enabled and do not edit applied migrations. This dependency upgrade does not require changing database engines. An existing MySQL deployment cannot use PostgreSQL Compose as an automatic data migration.
  4. Verify model readiness, text answers, tool outcomes, history, cancellation/recovery and the channels you use. Roll back with the pre-upgrade backup and its matching application version.

Dependency-upgrade acceptance completed 6,994 backend/Mem0 tests with zero failures and 64 conditional skips; 518 frontend tests and the production build passed. Real-model checks covered text, one Bash execution, history continuity, stream cancellation, same-session recovery and message persistence. Skips require external databases, dedicated DSH environments or platform conditions and do not certify those environments.

MateClaw 3.0.0

Choose a tag to compare

@mateaix mateaix released this 27 Oct 08:45

3.0.0: execution architecture upgrade

Release date: 2026-10-26. These notes cover the 3.0.0 stable release. Source and package versions are 3.0.0; download published packages from GitHub Releases.

Cumulative changes since 2.3.0

3.0.0 includes the former 2.4.0 development cycle; 2.4.0 was not published as a separate stable release. The groups below cover capabilities added before the architecture migration as well.

Workspaces and conversations

  • Member file isolation is an opt-in strict sandbox. With MATECLAW_WORKSPACE_SANDBOX_MEMBER_ISOLATION_ENABLED=true, authenticated user and workspace identities determine the file root; missing identity denies access without shared-directory fallback. Only six audited builtin file/code tools are available; DSH, MCP/plugin tools, shared skill scripts and unauthenticated channel identities are unavailable. This differs from personal memory-file fallback. (#644).
  • Persistent channel conversations expire stale query context. Uploaded images resolve from conversation storage; directory uploads retain directory metadata and validate containment.
  • Employee drafts accept JSON following reasoning blocks, and explicit tool opt-out is respected even for general capabilities (#648, #655).

Structured decisions, Goals, plans and teams

  • A bounded typed Choice / Boolean / Score decision pipeline adds durable audit, OFF / SHADOW / ACTIVE modes and scenario overrides. SHADOW is the default; suggestions cannot bypass domain constraints.
  • Goal continuation, plan employee routing and team worker-result judgment share the decision foundation. Domain transactions commit outcomes and state; delayed decisions validate identity and fences.
  • Richer routing context, worker contracts, delegated-step result checks and bounded Goal recovery retain existing completion gates and record applied follow-up suppression.

Models and DeepSeek Harness

  • DSH moves to the SDK runtime with pinned versions and controlled upgrades. Failed health checks invalidate cached health and broken settings remain editable (#650).
  • Model probes validate completed responses rather than accepting connection success or empty output (#658).

Read-aloud, chat and tool presentation

  • Edge and DashScope read-aloud are restored, with provider voice lists, selection and preview (#646).
  • Structured MCP results get dedicated presentation below the final answer. Ordinary tool results no longer automatically become final-answer text (#651, #656, #661).

Channels and database operations

  • Application-owned Feishu WebSocket readiness and lifecycle release owned resources on shutdown and reconnect (#659).
  • Unsupported webhook channels are rejected before configuration persistence (#654).
  • Flyway validation failures block startup by default; history repair requires explicit opt-in, with backup and recovery guidance (#657).
  • Commercial-edition overview and links are added; commercial modules are not included in the open-source edition.

Finalization, team delivery and deployment

  • Long tasks check completion before returning a final answer and can continue unfinished work within runtime limits. Requests that need user input wait for a reply instead of repeatedly starting action turns (#668).
  • When reasoning consumes the response output budget, final-answer generation can retry within runtime limits. DeepSeek Flash thinking controls are applied consistently (#672).
  • Team worker progress retains full result evidence and runtime failure causes. A Team Run publishes completion after final synthesis, keeping worker output, progress and the delivered summary consistent.
  • DSH keeps its reviewed default SDK version; 0.2.1-rc.2 is an opt-in candidate. Docker runtime images pin Node.js 22 and include bubblewrap for Linux sandbox execution (#670). Candidate checks on macOS arm64 do not establish Linux or Windows acceptance; see DSH setup and limitations.
  • Every backend requires a non-empty JWT_SECRET of at least 32 UTF-8 bytes. Desktop local mode generates and persists its secret; source and server deployments must configure and retain theirs. See configuration.

Platform and execution core

Java 21, Spring Boot 4.1.1, Spring AI 2.0.1 and AgentScope Java 2.0.4. Spring AI Alibaba starter and Graph dependencies are removed. AgentScope drives ordinary ReAct and the reasoning/tool/observation loop inside each Plan-Execute step. MateClaw retains overall plan scheduling, Goal budgets and acceptance, and team coordination.

ApplicationGuardedToolkit delegates tool batches to the application executor, retaining approvals, workspace permissions, audit and cancellation. Model requests use existing Spring AI/provider adapters; MateClaw owns SSE, history and persistence.

Models, tools and recovery

  • Native DashScope chat and embedding adapters replace Alibaba AI integration; the native speech SDK remains.
  • OpenAI/Anthropic adapters preserve reasoning, media, cache and usage. Cancellation aborts owned HTTP calls before reader cleanup and prevents subsequent failover.
  • MCP SDK 0.18.3 preserves call IDs, structured results and protocol errors; local execution capabilities stay out of wire metadata.
  • Goal tool checkpoints persist execution identity before side effects. Uncertain outcomes block blind replay, retaining approval recovery and session isolation.
  • MyBatis Plus 3.5.17 uses the Spring Boot 4 starter; string IDs and existing conversation contracts are retained.
  • Binary skill bundles and bundled documentation synchronization are hardened.

Upgrade and validation

Stop the old process and back up the database, workspace, plugins and configuration before upgrading. Build with Java 21 and check third-party plugin compatibility. Rollback uses the pre-upgrade backup; downgrading an upgraded database is not verified.

Validation covers the Maven reactor, frontend build, PostgreSQL/MySQL migrations and transactional pagination, approvals/cancellation, process-crash recovery and six-hour sustained execution. A real Kingbase instance was not tested. Existing frontend interaction contracts remain compatible; this migration does not rewrite the chat UI.

Context-budget consistency on AgentScope 2.0.4

The native execution path stays on the stable AgentScope Java 2.0.4 API; it does not adopt a beta Harness dependency. Spring AI's native option combination resolves partial runtime options against model defaults. Shared request estimates cover messages, effective tool callback schemas and one output reserve, including OpenAI completion limits. Explicitly empty runtime callbacks suppress default tools, and long totals prevent integer overflow. Reasoning preparation, compaction retries and summary-model guards use the shared estimate while retaining call budgets, permissions, approvals and Goal acceptance.

These checks estimate request size; they do not guarantee provider acceptance, exact billing or correct tool arguments. See model budget rules.

Upgrade checklist

  1. Stop the previous backend. Back up the database together with workspace files, plugin files and configuration, including the JWT secret. Retain the previous application package for rollback.
  2. Build with Java 21 and check plugins against the Boot 4 / Spring AI 2 interfaces. Preserve the database profile and paths. In a source checkout, start from the repository root with explicit root data/ database and workspace paths; mateclaw-server/data/ is a separate database.
  3. Keep Flyway validation enabled. If migration validation fails, inspect the SQL and schema before considering an explicitly authorized history repair; do not enable automatic repair as an upgrade default. See database operations.
  4. After startup, check health and login, confirm existing model configurations, then exercise a real model response, tool approval/rejection, cancellation and an existing conversation. For Goal recovery, inspect checkpoints and acceptance evidence before resuming work with side effects.
  5. If rollback is required, stop the new process and restore the pre-upgrade database, files and configuration alongside the old application. Do not assume the old binary can safely open an upgraded database.

Latest budget regression evidence (2026-10-20)

The budget change passed 342 focused backend tests and the full backend suite: 6,509 tests, zero failures/errors, 50 skipped. These counts describe this verification run rather than every feature listed above.

After restarting the backend against the configured root database and the frontend on port 5173, 20 real-model rounds ran through the frontend API proxy with DeepSeek V4 Flash. Numeric results and streamed/persisted answers matched in all 20 rounds. The original strict audit passed 17/20; manual review accepted 18/20 after identifying a keyword-only false positive in round 15. Original audit flags were retained.

Two rounds remain failed: round 6 placed language outside the tool's nested arguments and triggered a schema rejection; round 20 reported 15 progress updates where receipts showed 41. Task-level recovery did not demonstrate a successful retry of the deliberately rejected original print(1) call. These results do not establish a fully passing 20-round acceptance run or an efficiency improvement.

MateClaw 2.3.0

Choose a tag to compare

@mateaix mateaix released this 22 Sep 09:19

v2.3.0

Stable · 2026-09-20 · Previous stable v2.2.0

Evidence-backed completion for long tasks

This release focuses on persistent Goal acceptance, execution evidence, and long-task recovery, alongside skill uploads, model compatibility, and streaming improvements.

Persistent Goals and JSON acceptance

  • Configure user JSON acceptance requirements in the Goal panel and inspect publication, version, and binding checks.
  • Persist immutable managed JSON artifact versions per Goal and bind trusted checks to current requirements and versions. Shared completion checks require current bindings; unmet requirements keep execution running.
  • Derive checklist progress from current merged requirements. Evaluation results with missing evidence, duplicate keys, ambiguous values, or trailing documents no longer pass silently.
  • Recheck definition revisions, current requirements, and runtime ownership before completion. Lease, recovery, and JSON expiry boundaries use absolute time.
  • Preserve selected Goal and requester identity across approvals, delayed input, and recovery. Recheck account access and prevent queued input from reviving terminal Goals.

Execution evidence, teams, and files

  • Add persistent execution evidence in observe mode, on-demand artifact version inspection, bounded JSON artifact checks, and offline replay evaluation.
  • Support controlled team worker intervention and bound asynchronous delegation duration and cancellation propagation.
  • Authorize generated content before loading it, reject symlinks in downloads and artifact collection, and isolate previews with sandbox policies. Clear listed evidence content after access is revoked.
  • Persist observation state and evidence rows atomically, retaining prior failures across command observations.

Long-task reliability and model compatibility

  • Persist Cron heartbeats, fence delivery transitions, and reject graph errors as successful runs. Cancel unstarted delayed jobs during shutdown.
  • Improve memory recall, provider resilience, and owner isolation; prevent transient constraints from becoming durable memories and reject truncated context summaries.
  • Persist managed DeepSeek Harness runtime settings, restore bounded conversation history, and pass bounded model output tokens to the SDK.
  • Improve reasoning-model probes and parameter error handling; preserve vLLM reasoning while honoring the thinking switch.
  • Coalesce streaming text deltas, handle SSE line endings, and disable proxy buffering. Settle chat UI state after stop fallback.

Skills and tools

  • Support document and folder uploads for skills, including encoding-aware binary storage and synchronization.
  • Bound spreadsheet extraction and enforce tool timeouts.
  • Ship a portable frontend Snowflake ID precision checker to help prevent large-integer precision loss.

Upgrade notes

  • Back up the database and workspace before upgrading and allow Flyway migrations to complete at startup. This release includes schema changes for Goal acceptance, execution evidence, and skill file encoding.
  • Skill encoding migration V202 is provided for H2, MySQL, and the Kingbase/PostgreSQL migration path.
  • Managed JSON completion uses current requirements, artifact versions, and authorization. Review existing Goal acceptance settings and pending approvals after upgrading.

Scope

Managed JSON acceptance checks user-selected, non-null top-level fields; it does not verify arbitrary business correctness. Observe-mode records and ordinary artifact diagnostics do not replace bindings to current requirements and versions. See Goals, skill uploads, and worker intervention for usage and limits.

Source references

These entries were checked against development commits in v2.2.0..v2.3.0 and the released source. Links below are pinned to v2.3.0 rather than a moving development branch.

Feature Tagged source
JSON acceptance and bindings ManagedGoalJsonTool.java
User requirements and access GoalJsonAcceptanceService.java
JSON field-check scope JsonArtifactRecipe.java
Execution evidence modes ExecutionEvidenceRecorder.java
Worker intervention TeamWorkerInterventionService.java
Skill upload endpoint SkillController.java
Folder and batch limits skillFileUpload.ts
DSH conversation history DshConversationHistory.java
vLLM thinking control VllmThinkingDecorator.java
Tool deadlines ToolCallDeadline.java
SSE framing useStream.ts

MateClaw 2.2.0

Choose a tag to compare

@mateaix mateaix released this 29 Aug 08:45

v2.2.0

Stable · 2026-08-29 · Previous stable v2.1.0

The runtime release

2.1.0 made a round of team collaboration a governable Team Run. 2.2.0 moves down a layer and rebuilds the foundation beneath it: an employee is no longer synonymous with one built-in reasoning loop, and a long task is no longer synonymous with one uninterrupted request.

This release advances the runtime mainline:

  • Employee runtimes become an explicit extension point. A shared runtime contract, provider registry, session factory, capability model, and lifecycle surface let an employee select a native or external runtime while reusing MateClaw conversations, permissions, workspaces, message persistence, and UI projection.
  • DeepSeek Harness (DSH) enters the mainline. DSH runs as a managed external Agent runtime over an authenticated JSON-RPC process bridge, streaming thinking, text, tool calls, and lifecycle events. The console owns installation, configuration, verification, connection testing, and enable/disable controls.
  • Long work becomes durable execution. Goals run as bounded segments scheduled by a database-backed supervisor. Queues, cooldowns, retries, attempts, accepted user input, and leases can recover after a backend restart.
  • Agents can interoperate across systems. New A2A JSON-RPC / SSE ingress, Agent Cards, and the call_a2a_agent outbound tool let external agents call MateClaw employees and let MateClaw call peers within explicit network boundaries.
  • Runtime boundaries get tighter. DSH tools still pass through host Tool Guard and workspace policy. Live administration, shared conversations, generated files, file mutation, and Wiki failure records now enforce workspace ownership more consistently.
  • Long collaboration and delivery are hardened. Team checkpoints, board recovery, deliverable completion gates, worker attachments, retries, and synthesis are more reliable; long-form output and input arriving during approvals, stopping, or recovery are preserved.

Also included: an optional OfficeCLI document engine, configurable ACP prompt timeout, plugin tools in the employee picker, a WeChat execution-trace switch, restored custom model providers, and faster Live status loading.


1. Runtime Contract: decoupling employees from reasoning engines

2.2.0 introduces the AgentRuntimeProvider extension layer. A runtime starts an employee turn and emits a normalized event stream; MateClaw continues to own:

  • employee identity, model binding, conversations, and message persistence;
  • workspace resolution, tool catalogs, Tool Guard, and approvals;
  • normalized projection into Chat and Agents Live;
  • stop, cancel, completion, and failure lifecycle semantics.

Providers are selected by type through a registry. Sessions validate workspace, configuration, and capabilities before startup, so unknown or unavailable runtimes fail early instead of silently degrading halfway through a turn. The employee editor exposes runtime selection, while message and usage records retain the actual runtime provider for operational comparison.

Two paths ship today:

Runtime Best for Governance
Native MateClaw ReAct / Plan-Execute, Goals, and Team Runs Entirely inside MateClaw
DSH DeepSeek Harness Agent loop and Cordis composition DSH runs the loop; MateClaw owns sessions, policy, tools, and projection

2. DeepSeek Harness: external loop, host governance

DSH is not an MCP tool or a model provider. It is an employee-level runtime: MateClaw launches and manages dsh-jsonrpc-agent over authenticated JSON-RPC on stdin/stdout, then adapts its runtime events into the existing chat stream.

This release includes:

  • DSH process/session management, per-conversation isolation, cancellation, and complete stream lifecycle;
  • an authenticated bridge protocol plus text / thinking / tool / lifecycle event mapping;
  • host tool descriptor projection, with every tool call returning to MateClaw for workspace policy and Tool Guard enforcement;
  • DeepSeek provider credential injection without placing secrets in employee runtimeConfig;
  • console installation, configuration, verification, connection testing, enable/disable controls, and redacted diagnostics;
  • child-process environment isolation that forwards only controlled runtime values.

See DeepSeek Harness Integration for setup.


3. Persistent Goals: from “continue this turn” to “continue after restart”

New goals enable persistentExecution by default. Long work is split into bounded execution segments; ending one segment no longer ends the goal, because a supervisor schedules the next segment from persisted state.

The runtime now provides:

  • a database-backed continuation queue, cooldowns, retries, and expired-lease recovery;
  • goal attempts, single-goal run coordination, and startup recovery;
  • a durable per-conversation input queue: messages arriving during execution wait and drain in order after an approval or segment boundary;
  • transient-provider backoff and instance-wide pacing to avoid recovery request storms;
  • explicit pauses for Stop, essential missing input, approval denial, and exhausted budgets, all requiring an explicit resume;
  • a final persisted-checklist read before completion, requiring every criterion to pass with nonblank evidence.

GET /api/v1/goals/{id}/execution returns the latest scheduling state, reason, and due time; SSE broadcasts changes through goal_continuation. The current implementation targets a single backend instance using the native runtime. External tool effects are not guaranteed exactly once; recovery checks existing artifacts and asynchronous handles first.

See Persistent Goals.


4. A2A: making MateClaw a node in an agent network

2.2.0 ships both inbound and outbound A2A support:

  • ingress for message/send, message/stream, tasks/get, and tasks/cancel;
  • SSE task-status and artifact events with heartbeat comments;
  • anonymous Agent Cards expose only minimal metadata, while enabled-employee skills remain Bearer-protected;
  • idempotency snapshots, duplicate-task rejection, terminal TTL cleanup, and capacity limits bound task storage;
  • call_a2a_agent discovers the peer Agent Card, sends work, and polls or parses SSE;
  • redirects and private-network egress are rejected by default, with response-size and timeout limits guarding SSRF and resource exhaustion.

A2A is disabled by default. See A2A Protocol for deployment settings and endpoints.


5. Team Run and delivery reliability

The runtime work also hardens team execution:

  • checkpoint loops and board recovery are idempotent, preventing duplicate evidence on long collaborations;
  • required deliverables must be registered before a task or run can cross its completion gate;
  • lead attachments reach workers, and generated files in worker replies become registered deliverables;
  • clarification-only worker replies are not accepted as final results, and retry paths preserve required context;
  • admins may inspect completed worker runs while normal conversation and workspace boundaries remain enforced;
  • tool returnDirect, long-form final answers, and Team Run projection settle more reliably.

See Team Runs.


6. Tools, documents, and runtime details

  • OfficeCLI (optional): inspect, validate, batch-edit, merge, and preview .docx, .xlsx, and .pptx. Inputs are copied into an isolated scratch directory and outputs are capped at 20 MB; its absence does not affect the built-in document tools.
  • ACP prompt timeout: custom endpoints may allow longer prompt waits for coding runtimes that need extended startup or human confirmation.
  • Tool discovery and execution: plugin tools appear in the employee picker, repeated plan-skill loading is suppressed, and input validation, returnDirect, and failure degradation are more consistent.
  • Channels and UI: WeChat can expose execution traces; resumed conversations restore chat state; running/stopped labels are clearer; and Live queries are workspace-scoped with less loading overhead.

Upgrade notes

Existing 2.1.0 data remains compatible. Flyway applies V185–V189 for each supported dialect: OfficeCLI registration, employee runtime provider, ACP prompt timeout, goal continuation, and goal attempt / conversation input queue.

Before upgrading:

  • New goals are durable by default. When turnBudget / llmCallBudget are omitted, 0 means no cumulative limit. Production deployments should set explicit budgets, concurrency, and provider-failure backoff. Existing goals retain their previous mode and do not auto-start after upgrade.
  • DSH is optional. Native employees work without it. Before enabling DSH, use a dedicated working directory, a minimal tool set, and the console verify / connection test.
  • A2A is off by default. Configure a stable public base URL, Bearer authentication, and outbound network policy before exposure. Do not enable private-network egress unless required.
  • Recovery is not exactly once. Restart recovery resumes unfinished execution, but external APIs, shells, and third-party tools still need idempotency keys, artifact checks, or human confirmation.
  • OfficeCLI is optional. The migration registers the capability; when officecli is absent from the server PATH it returns an explicit unavailable result without replacing the JVM-native tools.

What this means for you

If you operate different kinds of digital employees, 2.2.0 separates the employee from its reasoning engine for the first time: choose native or DSH without giving up one governance, tool, message, and observation plane.

If you run long tasks, the objective no longer loses its thread when one request ends, a user message arrives mid-run, or the service restarts. It continues with its checklist, attempts, input queue, and recovery state int...

Read more

MateClaw 2.1.0

Choose a tag to compare

@mateaix mateaix released this 17 Aug 13:34

v2.1.0

Stable · 2026-08-15 · Previous stable v2.0.0

The big things in this release

2.0.0 taught an Agent Team to decompose, dispatch, and deliver. 2.1.0 addresses what appears after teams are used continuously: how one team request becomes a complete run that can be tracked, delivered, and reviewed — and how skills improve safely from real work.

The release centers on Team Runs, a closed skill-evolution loop, and end-to-end observability:

  • Team Run is now a first-class object. One request, its task DAG, worker executions, final synthesis, and deliverables share one runId. Chat delivers results, Agents observes live execution, and Teams owns history and governance; all three consume the same server projection.
  • Team delivery is outcome-first. Worker conversations no longer flood the normal conversation list, intermediate announcements fold into the run card, and final summaries, deliverables, failures, and approval needs appear before implementation detail.
  • Skills gain a complete evolution loop. Post-conversation reflection, cross-session recurring-request mining, promotion, constrained automatic binding, curator governance, snapshots, and restore points form an observable and reversible improvement chain.
  • Reasoning can be replayed in its real order. Inline <think> spans are extracted live, each iteration can be persisted with wall-clock duration, display and retention are independently controllable, and a linear trajectory can be exported.
  • Employees can proactively notify channels. list_channel_sessions and send_channel_message push explicit alerts, reminders, and asynchronous results to verified IM targets. Cron edits now retain both delivery channel and target.
  • Context budgets are model-specific. Known models use catalogued windows instead of a global 128K guess, with per-model operator overrides and expanded GLM/Kimi coverage.
  • Tool, browser, and streaming reliability improve. Progressive tool disclosure reduces large-schema pressure; browser refs, navigation, waits, and session state are hardened; orphaned WebChat streams are reclaimed; upstream bodies have idle timeouts; action requests cannot claim completion without tool-backed execution.

Also included: batch session deletion, live Feishu execution progress, Qwen3-ASR HTTP recognition, improved TTS/STT diagnostics, date-partitioned uploads and generated media, cross-platform attachment lookup, safe handling of 64-bit ids, numeric tool schemas, and OpenAI-compatible generateKwargs passthrough.


1. Team Run: one identity for one round of team work

The 2.0 task board could execute work, but one request could still appear as unrelated objects across Chat, Agents, and Teams. 2.1.0 adds the persistent mate_team_run domain object:

  • runId links the originating request, lead conversation, tasks, worker conversations, events, synthesis, and deliverables;
  • one state machine covers planning → running → awaiting_review → finalizing → completed / partial / failed / cancelled;
  • progress, failures, final summary, and deliverables come from the server projection instead of being independently inferred by each UI;
  • source-message idempotency prevents duplicate runs, dispatch begins only after sealing, and cancelling a run cancels non-terminal tasks;
  • Snowflake ids are serialized as strings at the API boundary.

New management endpoints:

GET  /api/v1/team-runs/{runId}
GET  /api/v1/teams/{teamId}/runs
GET  /api/v1/teams/{teamId}/runs/page
GET  /api/v1/conversations/{conversationId}/team-runs
GET  /api/v1/conversations/{conversationId}/team-runs/page
POST /api/v1/team-runs/{runId}/cancel

Reads require at least the viewer role in the current workspace; cancelling a run requires admin. Page endpoints use cursor / limit, and team history also accepts activeOnly.

Chat is the delivery surface, Agents Live is the observation surface, and Teams is the governance surface. Historical 2.0 tasks remain readable; tasks without a runId are never guessed into a false aggregate.

See Agent Teams.


2. Skill evolution: from lessons to a reversible improvement chain

  • Routine mining clusters each recent conversation's opening user request per employee; it does not mine a full execution trace. The default gate is at least three occurrences on three distinct days within 30 days. Once enabled, the nightly job automatically promotes qualified candidates (at most two per run by default); admins can also promote early, dismiss, or reopen them.
  • Reflection asynchronously reviews the latest 24 messages after eight new messages have accumulated and at least two assistant turns are present. enabled controls whether transcript/catalog data reaches the reviewer model, while auto-apply independently permits writes. With auto-apply off, it observes without mutating; there is no persisted human-approval queue for reflection plans.
  • Automatic binding only adds a newly authored skill when the source employee already has an explicit, non-empty skill allowlist. Employees inheriting all skills need no row, and an explicit no-skills choice is never overridden.
  • Curator governance and adopt/release use “adopt” to hand a user-owned skill to autonomous curation and “release” to return it to user ownership; this is not a record of which employee uses a skill. Curator starts preview-only and mutates only after admin activation. Consolidation remains a separate opt-in, with umbrella creation and source archiving transactional.
  • Snapshots and restore points are captured before every activated mutating sweep and again before restore; five are retained per workspace by default.
  • Origin/governance policy distinguishes built-in, user, agent, and routine. The origin also controls curation scope, so manual adoption intentionally changes user to agent and drives the managed/unmanaged rosters.

The defaults are intentionally conservative: reflection and routine mining are off until explicitly enabled; reflection review and automatic application are separate opt-ins; curator is preview-only until activated, and consolidation defaults off. Untrusted transcripts and skill bodies are delimited; automatic writes allow precise patches or creates, while full replacement, secret exfiltration, approval bypasses, and cross-workspace operations are rejected.

See Skills.


3. Thinking visibility and trajectory export

  • Inline <think> content is separated from the answer on the streaming path.
  • Every ReAct iteration can be stored where it occurred, with real start/end timestamps.
  • “Show thinking” and “show all iterations” are admin-editable system settings; operators choose mate.agent.reasoning.retention=all|terminal for persistence.
  • A conversation owner can call GET /api/v1/conversations/{conversationId}/trajectory for a plain-text export that orders user input, reasoning, tool calls, observations, and the final answer. The export itself does not include duration fields.
  • Pre-tool narration becomes superseded once real output arrives. The current chat UI renders it inline, and the text trajectory preserves it as content superseded="true" for audit.

See Chat & Messaging.


4. Proactive channel messages and targeted Cron delivery

Employees first call list_channel_sessions to discover recent, pushable conversations in their workspace, then call send_channel_message with the returned id. The supported adapters are QQ, Telegram, WeChat, Slack, Discord, Feishu, DingTalk, and WeCom. A target is pushable only after the bot has received a message and stored the platform delivery handle; the channel must be running, ids cannot be guessed, workspace boundaries are enforced, and one message is capped at 4096 characters.

This is for explicitly requested alerts, reminders, and asynchronous results. Normal replies still use the current conversation. Cron edits now persist both delivery channel and target instead of silently falling back after an update.

See Channels and Tools.


5. Model windows, request parameters, and tool schemas

  • Runtime resolution uses operator override → live local-model probe or provider limit-error cache → built-in model catalog → the existing global fallback. The no-I/O model-list view uses only override and catalog values.
  • Operators can set a model window in the console or with PUT /api/v1/models/{providerId}/models/context-window; clearing it restores catalog behavior.
  • GLM-5V-Turbo, Kimi coding aliases, and the rest of the built-in catalog receive explicit windows where known.
  • Workspace members can read the provider choices they are allowed to bind.
  • OpenAI-compatible requests preserve numeric JSON Schema types. Non-reserved top-level generateKwargs keys pass through to the request body; temperature, token limits, topP, reasoningEffort, search, headers, and path keys use one reserved-key reader. Unknown nested chatOptions keys are not forwarded, and reasoningEffort is sent only to explicitly supported model families.

See Models.


6. Browser, progressive tools, and action completion

  • browser_use hardens ref state, navigation guards, session gates, wait conditions, and page snapshots; stale refs are rejected after page changes.
  • A progressive tool bridge expands only the schemas needed for the current task, keeping large tool catalogs usable.
  • Tool-backed action policy retries once when the ledger has no successful substantive call, then returns action_unverified; a failed substantive attempt returns action_failed. It prevents unsupported completion claims but does not prove semantic equivalence between a tool result and the user's goal.
  • Tool-name normalization, lookup caching, and id precision fixes reduce long-loop misrouting.

7. Streaming and channel reliability

  • WebChat closes SSE...
Read more

MateClaw 2.0.0

Choose a tag to compare

@mateaix mateaix released this 31 Jul 23:52

v2.0.0

Stable · 2026-07-31 · Previous stable v1.8.0

The big things in this release

By the end of 1.x, MateClaw could get one digital employee to finish a whole job — lock a goal, run long tasks, deliver end to end. 2.0.0 answers the next question: how does a crew of employees work together?

The answer isn't "open more chat sessions" — it's full project machinery: Agent Teams. You create a team, assign a lead and members; tell the lead a goal and it breaks the goal into tasks on a shared task board; the dispatch engine hands tasks to members in parallel, dependencies orchestrate themselves, prerequisite results hand off automatically, and settled results are announced back to the lead for synthesis. You watch the whole thing — live board, task timelines, deliverable downloads, and you can jump into any member's child conversation to watch it execute word by word.

In one sentence: v2.0.0 is the release where MateClaw goes from "one person who gets things done" to "a team that collaborates".

The big things:

  • Agent teams and a shared task board. Teams / roles (lead · member · reviewer) / an eight-status kanban / blockedBy dependency orchestration / member-level parallel dispatch / settled results waking the lead. The Teams page shows everything: event-driven board, activity banner, task timelines, deliverables, approval gates, manual task creation.
  • An execution chain hardened for long tasks. Execution leases + runtime heartbeats eliminate double execution; cancel actually interrupts a running member session; requireApproval parks sensitive tasks at in_review for a human; failed / stale tasks retry.
  • Plans become the board. A Plan-Execute lead hands its whole plan over to the board — steps map to tasks, dependency chains become blockedBy, whatever can parallelize does; once everything settles, a deterministic resume gate routes to plan summary. A lead that can plan turns planning into orchestration.
  • Workspace isolation fully sealed. Channel conversation ids encode the channel, so two workspaces' chats can no longer merge into one conversation; same-named skills coexist across workspaces with install, storage and runtime resolution all workspace-scoped.
  • Long tasks in IM no longer look frozen. Magic commands on every channel (/new /clear /status /stop /model /help); WeCom's event-driven progress bubble — thinking state, live tool trace and elapsed time roll in place, morphing into the final answer; the sync IM path delivers per-stage narration as standalone messages.
  • Rewind and regenerate gain server-side semantics. "Rewind to here" genuinely truncates and recomputes aggregates; regenerate reuses the original question with no duplicate rows — identical behavior across admin console, WebChat and API.
  • Auto-approval misses are explainable. Audit rows record the auto-approval outcome and miss reason codes (most common: severity ceiling too low), with one-click grant creation from the audit page; forms use scope-typed pickers and reject dead configurations at creation.
  • LLM error recovery becomes policy. "Server overloaded" and "my key is rate-limited" get opposite treatments; Retry-After feeds backoff; evicted providers readmit on a TTL; jittered backoff prevents retry storms.

Plus: in-browser attachment preview (pdf / docx / xlsx / html / text in a glass-styled layer, pptx via server-side conversion fallback), single-source SKILL.md with console bundle-file management, the optional Mem0 plugin memory provider, the knowledge graph's relation schema whitelist, a configurable default workspace storage root, per-entry removal for the desktop local-tools whitelist, and custom-provider model discovery (modelsPath).

That's the list.


1. Agent Teams: one lead, a crew of employees, one board

Sub-agent delegation (delegateToAgent) is "one person temporarily calls a helper": synchronous, one-to-one, black-box. Real complex delivery looks like a project: break down tasks, declare dependencies, run in parallel, gate on approvals, archive deliverables, see who's doing what. 2.0.0 brings the whole machine:

  • Teams and roles: a group of employees plus one board; roles are lead / member / reviewer; one employee can join multiple teams.
  • The board: eight statuses (pending / in_progress / in_review / completed / failed / cancelled / blocked / stale), with the state machine guarded by conditional database updates — under concurrency the first successful writer wins.
  • The team_tasks tool: the lead creates tasks (with blockedBy and requireApproval), members report progress / submit results / attach deliverables, all actions role-gated. The roster is injected into member prompts, and the lead gets a live board snapshot every turn — long conversations can't drift into duplicate task creation.
  • The dispatch loop: a resident sweep plus immediate triggers after actions; each task runs in its own child conversation through the full agent graph, one task per member at a time; when prerequisites complete, the downstream dispatch envelope automatically carries their results and deliverables; settled tasks announce to the lead in debounced batches.

Data lands in five new tables (the mate_agent_team family, migrations V172–V174); the admin API lives under /api/v1/teams, and every validation failure returns a readable error.

See Agent Teams.


2. An execution chain designed for tasks that run for tens of minutes

  • Lease + heartbeat: dispatch takes a 60-minute execution lease, renewed automatically during the run; only genuinely lost tasks (process crash) expire to stale for safe re-dispatch — no more "re-dispatched while still running, two instances overwriting each other".
  • Cancel means interrupt: member child conversations register with the stream tracker; a cancel stops the run at the next node boundary — no more burning tokens to natural completion.
  • Approval gates: requireApproval tasks park at in_review for approve / reject on the Teams page.
  • Deliverables: members attach their docx / pptx / xlsx / pdf output to the task; the detail page offers downloads and announcements carry attachments — links no longer drown in truncated text.
  • Run visibility: every task links to the member child conversation's full transcript; opened mid-run it's a live typewriter. Lifecycle events land in mate_team_task_event and render as a timeline.
  • No polling: a team-level SSE event channel drives live board refresh and the activity banner; columns page their rows and headers show database-side true totals.

3. Plan-Execute goes team-native: plans hand over to the board

A Plan-Execute lead used to delegate step by step, serially, with the board none the wiser. Now the plan produced by the planning node is handed over to the board wholesale: steps map to tasks, step dependencies become blockedBy (a strictly-serial plan now parallelizes wherever it can), the plan parks (delegated) and the lead's turn ends normally; once every task settles, the announce wake-up passes a parked-plan resume gate that deterministically routes to the plan summary node, rebuilding context from task results and deliverables — the same "park in DB, resume in a fresh turn" shape the tool-approval flow already proved, with no checkpoint machinery.


4. Workspace isolation fully sealed

Two isolation defects with the same root cause — "the entity is workspace-scoped, but some key's generation forgot the workspace dimension" — fixed together:

  • Channel conversations no longer bleed: conversation id generation encodes the channel identity (migration V171 widens the id column). Same-type channels in different workspaces keep separate conversation rows even for the same external user.
  • Skills isolate at all three layers: install dedup and name uniqueness filter by workspace; disk directories encode the workspaceId so same-named skills own separate directories; runtime load / file reads / script runs / auto-redirect resolve only within "this conversation's workspace + builtin + global virtual" — one workspace's employee can neither read nor execute another's same-named skill.

5. Channels: long tasks visible, commands registered once for every channel

  • Magic commands: /new /clear /status /stop /model /help, intercepted by a unified dispatcher before the LLM — Chinese/English aliases, whole-message exact match, zero tokens. /model switches this conversation's model by name.
  • The WeCom progress bubble: the static "🤔 Thinking..." becomes event-driven — thinking state, live tool trace, per-stage rolling narration and elapsed time refresh in place; the first real content chunk reuses the same stream slot and the bubble morphs into the answer. The message-filter switches now genuinely control "should process messages be sent" instead of merely stripping inline tags.
  • Per-stage narration on sync IM: synchronous channels (WeCom, WeChat) deliver each stage narration as a standalone message; web SSE and the sync IM path share one per-turn stream accumulator, so execution metadata matches exactly on both sides.
  • Streaming reply hardening: keepalive, forced finish and context invalidation each in their place; generated files are actually delivered through the WeChat channel.

6. Rewind and regenerate: server-side semantics

  • Rewind to here: truncate back to a message — later messages are genuinely deleted and conversation aggregates recomputed; refresh or open from another client and you see the rewound state.
  • Regenerate: delete the trailing assistant answer and reuse the original user message — no more duplicate question per click, no more old answers resurrecting on refresh.
  • One semantics across the admin console, the W...
Read more

MateClaw 1.8.0

Choose a tag to compare

@mateaix mateaix released this 12 Jul 11:39

v1.8.0

Stable · 2026-07-12 · Previous stable v1.7.0

The big things this release

v1.7.0 was a productionization pass — it made long tasks visible, closed the approval loops, and opened the knowledge base as an API. This release turns the employee outward: it ships Content Studio, the first flagship scene built end-to-end on MateClaw's own primitives, and it teaches the browser agent to see and act by reference instead of guessing at pixels.

In one line: v1.8.0 is where MateClaw stops being a toolbox and becomes a doer of a whole job — from a one-sentence brief to a WeChat Official Account article sitting in your draft box, or a Xiaohongshu (RED) note packaged as ready-to-post vertical cards.

The big things:

  • Content Studio — one sentence to a publishable post. A seeded "Content Studio" employee runs the full pipeline: pick a topic → research → draft → illustrate → de-AI → lay out → deliver. Two platforms ship first-class: WeChat Official Account (公众号) image-text articles and Xiaohongshu (小红书) image-first notes.
  • De-AI-ification you can measure. A heuristic AI-trace score (no LLM, deterministic) flags the tells — uniform sentence length, template connectors, filler phrases, list abuse, vagueness — and the employee rewrites against them in a detect → rewrite → re-check loop, capped at 3 rounds so it never spins.
  • A publish chain hardened for real operation. Body images are auto-uploaded into WeChat so nothing links out and breaks; API secrets are AES-GCM encrypted at rest; the WeChat service instance and access token are reused and persisted (no more token-limit collisions); the chain retries transient failures and translates known WeChat error codes into actionable Chinese hints; a fallback cover guarantees a draft is never cover-less.
  • A content calendar that dedups and remembers. Every delivery is scanned for compliance and recorded automatically — no reliance on the model remembering to. A topic fingerprint stops the daily cron re-picking the same subject, and a read-only Content Calendar page shows what's drafted, packaged, published, or failed.
  • The browser agent sees by reference. A new accessibility-tree ref snapshot lets the agent read a page as stable ref handles and interact by ref — click/type the element, not a screenshot coordinate. Real-browser use gains privacy guardrails, with a controlled CDP escape hatch for the cases that need it.
  • Sharper attention, tighter loops. Employees get attention anchoring & environment awareness — MCP tool provenance, pinned skill constraints, and event notifications — plus a tool-call loop guard and a post-mutation verify reminder so a stuck agent gets caught and a change gets checked.

Plus: a first-token-and-bundle fast-load pass (initial load down ~78%), a chat context-occupancy panel with per-source breakdown, cross-KB wikilinks and raw-material batch operations in the Wiki, MCP progress notifications for long-running tools, a new Volcano Engine Agent Plan provider, a configurable pip index for skill Python scripts, and the public Docker stack on PostgreSQL 16.

That's it.


1. Content Studio — one sentence to a publishable post

MateClaw already had every atom of content creation: web search, page fetch, image generation, HTML-to-image rendering, structured memory, cron, and the skill runtime. What was missing wasn't a tool — it was an orchestrated pipeline that turns "write me something about X" into a finished, on-platform artifact. That pipeline is Content Studio.

A seeded Content Studio employee (内容工作室) ships bound to the right skills and tools, with a system prompt that fixes the seven-stage workflow:

① Topic → ② Research → ③ Draft → ④ Illustrate → ⑤ De-AI → ⑥ Layout → ⑦ Deliver
  • ① Topic comes from your long-term interests in structured memory, plus fresh web search — or from a daily "topic radar" cron.
  • ② Research fetches reference articles and summarizes the angles, so you differentiate rather than rehash. WeChat article URLs go through a dedicated wechat_article_extract tool that cleans mp.weixin.qq.com pages into structured {title, author, time, body, images}.
  • ③ Draft follows platform-native structure and honors your persona and style memory — so from the second post on, you never re-explain your voice.
  • ④ Illustrate generates a cover and section images.
  • ⑤ De-AI runs the measurable rewrite loop (see §2).
  • ⑥ Layout produces the platform artifact.
  • ⑦ Deliver stops at the outward, irreversible step for your confirmation before anything leaves the machine.

Two platforms ship first-class:

Platform Skill What you get
WeChat Official Account (公众号) gzh_article An inline-styled HTML article (the editor doesn't honor <style> blocks, so every style is inline), a cover sized for the header, section images, a compliance self-check — deliverable to paste, or pushed straight to your draft box via gzh_publish.
Xiaohongshu (小红书 / RED) xhs_note An image-first package: a four-part title, short-sentence body with topic tags, and at least 3 vertical 3:4 cards (cover + content + closing) rendered from HTML templates with an online preview. xhs_package hard-validates the ≥3-image rule.

Because layout is just HTML, the AI can create and refine templates by conversation — render a preview, look at the PNG, refine, and persist reusable custom templates into your own editable skill (built-in skills stay immutable).

Content Studio producing a Xiaohongshu note in the console

Content Studio producing a 小红书 note from one brief — the measurable de-AI score, the auto-recorded content-calendar item, and the generated vertical cards in the Run Overview rail. See Content Studio for the 公众号 flow and the calendar.

See Content Studio and Skills.


2. De-AI-ification you can measure

The differentiator of the whole scene is that "de-AI" isn't a vibe — it's a measurable loop.

A heuristic script (ai_trace_score, pure Python, no LLM, deterministic and regressible) scores text 0–100 and returns the specific signals and spans:

Signal What it catches
Burstiness Sentence-length variance too low → uniform = machine
Connector density "首先/其次/然后/综上所述/值得注意的是…" template cadence
Filler phrases "在…的今天/让我们/随着…的发展/赋能…" boilerplate
List / dash abuse Over-structured, generated-looking layout
Paragraph evenness Mechanically equal paragraph lengths
Concreteness gap Too few numbers, names, first-person, time/place = vague

The employee then rewrites against the signals — colloquial, first-person, concrete detail, varied sentence length, filler cut, tone tuned per platform (公众号 measured, 小红书 lively) — and re-scores, looping until it clears the bar or hits max_rounds = 3 (then it keeps the best version and tells you the score, instead of burning tokens forever).

This is a heuristic quality boost, not a guarantee of bypassing any AI detector — the skill and the output both say so.

See Content Studio.


3. A publish chain hardened for real operation

Getting a draft out once is easy; running it every day for three months is where the real problems live. This release audits the publish chain line by line and closes them.

  • Body images no longer break. WeChat doesn't fetch external images in article bodies, so a draft full of /api/v1/files/generated/… links used to publish with every inline image broken. The chain now parses the HTML, uploads each body image into WeChat as an article image, and rewrites the src — a failed upload keeps its original src and is reported rather than blocking the whole article.
  • Secrets are encrypted at rest. weixinoa.app_secret and other sensitive settings are stored AES-GCM encrypted (key from MATECLAW_SETTING_KEY, with a machine-derived fallback), ciphertext carries an enc:v1: prefix, and legacy plaintext is read transparently and upgraded on next write.
  • One WeChat service, one token. WeChat allows a single valid access token per appId and rate-limits token fetches. The service instance is now cached per appId with a persisted token, so repeated calls and multi-instance deployments stop stepping on each other; changing the secret invalidates the cache.
  • Transient failures retry; known errors speak plainly. The chain retries retryable WeChat error codes with backoff, and translates known ones into actionable Chinese hints — e.g. "add the server's public IP to the Official Account whitelist" for an IP-whitelist error.
  • A draft always has a cover. If the cover can't be resolved, a built-in placeholder cover is rendered so the draft still lands, and the response tells you a placeholder was used.

Publishing stays draft-box-first: mass-send and publish are outward, irreversible, and rate-limited, so MateClaw drafts and you hit "publish" in the Official Account backstage. The optional publish action is gated through the approval flow.

See Content Studio and Channels.


4. A content calendar that dedups and remembers

The weak spot in any "the model should also log this" design is that the model forgets. This release welds compliance and bookkeeping into the delivery tools themselves.

  • Deliver = scan + record. gzh_package and xhs_package now run a server-side compliance scan (extreme-claim / inducement / guaranteed-return terms) and auto-record the item to the content calendar on successfu...
Read more

MateClaw 1.7.0

Choose a tag to compare

@mateaix mateaix released this 05 Jul 16:03

v1.7.0

Stable · 2026-07-04 · Previous stable v1.6.0

The big things this release

v1.6.0 let the employee run on your database, grow senses and hands, and be shaped by you directly. This release is about what happens once you put it into real production collaboration — the places that go invisible, unresolved, out of reach, oversized for the window, and walled off from your systems.

In one line: v1.7.0 is a productionization pass — long-task progress and cost become visible, approvals close the loop, the desktop and intranet servers become reachable, injection fits the real model window, and the knowledge base and Deep Research become connectable as open APIs.

The big things:

  • All three approval paths close the loop — workflow approvals, the WebChat/API-Key channel, and Feishu/WeCom card clicks are all end-to-end now, no more silent hangs.
  • Long tasks are visible — an always-on "Run Overview" rail + a per-turn token breakdown (cache hit/miss/write + reasoning split) + sub-agent cost rolled up + one-click download of generated files.
  • Fits the real model window — local-model context-window probing, a unified token budget for prefix injection, small-context degradation, and tool-schema budget gating — no more "guess 32K" leading to a pre-flight rejection or a silent truncation.
  • Opens up — a knowledge-base + Deep Research open API (API-key auth + rate limit + SSE), a pluggable search Provider SPI, and MCP identity forwarding (carry the authenticated user's identity into a STDIO MCP).
  • Reaches further — the desktop's local-embedded / remote-centralized dual mode (with the mateclaw-desktop source opened as of v1.7.0), plus a LAN deployment mode that opens controlled intranet-service access.
  • One-click operational data export — Dashboard 9-sheet Excel + a CLI for offline export.

Plus: Wiki processing-failure visibility, per-employee model chains, a debuggable OpenAPI/Swagger, a chat back-to-bottom floating button, and a batch of concurrent-memory-isolation, upload-path, and model-probe fixes.

That's it.


1. All three approval paths close the loop

MateClaw has three approval paths. Until now only the first was end-to-end; the other two had functional gaps (one a known silent failure):

Path Notify Resolve entry Resume
Conversation tool approval (Web/IM) ✅ ✅ ✅
Workflow await_approval step ❌→✅ ⚠️→✅ ✅
WebAPI (API-Key / WebChat) channel ❌→✅ ❌→✅ ❌→✅

Workflow approvals no longer fail silently. A step's declared approverChannels (e.g. feishu:oc_xxx) used to be serialized into the approval row for display only — nothing in the codebase read it back to send a notification. Now the step actually pushes an approval notification per channel, and the resolve → resume bridge is wired up (activating a recovery path that was previously dead code), so an approved workflow continues from the paused step.

WebChat (API-Key) channel gains the approval interaction. Before, an agent bound to WebChat that hit a ToolGuard-protected tool would suspend, but the visitor couldn't resolve it — the approval hung to a 30-minute GC timeout, wasting the whole turn. Now /sessions/approve and /sessions/deny endpoints reuse visitorToken + conversation-ownership auth (the pendingId is strictly scoped to the owned conversation, closing a cross-visitor IDOR), approve replays the tool, deny returns a synchronous result, and both broadcast tool_approval_resolved so the SDK clears the approval banner in real time.

Feishu / WeCom card clicks resolve workflow approvals directly. Once a workflow approval is pushed to a Feishu/WeCom group, the Approve/Deny buttons now actually work — fixing the fail-closed identity check for workflow approvals (system-initiated, no userId) and the dead end where the synthesized message's conversationId never matched workflow:run:{runId} so the pending was never found.

See Workflow and Security.


2. Long tasks are visible — Run Overview + token breakdown + sub-agent cost

Long tasks (multi-step plans, multi-agent collaboration) used to mean scrolling the message stream to track progress — and gave you no idea what they cost. This release puts both progress and cost on the table.

The always-on "Run Overview" rail. The chat view gains a persistent rail that assembles the data the backend already streams into one place:

  • Plan progress — in plan mode, live per-step status (pending / running / completed) and a progress count, with expandable step results. A "planning…" placeholder shows before the plan streams in, so the rail doesn't flicker.
  • Live sub-agent status — delegated sub-agents render as a live tree (name, tools called, running / completed / error / stalled state), with multi-level delegation expandable layer by layer.
  • One-click generated-file download — files written by execute_code / execute_shell_command, and other agent-produced artifacts, surface as clickable attachments right in the rail (the download uses the real filename, not the raw id URL).
  • Collapse / drawer — collapses to a badged rail; below 1280px it degrades to a floating drawer so it never squeezes the conversation column.

Per-turn token breakdown. Each turn now shows a usage breakdown: input / output / reasoning tokens, plus the cache hit / miss / write split — so you can see at a glance how much the Anthropic prompt cache saved and how much reasoning cost.

Sub-agent cost rolled up. Each delegated sub-agent's token usage rolls up layer by layer into the turn's total footer; both single-task and plan-step delegation surface it in a structured way, so what a spun-up team cost is right there.

Pure frontend assembly reusing the existing SSE event stream. See Chat.


3. Fits the real model window — context & token budgeting

Injection (memory, Wiki, the identity prompt, tool schemas) used to be stacked in on fixed assumptions. Against a small-window local model or a strict local inference server, that meant either a silent truncation or a max_tokens pre-flight rejection. This release makes every injected block scale with the real model window.

  • Local-model context-window probing — the real context window of Ollama / vLLM feeds the session budget; on an over-limit error the window value is back-solved and refilled, instead of "guess 32K".
  • Unified token budget for prefix injection — memory / Wiki and other first-request injection blocks scale together against the model's effective window; an oversized identity prompt warns instead of silently blowing the window.
  • Small-context degradation tiers — compact / floor tiers tighten injection, the compression trigger ratio adapts to 0.85, prefix chunks are counted, and a pre-overflow fast-fail keeps small windows stable.
  • Tool-schema budget gate — when too many tools push schemas over the window budget, cold tools auto-degrade to the extended catalog by usage frequency; enable_tool brings any back on demand.
  • Reasoning output cap respects model config — the reasoning node clamps its output cap against both the model's configured maxTokens and the real window, fixing the strict local server's max_tokens pre-flight rejection.
  • Informative compaction placeholders — after context is compacted, the placeholder keeps the tool name / original size / first-line gist so the model can judge whether to re-run, instead of a blob of "[omitted]".

See Models and Chat.


4. Opens up — KB / Deep Research open API + pluggable search + MCP identity forwarding

This release exposes MateClaw's capabilities as controlled open APIs for external systems for the first time, and makes the tool ecosystem more pluggable.

Knowledge-base and Deep Research open API. A new open-API surface for external integrations: 9 endpoints for knowledge-base search / pages / entities, plus the full Deep Research start / SSE / status / cancel flow. Auth goes through a dedicated API key (not a logged-in session), with rate limiting and centralized authorization; a session is strictly bound to the kbId in its path, and a cross-KB IDOR is closed. External apps can now call MateClaw's knowledge base and deep research directly, without logging into the admin console.

Pluggable search Provider. Search graduates from a few built-in implementations to a pluggable SPI: a new PluginType.SEARCH and PluginSearchProvider interface let a third-party search source drop in like a plugin; a search-provider catalog endpoint, a grouped settings UI, and a plugin config form let you pick and configure a search source right in Settings.

MCP identity forwarding. A STDIO-type MCP server can now, opt-in per server, forward the current authenticated user's identity (on-behalf-of), typed by channel and trust level; it fails closed on an unknown channel and self-heals the signing key, so identity can't be spoofed. Local MCP tools can finally know "who's using this right now."

See API, MCP, and Tools.


5. Reaches further — desktop remote + LAN deployment mode

Desktop connects to a remote server + source open-sourced. For the "many people collaborating against one centrally deployed server" scenario:

  • Local / remote dual mode — run the embedded JVM locally, or connect directly to a centrally deployed remote server.
  • First-run connection chooser — the first launch lets you pick the mode and enter the server URL (auto-prefixes https://, normalizes and validates).
  • Multi-server & switching — remembers recently used servers (up to 8) and a "Switch Server" menu to change environments anytime.
  • Self-signed intranet certs — accepts self-signed certificates for host...
Read more

MateClaw 1.6.0

Choose a tag to compare

@mateaix mateaix released this 22 Jun 13:02

v1.6.0

Stable · 2026-06-22 · Previous stable v1.5.0

Three big things this release

Let me say it straight.

v1.5.0 made the employee verifiable — goals grew a checklist, the Wiki started maintaining itself, memory learned whose memory it is. This release is less about a single new superpower and more about where the employee can run, what it can do with its hands and eyes, and how directly you can shape who it is.

Three things: it now runs on the databases you may be required to use, it grew new senses and hands, and you can now shape its identity and reach without touching prompts.

First, it runs on domestic databases. KingbaseES (人大金仓) and PostgreSQL are first-class now. PostgreSQL and KingbaseES share one migration tree — the same SQL drives both, because KingbaseES speaks PostgreSQL. The PostgreSQL driver ships in the default build; the KingbaseES driver is opt-in (it isn't on Maven Central). MySQL and the desktop H2 default are untouched — this is a new option, not a forced migration.

Second, it grew new senses and hands. The employee can re-examine an image on demand and keep that image in context across turns — ask a follow-up about a screenshot you sent three messages ago and it still sees it, instead of having forgotten it after the first reply. And it can write and run code — execute_code lets the employee author a snippet and execute it, so "compute this," "transform that file," "verify this number" become real actions instead of guesses.

Third, you shape who the employee is — directly. Its context files (AGENTS.md and friends) now have a real editor: a modal, surfaced as a settings row, with section reordering. A static About You identity block goes into the system prompt. The employee even knows which model it's running on now, injected each turn. You can scope an employee's knowledge-base access to a bound subset, and filter the roster by tags.

Plus the medium things: the Wiki's raw materials and source watcher merged into one Sources tab with per-KB auto-sync and glob patterns; a global outbound proxy with a settings page; and final answers got deterministic, cleaner Markdown.

That's it.


1. It runs on domestic databases — KingbaseES + PostgreSQL

Until now production meant MySQL (with H2 for the desktop app). For teams in regulated or domestic-procurement environments, that was a wall. This release puts the employee on KingbaseES (人大金仓) and PostgreSQL.

One migration tree for the whole PostgreSQL family. KingbaseES is PostgreSQL-compatible at the SQL and wire level, so both run off the same migration tree (db/migration/kingbase) and the same seed data. There is no third hand-maintained copy of every migration — the PostgreSQL family is one set of scripts, written in portable PostgreSQL.

The drivers are handled differently, on purpose:

Database Driver Build
PostgreSQL org.postgresql (on Maven Central) in the default build — nothing extra
KingbaseES com.kingbase8 (not on Maven Central) opt-in -Pkingbase Maven profile

The KingbaseES driver isn't published to Maven Central, so making it a hard dependency would break mvn package for everyone who doesn't have the proprietary jar. Instead it lives in an opt-in profile — the default build never needs it, and KingbaseES users install the jar locally and build with -Pkingbase. No Java code imports the driver; both databases are selected at runtime by Spring profile (postgres / kingbase) and JDBC URL.

Strict-PostgreSQL portability. KingbaseES tolerates loose typing; stock PostgreSQL does not. The shared tree was hardened so it runs on both: boolean columns use real TRUE/FALSE instead of 0/1, a Kingbase-only SYS_GUID() became a portable md5(random()::text), and the seed data dropped Oracle-isms like FROM DUAL. Validated by applying all migrations plus both locale seeds against a real PostgreSQL instance.

Least-privilege roles in Docker. The production compose splits the database account in two: a bootstrap/superuser used only to initialize, and a restricted application role (owns its schema, runs migrations, but is not a cluster superuser) that the server actually connects with. An init script creates the app role safely (quoted identifiers and literals, so an exotic password can't break it).

MySQL and the H2 desktop default are unchanged. See Configuration for the profiles.


2. New senses and hands — vision in context, and code execution

It keeps the image, and can look again

Before, an image was analyzed once, at the moment you sent it, and the text result was all that survived. Ask a follow-up and the employee was reasoning over a caption, not the picture.

Now the image stays in context across turns. Send a screenshot, get an answer, then ask "what's the number in the top-right?" three messages later — the employee still has the image and answers from it. A new image_analyze tool lets it re-examine an image on demand — re-read the same image with a fresh, specific question instead of re-uploading.

This pairs with channel fixes so inbound images from IM (e.g. WeCom) are staged correctly rather than stored URL-only.

It can write and run code

The new execute_code tool lets the employee author a snippet and run it. "Compute the compound interest," "reshape this CSV," "check whether these two hashes match" — instead of an LLM estimating the answer in prose, the employee writes the code, runs it, and reports what actually came back. Verifiable arithmetic, real file transforms, real checks.


3. You shape who the employee is — and what it can reach

Context files got an editor

AGENTS.md and the other context files (SOUL.md / PROFILE.md / …) are how you tell an employee who it is and how to behave. This release gives them a real editor: open it in a modal, reach it as a row in the agent's settings, and reorder sections. The agent editor also lets you manage AGENTS.md directly and clarifies what each context file is for, so you're not guessing which file shapes what.

A static "About You" identity block

An explicit About You block is appended to the system prompt — a stable identity statement the employee always carries, separate from the dynamic per-turn context.

The employee knows which model it's running on

Each turn now injects a runtime model identity line — the employee is aware of the actual model and provider it's executing on. "Which model are you?" gets an honest answer, and behavior that should depend on the running model can.

Knowledge-base access can be scoped

An employee's wiki access can be scoped to a bound subset of knowledge bases (migration V141), instead of every KB in the workspace. The roster also gained tag filtering, and tags are edited with a chip-style editor.


4. The Wiki got a Sources tab

The Wiki's two ways of getting material in — uploaded raw materials and the local-directory source watcher — were separate surfaces. They're now one Sources tab per knowledge base, with per-KB auto-sync.

  • Multi-path and glob source directories — a KB's source can be several paths and glob patterns, matched against the symlink-resolved scan root (no escaping the allowed roots).
  • A guided form editor for the pageType profile — define a KB's page types through a form instead of hand-writing JSON (the JSON stays available for review).
  • KB management and reading are now separate workspace views — browsing a knowledge base and administering it no longer share one cramped screen.
  • Reclassify existing pages against the current pageType profile, and pageType profiles are now honored consistently across transformations, agent-authored pages, and the UI.

See LLM Wiki.


5. A global outbound proxy

A new proxy settings page configures a global outbound proxy for the whole server.

  • HTTP(S) proxying covers all outbound traffic, including LLM API calls — useful when the box only reaches the internet through a corporate proxy.
  • SOCKS is honored on the JDK HTTP paths (non-LLM traffic such as webhooks and file fetches); some HTTP clients ignore SOCKS, so LLM calls should use the HTTP(S) form.

Settings are applied live and shown back in the UI with the active proxy host/port and type.


6. Cleaner answers

  • Deterministic Markdown normalization for final answers (#275) — the employee's final answer goes through a deterministic normalization pass so spacing, lists, and code fences render consistently instead of model-by-model drift. There's a kill-switch to turn it off if you want the raw model output.
  • Shopping recommendations render as clickable product cards — when an answer recommends products, they come back as cards you can click, not a wall of links.

A few more things

Models:

  • Claude Fable 5 support (migration V145) — model entries for the latest Claude family member.

Channels:

  • Webchat is now Web/API access with multi-session — the embeddable webchat takes an optional agentId and a sessionId for multiple parallel sessions, plus session-management endpoints (list / messages / delete) so an integration can manage its own conversations.
  • Feishu group @-mention alias learning — the employee learns the aliases a group uses to @-mention it, fixing missed mentions; group sessions now key on the full chatId to avoid suffix collisions.

Reliability:

  • MCP cache refreshes on connection change (#289) — adding/removing an MCP server refreshes the affected agents' tool cache, and connecting is non-blocking so a slow server can't stall startup.
  • Skill workspace stability — skill workspaces persist on the existing data volume (#273) and non-ASCII skill names no longer collide o...
Read more

MateClaw 1.5.0

Choose a tag to compare

@mateaix mateaix released this 05 Jun 15:41

v1.5.0

Stable · 2026-06-04 · Previous stable v1.4.0

Three big things this release

Let me say it straight.

In v1.4.0 we made the employee more autonomous — you set a goal, it locks on, self-checks, keeps itself going. But that self-check was fuzzy: the evaluator gave a 0–1 score, and you couldn't see what was missing or how many sub-tasks were left.

This release is about three things: making autonomy verifiable, making the knowledge base self-maintaining, and making the whole system genuinely multi-user.

First, goals grew a checklist. No more fuzzy score. The employee breaks a goal into a few independently verifiable criteria and the evaluator ticks them off one by one, every turn. Done means every box ticked — no "95% is close enough." The ring around the avatar, on hover, is now a checklist you can read box by box.

Second, the Wiki learned to maintain itself. Pages interlink with [[wikilinks]]; renames and deletes cascade-fix the links; a one-click broken-link lint. Knowledge splits into a fact layer and an experience layer — change a fact page and the experience pages that depend on it auto-flag as "needs review." Page types (pageType) carry schemas and permissions, so which employee can read/write which kind of page is controlled. You can attach processing pipelines that fire when a page hits some condition. And a local directory can be mounted as a knowledge source with scheduled incremental sync.

Third, memory knows who's who. Before, an employee's memory was one big pot — whoever chatted, it all piled into the same MEMORY.md. Now every memory carries an owner_key and a visibility scope (personal / team / global). One employee serving a group keeps each person's private memory separate; third-party APIs can even pass through an end-user identity to isolate memory per end user.

Plus two medium things: each employee can bind one primary knowledge base, and model selection actually honors your preferred provider. And a pile of polish.

That's it.


1. Goals grew a checklist — from "a score" to "ticked boxes"

In v1.4.0 the evaluator returned a completion score (0–1) and a one-line "what's missing" each turn. The problem: what does 0.8 mean? Which parts are done, which aren't, how many steps remain — you couldn't see it, and the employee was deciding whether to continue off a fuzzy number too.

This release replaces that with a checklist.

A goal = a set of independently verifiable criteria. You say "deploy the blog to fly.io" and the employee (or evaluator) breaks it into concrete criteria: DNS resolves correctly, SSL cert valid, health check passes, smoke tests green. Each one is a sentence a human can read and an LLM can judge.

The evaluator has two modes:

Mode When What it does
bootstrap No criteria yet Decomposes the goal into a checklist; each starts "not passed"
verdict Criteria exist Judges each one: satisfied? with evidence

Both modes use structured output — the evaluator must return a typed object (criterion id + passed + evidence), not free text we have to parse.

Completion is now deterministic. There used to be a fuzzy threshold. Now: completion only when every criterion passes. 19 of 20 passed (a 0.95 score) is still "continue," not "done." Miss one, and one is missing.

Auto-followup targets the remaining criteria. With autoFollowup on, if the employee finishes a turn without ticking everything, the injected follow-up prompt lists the criteria still open — "5/8 done, remaining: ① … ② …, take the next step on these" — instead of a vague "continue."

The ring, on hover, is a checklist card. With no checklist it's a one-line tooltip (title + what's missing); with a checklist it's a card: title + X/Y progress, then each criterion prefixed by ○ (open) or ✓ (green, done, struck through). While evaluating, a sand-gold breathing halo surrounds the avatar.

Evaluator SPI. The evaluation logic implements Spring AI's Evaluator interface — it does both goal-specific checklist verdicts and can be reused as a generic evaluator. Failed evaluator calls still count against the LLM budget (no free rides), so the budget accounting stays honest.

One new tool + one new API endpoint:

  • Agent tool addGoalCriterion — append a criterion to a live goal without restarting it
  • REST POST /api/v1/goals/{id}/criteria — append a criterion programmatically
  • Goal creation can carry an initial checklist directly: criteria: ["...", "..."] (skips the bootstrap round)

New config keys (mateclaw.goal.*): default-auto-followup (create-time default for auto-followup), allow-auto-followup (runtime master switch — off means no goal injects a follow-up), max-followups-per-run (hard cap on auto-followups within a single graph run, default 8).

Full details in Persistent Goals.

The v1.4.0 goal was "the employee remembers what it's doing." The v1.5.0 goal is "the employee knows exactly which boxes are still open." From a score to a checklist you can tick.


2. The Wiki learned to maintain itself

This is the heaviest chunk of the release. The Wiki grew from "a searchable knowledge base" into "a knowledge engine that maintains its own consistency, layers itself, and runs its own pipelines."

Pages can interlink — [[wikilinks]]

Write [[target-slug]] or [[slug|display text]] in a page body to link to another page.

  • Slug-first resolution — links match by slug exactly (case-insensitive), no fuzzy guessing. [[...]] inside fenced (```) or inline code is left alone.
  • Rename / delete cascade — rename a page's slug and in the same transaction every wikilink across the KB pointing at the old slug is rewritten, alias text preserved ([[oldslug|x]] → [[newslug|x]]). Cascade delete cleans up references too.
  • Broken-link lint — POST .../lint/broken-links starts an async scan job; results are persisted onto the page rows, so they survive a restart. GET .../lint/broken-links returns the aggregate (how many pages have broken links, total broken refs).
  • Clickable wikilinks in chat — wikilinks rendered in a chat answer are clickable; a cross-KB lookup navigates to the target page.

Knowledge is layered — fact vs experience

Each page can carry a knowledge layer:

  • fact — "what is": foundational fact pages (unlabeled defaults to fact)
  • experience — "what it means": synthesis, analysis, insight, which depends on a set of fact pages

Staleness propagates. An experience page declares which fact pages it depends on (edges stored by page id, so renames don't break them). When a fact page is updated during ingest, every experience page depending on it is auto-marked stale (needs review) + a reason. The wiki_stale_pages tool lists everything currently flagged.

Search can filter by knowledge layer (facts only / experience only / all).

Page types now have profiles and permissions

pageType profile (KB-scoped) — defines which page types a KB has (e.g. "concept / tutorial / decision record"), each carrying: a structured-field schema, route/create/merge-stage prompts, and a Markdown template. New pages get their metadata schema-validated on save, with the validation status recorded. At most one enabled profile per KB; unconfigured KBs use a built-in default.

pageType permissions (per-agent) — for "this agent + this KB + this page type" you can set read/create/update/delete flags plus a write policy (allow immediate / approval_required / deny). page_type='*' is the KB-wide default; exact matches beat the wildcard. Read and write fall back differently: an unmatched read falls back to the KB-level default read policy (allow_all by default, so KBs stay fully readable after upgrade); write is opt-in tightened — allow with no rules, but once any rule exists the KB is "locked down" and a page type with no matching rule resolves to deny (fail-safe).

Knowledge bases can run pipelines

Wiki Pipeline — define a processing flow for a KB, fired automatically by page events:

  • Triggers: page_type_count (a page-type count crosses a threshold), page_created (a page of a given type is created), stale_marked (pages get flagged stale)
  • Step executors: llm (run input through the model, output becomes the step result), skill (run a skill from a restricted set, as the owner agent)
  • Definitions are written in YAML or JSON, with CRUD + validate endpoints; every run and every step is persisted and queryable (.../pipelines/{id}/runs, .../pipeline-runs/{runId}), deduplicated by (definition, trigger, subject, bucket) for idempotency.

A local directory can be a knowledge source — pluggable + scheduled incremental

Ingest-Source SPI — knowledge sources are a pluggable interface (WikiIngestSourceProvider) with a built-in filesystem provider: give a KB a source_directory and files in it get ingested.

  • Scheduled incremental sync — a background scheduler (@SchedulerLock so only one node runs per cycle) scans periodically, detects changes by content hash, and re-ingests only new/modified files (text and binary).
  • Security is fail-closed — paths are normalized then toRealPath()-resolved to follow symlinks (closing TOCTOU), and validated against an allowed-roots allowlist; under the production profile an empty allowlist rejects everything by default.
  • Status + manual trigger — GET .../source-watcher shows watcher status, POST .../source-watcher/scan runs a scan immediately.

New Wiki tools

  • wiki_update_page — in-place edit of a page (keeps the slug), gated by the pageType "update" permission
  • wiki_stale_pages — list every page currently flagged for review

All wiki write tools (create / update / archive / delete) now pass through pageT...

Read more