Skip to content

Commit 7de7cd1

Browse files
committed
chore(desktop): prepare 1.4.2 release
1 parent d26e38b commit 7de7cd1

6 files changed

Lines changed: 66 additions & 61 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Fix Plan Gate deadlock: stale-plan latch now warns (never hard-blocks) on tool execution, aligned with codex exec-policy philosophy. A mutating tool on a stale plan receives a reminder but always runs.
66
- Fix goal-loop scorer false positives: `extractValidationResults` now scopes extraction to declared validation commands only (toolCallId→command mapping), with latest-wins per command. Diagnostic bash calls no longer poison the score.
77
- Fix cancel/loop test flake: `maxRetries:0` in the test provider config prevents AI SDK exponential-backoff retries against the intentionally-dead test URL; per-test budgets raised from 3 s to 15 s.
8-
- Bump desktop app to 1.4.2.
8+
- Release Desktop 1.4.2 with DeepAgent Core V4.0.4.
99
- Publishing truth: fix quick-start command (`deepagent-code run`), comment out unpublished npm install, unify domain to `deepagent.ltd`, replace `lessweb`/`anomalyco` org handles, update SECURITY.md supported-version line and M-CRED status, update CHANGELOG.
1010

1111
## V4.0.3 - Upstream kernel alignment (AppNode foundation)

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a href="https://github.com/deepagent-ltd/deepagent-code-enterprise">Enterprise</a>
1515
</p>
1616

17-
<p align="center"><sub>Desktop 1.4.2 · DeepAgent Core V4.0</sub></p>
17+
<p align="center"><sub>Desktop 1.4.2 · DeepAgent Core V4.0.4</sub></p>
1818

1919
---
2020

@@ -91,17 +91,16 @@ For high-risk decisions, convene an **Expert Panel**. Correctness, security, per
9191

9292
Project IM brings people and agents into the same thread. Mention an agent to start a scoped run with project context, stream its progress, inspect its artifacts, and keep the answer attached to the conversation that requested it.
9393

94-
## DeepAgent Core V4.1
94+
## DeepAgent Core V4.0.4
9595

96-
V4.1 brings the complete DeepAgent control plane together:
96+
V4.0.4 closes production contract gaps while keeping the current turn engine stable:
9797

98-
- **Durable Session V2:** prompt admission is persisted before execution; exact retries do not duplicate user intent; same-session wakes coalesce safely.
99-
- **One provider-turn contract:** native and AI SDK providers share the same budget, permission, artifact, audit, learning, and close lifecycle.
100-
- **Single durable truth:** DocumentStore owns documents, plans, learning candidates, governance state, and version conflicts through atomic, recoverable writes.
101-
- **Event-driven Agent OS:** durable events, priority routing, backpressure, worker claims, leases, handoffs, retries, dead-letter recovery, and distributed placement coordinate autonomous work.
102-
- **Consumer-driven goals:** `goal.tick.requested` claims and executes one idempotent tick, records facts, and schedules the next tick only when the durable goal remains eligible.
103-
- **Human oversight:** approval queues, trace correlation, takeover, rollback, Wiki archives, notifications, and organization/workspace isolation remain part of the execution path.
104-
- **Secure integrations:** MCP credentials use environment references or native OS secret storage; catalog risk, runtime permissions, trusted sources, and tool capability checks fail closed.
98+
- **Single durable truth:** DocumentStore uses atomic, recoverable writes for documents, plans, learning candidates, governance state, and version conflicts.
99+
- **Isolated subagents:** write-capable subagents use dedicated worktrees by default and return their changes to the parent workspace through a bounded, conflict-aware path.
100+
- **Reliable event delivery:** the Event Bus has a transport seam, durable consumer offsets, offline catch-up, real priority ordering, and observable queue depth.
101+
- **Governed learning and goals:** knowledge promotion is tied to review evidence and ship-gate snapshots; event-driven goal ticks remain idempotent and respect quiet hours.
102+
- **Secure integrations:** MCP credentials use environment references or native OS secret storage on macOS, Linux, and Windows; capability and source checks fail closed.
103+
- **Publishing truth:** installation, CLI examples, release metadata, public domains, and supported-version documentation match the product that is actually shipped.
105104

106105
## Installation
107106

README.zh.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a href="https://github.com/deepagent-ltd/deepagent-code-enterprise">Enterprise 版本</a>
1515
</p>
1616

17-
<p align="center"><sub>桌面版 1.4.1 · DeepAgent Core V4.1</sub></p>
17+
<p align="center"><sub>桌面版 1.4.2 · DeepAgent Core V4.0.4</sub></p>
1818

1919
---
2020

@@ -91,22 +91,25 @@ DeepAgent 可以把独立工作拆分给数量有界、相互隔离的 Worker。
9191

9292
项目 IM 把团队成员和智能体放进同一条讨论。@ 某个智能体即可启动有明确作用域的运行,使用项目上下文、流式展示进度、关联执行工件,并把答案留在发起任务的对话里。
9393

94-
## DeepAgent Core V4.1
94+
## DeepAgent Core V4.0.4
9595

96-
V4.1 把完整的 DeepAgent 控制平面汇聚在一起
96+
V4.0.4 在保持当前 turn 引擎稳定的前提下,关闭生产合同缺口
9797

98-
- **持久 Session V2:** prompt 先持久准入、再调度执行;精确重试不会复制用户意图;同一 Session 的唤醒会安全合并。
99-
- **统一供应商轮次合同:** native 与 AI SDK provider 共享预算、权限、工件、审计、学习和关闭生命周期。
10098
- **单一持久真相:** DocumentStore 通过原子、可恢复写入统一管理文档、计划、学习候选、治理状态和版本冲突。
101-
- **事件驱动 Agent OS:** 持久事件、优先级路由、回压、Worker claim、租约、handoff、重试、死信恢复与分布式 placement 协调自主工作。
102-
- **消费者驱动 Goal:** `goal.tick.requested` 每次认领并执行一个幂等 tick,记录事实,并只在持久目标仍满足条件时调度下一 tick。
103-
- **人类监督:** 审批队列、全链路 trace、接管、回滚、Wiki 档案、通知,以及组织和 workspace 隔离始终位于执行路径上。
104-
- **安全集成:** MCP 凭据使用环境变量引用或原生操作系统 secret storage;目录风险、运行时权限、可信来源和工具 capability 逐层失败关闭。
99+
- **隔离子智能体:** 具备写权限的子智能体默认使用独立 worktree,并通过有界、可感知冲突的路径把改动回传到父工作区。
100+
- **可靠事件投递:** Event Bus 提供可替换 transport、持久 consumer offset、离线补投、真实优先级排序和可观测队列深度。
101+
- **受治理的学习与目标:** 知识晋升关联审阅证据与 ship-gate snapshot;事件驱动 goal tick 保持幂等并遵守 quiet hours。
102+
- **安全集成:** MCP 凭据使用环境变量引用或 macOS、Linux、Windows 原生 secret storage;capability 与来源检查逐层失败关闭。
103+
- **发布真实性:** 安装方式、CLI 示例、发布元数据、公开域名和支持版本文档与实际交付产品一致。
105104

106105
## 安装
107106

107+
> **说明:** `deepagent-code` npm 包尚未公开发布。
108+
> 请通过桌面应用或下面的安装脚本安装。
109+
108110
```bash
109-
npm install -g deepagent-code
111+
# 安装脚本(macOS / Linux)
112+
curl -fsSL https://deepagent.ltd/install | bash
110113
```
111114

112115
然后运行:
@@ -178,7 +181,7 @@ deepagent auth list
178181
启动智能体并交给它一个任务:
179182

180183
```bash
181-
deepagent-code "为 /api/users 端点添加限流"
184+
deepagent-code run "为 /api/users 端点添加限流"
182185
```
183186

184187
智能体将会:

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

design/README.md

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
# DeepAgent Code — Architecture & Design
22

3-
> **Public design overview.** Internal implementation details and roadmap docs live in the private `docs/` tree (not version-controlled). This directory contains the publicly visible architectural narrative.
3+
> **Public design overview for DeepAgent Core V4.0.4 / Desktop 1.4.2.** Internal implementation details and roadmap documents live in the private `docs/` tree and are intentionally not version-controlled.
44
55
---
66

77
## What is DeepAgent Code?
88

99
DeepAgent Code is an AI coding agent that adds a **control plane** on top of the [opencode](https://github.com/sst/opencode) runtime. It keeps the proven opencode foundations (runtime, tool, MCP, session, provider stack) and layers in:
1010

11-
- **Durable document memory**knowledge base with retrieval gates, dedup, and merge
12-
- **Context assembly** — selective, evidence-backed context building (not raw file dumps)
13-
- **Plan system** — structured task planning with staleness detection and rollback
14-
- **Failure triage**three-tier classifier (auto-fixable / needs-narrowing / not-auto-fixable)
15-
- **Domain adapters**pluggable domain packs for specialized workflows
11+
- **Durable document and project memory**atomic, recoverable storage with retrieval gates, provenance, governance, and conflict detection
12+
- **Connected context** — selective, evidence-backed assembly across code, knowledge, project memory, and execution documents
13+
- **Plans and long-running goals** — structured plans, stale-state detection, validation evidence, bounded retries, and human control
14+
- **Event-driven coordination**durable delivery, priority routing, offline catch-up, idempotent goal ticks, and observable queue state
15+
- **Isolated agent collaboration**bounded subagents, worktree isolation for write-capable workers, and conflict-aware change return
1616
- **AI IDE microservice** — LSP-backed semantic code navigation via `code_intel`
17-
- **MCP catalog** — curated, one-click-enable MCP servers with safety tiers
17+
- **Secure MCP catalog** — curated integrations, derived safety tiers, environment references, and native OS secret storage
1818

1919
---
2020

2121
## Architectural Principles
2222

2323
### 1. Enhance, don't replace
2424

25-
DeepAgent is built **on top of** the opencode agent/runtime/session/tool/MCP stack. It does not rewrite the execution engine, tool system, or provider layer. The default agent behavior is not degraded. The lower-strength `general` mode stays close to the inherited runtime contract.
25+
DeepAgent is built **on top of** the opencode agent/runtime/session/tool/MCP stack. V4.0.4 strengthens the control plane without replacing the current turn engine, tool system, or provider layer.
2626

27-
### 2. Control-plane only
27+
### 2. One durable authority per concern
2828

29-
DeepAgent is responsible for **strategy / context / budget / audit / verification / document graph**. It does not directly spawn LSP processes or execute MCP tools — those go through the existing `LSP.Service` and `MCP.Service` respectively.
29+
Documents, plans, event delivery state, knowledge promotion, and goal progress each have one authoritative durable store. In-memory state may accelerate delivery, but it cannot become a second source of truth.
3030

3131
### 3. Full tool output does not enter context
3232

@@ -36,6 +36,10 @@ Per the deterministic task control contract: raw LSP results, diagnostic dumps,
3636

3737
MCP catalog entries default to **not connected** (zero startup overhead). Dangerous write operations (force-push, DROP, file delete) require explicit approval. Read-only DB connections enforce restricted-mode at the server level.
3838

39+
### 5. Keep execution boundaries explicit
40+
41+
Write-capable subagents run in isolated worktrees by default. Event consumers claim durable work with idempotency and retry boundaries. Users retain explicit paths to approve, steer, pause, resume, take over, or roll back long-running work.
42+
3943
---
4044

4145
## Component Map
@@ -44,24 +48,23 @@ MCP catalog entries default to **not connected** (zero startup overhead). Danger
4448
┌─────────────────────────────────────────────────────────────┐
4549
│ DeepAgent Control Plane │
4650
│ │
47-
│ ┌──────────────┐ ┌─────────────┐ ┌───────────────────┐ │
48-
│ │ Plan System │ │ Doc Memory │ │ Failure Triage │ │
49-
│ │ (task/plan) │ │ (knowledge │ │ (3-tier classify)│ │
50-
│ └──────┬───────┘ │ store) │ └─────────┬─────────┘ │
51-
│ │ └──────┬──────┘ │ │
52-
│ ┌──────▼──────────────────▼──────────────────▼───────────┐ │
53-
│ │ Agent Gateway (core) │ │
54-
│ │ audit · budget · permission · capability index │ │
55-
│ └──────┬─────────────────────────────────────────────────┘ │
56-
└─────────│───────────────────────────────────────────────────┘
57-
58-
┌─────────▼──────────────────────────────────────────────────┐
59-
│ opencode Foundation (unchanged) │
60-
│ │
61-
│ Session ─── Tool Registry ─── MCP Service │
62-
│ │ │ │ │
63-
│ Provider LSP Service 38 lang servers │
64-
│ (Claude/…) code_intel tool + MCP catalog │
51+
│ DocumentStore ─ Plan/Goal ─ Knowledge Governance │
52+
│ │ │ │ │
53+
│ Context Graph ─ Event Bus ─ Oversight and Audit │
54+
│ │ │ │ │
55+
│ ┌────▼──────────────▼────────────────▼──────────────────┐ │
56+
│ │ Agent Gateway: budget · permission · evidence · policy│ │
57+
│ └────┬───────────────────────────────────────────────────┘ │
58+
└───────│─────────────────────────────────────────────────────┘
59+
60+
┌───────▼────────────────────────────────────────────────────┐
61+
│ opencode Foundation │
62+
│ Session · Provider · Tool Registry · LSP · MCP │
63+
└────────────────────────────────────────────────────────────┘
64+
65+
┌───────▼────────────────────────────────────────────────────┐
66+
│ Execution Boundaries │
67+
│ isolated subagents · worktrees · event consumers · tools │
6568
└────────────────────────────────────────────────────────────┘
6669
```
6770

@@ -93,28 +96,28 @@ Each catalog entry carries a **risk tier** derived at load time from the catalog
9396
| `write_guarded` | filesystem, github, git | Write ops require explicit approval |
9497
| `external_fetch` | fetch, browser (Playwright) | External requests require explicit approval |
9598

96-
**Credentials** are declared by key name in the catalog template (`CredentialSpec`). Values are filled at enable-time.
97-
98-
> **Known limitation (V3.4):** credential values are stored in plaintext in the local config file. Do not commit config files containing credentials to version control. A secure-storage mechanism (OS keyring, aligned with the codex approach) is planned for V3.5.
99+
**Credentials** are declared by key name in the catalog template (`CredentialSpec`). Configuration stores environment references or `secret://` handles instead of plaintext values. Handles resolve at connection time through macOS Keychain, Linux Secret Service (`libsecret`), or Windows DPAPI-backed credential storage.
99100

100101
---
101102

102103
## Security Model Summary
103104

104105
| Mechanism | Status |
105106
|-----------|--------|
106-
| MCP risk tier — catalog-derived, not config-injectable | ✅ V3.4 |
107-
| MCP catalog defaults to not connected | ✅ V3.4 |
108-
| Dangerous writes: approval gate (`ctx.ask`) | ✅ V3.4 |
109-
| Read-only DB: restricted-mode enforced at server | ✅ V3.4 |
110-
| Credential secure storage (OS keyring) | ⏳ V3.5 M-CRED |
107+
| MCP risk tier — catalog-derived, not config-injectable | Available |
108+
| MCP catalog defaults to not connected | Available |
109+
| Dangerous writes: approval gate (`ctx.ask`) | Available |
110+
| Read-only DB: restricted mode enforced at server | Available |
111+
| Credential indirection (`${VAR}` / `secret://`) | Available |
112+
| Native secret storage (macOS / Linux / Windows) | Available in V4.0.4 |
113+
| Subagent write isolation and conflict-aware return | Available in V4.0.4 |
111114

112115
---
113116

114117
## License
115118

116119
DeepAgent Code is licensed under **AGPL-3.0-or-later**.
117-
Source code: [github.com/lessweb/deepagent-code](https://github.com/lessweb/deepagent-code)
120+
Source code: [github.com/deepagent-ltd/deepagent-code](https://github.com/deepagent-ltd/deepagent-code)
118121

119122
DeepAgent Code is derived from [opencode](https://github.com/sst/opencode) (MIT).
120123
See `NOTICE` in the repository root for the full upstream attribution.

packages/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@deepagent-code/desktop",
33
"private": true,
4-
"version": "1.2.0",
4+
"version": "1.4.2",
55
"type": "module",
66
"license": "AGPL-3.0-or-later",
77
"homepage": "https://deepagent-code.ai",

0 commit comments

Comments
 (0)