From ee56dbb75344b5c67376635988fe58717c3c2209 Mon Sep 17 00:00:00 2001 From: XiuChengWu <732857315@qq.com> Date: Wed, 27 May 2026 08:57:30 +0800 Subject: [PATCH] Sync site with current dstalk repo structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reflect the plugin-host architecture: dstalk-core.dll now hosts 9 functional plugins (deepseek, anthropic, network, lsp, session, context, config, file-io, tools), with dstalk-cli + SDL3 dstalk-gui both consuming the same C ABI. Update badges, hero stats, terminal demo, features, architecture diagram, tech-stack table, roadmap, and contributor section across index.html and en.html accordingly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- en.html | 98 ++++++++++++++++++++++++++++++------------------------ index.html | 95 +++++++++++++++++++++++++++++----------------------- 2 files changed, 108 insertions(+), 85 deletions(-) diff --git a/en.html b/en.html index 0b09de9..9434bcf 100644 --- a/en.html +++ b/en.html @@ -3,10 +3,10 @@ - + - + @@ -213,7 +213,7 @@
dstalk.top is the official website for the dstalk project

dstalk

-

An AI coding CLI powered by DeepSeek V4 and compatible with OpenAI / Anthropic APIs. The core is written in C11 / C++20 and exposes a stable C ABI through dstalk-core.dll, so the CLI, GUI, and third-party tools can share the same local AI coding engine.

+

An AI coding CLI powered by DeepSeek V4 and compatible with OpenAI / Anthropic APIs. The core is written in C11 / C++20 and ships dstalk-core.dll as a plugin host that exposes a stable C ABI. Nine functional plugins (AI, networking, LSP, sessions, files, tools, and more) compile to standalone DLLs and plug into the CLI, the SDL3 GUI, and any third-party host.

Get Started View Source @@ -221,13 +221,14 @@
v0.1.0 C11 / C++20 - CDLL + C ABI + Plugin host + C ABI + 9 plugins GPL v3.0
- CurrentPhase 1 - Coredstalk-core.dll - FrontendCLI available + Coredstalk-core.dll (plugin host) + FrontendsCLI + SDL3 GUI + Pluginsdeepseek · anthropic · network · lsp · session · context · config · file-io · tools
@@ -238,12 +239,14 @@ dstalk v0.1.0 | DeepSeek V4 | /help for help > Explain the role of dstalk-core thinking... -AI: dstalk-core handles configuration, sessions, file I/O, - HTTP transport, and the DeepSeek API adapter. - Frontends only handle input and rendering. +AI: dstalk-core is the plugin host. It handles plugin + loading, service registry, the event bus, and + configuration. AI, networking, sessions, LSP, and + file I/O are provided by standalone plugin DLLs; + frontends only deal with input and rendering. -> /file read dstalk-core/src/api.cpp ---- dstalk-core/src/api.cpp --- +> /file read dstalk-core/include/dstalk/dstalk_api.h +--- dstalk-core/include/dstalk/dstalk_api.h ---
@@ -251,15 +254,15 @@ AI: dstalk-core handles configuration, sessions, file I/O,

Why rebuild an AI coding assistant in C/C++?

-

dstalk is positioned alongside tools like Claude Code, OpenCode, and KiloCode, but uses a systems-language implementation and a CDLL architecture to optimize startup time, runtime footprint, embeddability, and long-running terminal workflows.

+

dstalk is positioned alongside tools like Claude Code, OpenCode, and KiloCode, but uses a systems-language implementation and a plugin-host architecture to optimize startup time, runtime footprint, embeddability, and long-running terminal workflows.

C

No Node.js runtime

The core is built with C11 / C++20 for fast startup and lower memory usage in long-lived terminal sessions.

ABI

Stable C ABI

Public functions such as dstalk_init, dstalk_chat, and dstalk_file_read make it easy to embed from C/C++, Python, Rust, C#, and Go.

-
AI

Compatible AI APIs

DeepSeek V4 is the primary target, with OpenAI / Anthropic-style APIs configurable through base_url, api_key, and model settings.

-
CLI

CLI-first workflow

The current CLI uses ANSI terminal UI and supports natural-language chat, model switching, file I/O, and session save/load.

-
DLL

Decoupled frontends

The CLI and GUI do not own business logic. They call the same dstalk-core.dll, allowing additional hosts to be added later.

-
OSS

Open source and hackable

dstalk is released under GNU GPL v3.0 and welcomes learning, customization, and workflow-specific extensions.

+
AI

Compatible AI APIs

Two AI plugins ship in the box: DeepSeek and Anthropic, with OpenAI-style compatibility. Switch providers via ai.provider in config.toml.

+
CLI

CLI and GUI frontends

dstalk-cli is an ANSI terminal UI; dstalk-gui is a cross-platform SDL3 window. Both share the same plugin host and core capabilities.

+
PLG

Plugin host

The core only handles plugin loading, service registry, event bus, and configuration. AI, networking, LSP, and sessions are independent DLLs you can replace or extend.

+
OSS

Open source and hackable

Released under GNU GPL v3.0, with example plugins, unit tests, and tutorial docs. Suitable for learning, customization, and local workflow extensions.

@@ -298,24 +301,28 @@ build/dstalk-cli/dstalk-cli.exe config.toml
-

CDLL + decoupled multi-frontend architecture

-

dstalk-core.dll provides networking, AI API adaptation, file I/O, and session management. Frontends focus on interaction. The GUI directory is reserved, while the root CMake currently enables the CLI and core library first.

+

Plugin host + decoupled multi-frontend architecture

+

dstalk-core.dll acts as a plugin host responsible for plugin loading, service registry, event bus, and configuration. Nine functional plugins — AI, networking, LSP, sessions, files, tools, and more — compile to standalone DLLs, while frontends reach the core only through the C ABI. The GUI is opt-in via the CMake option DSTALK_BUILD_GUI.

architecture
-
┌─────────────────────────────────────────────┐
-│ Frontends                                    │
-│  dstalk-cli (ANSI UI)     dstalk-gui (SDL3)  │
-│  enabled today             roadmap           │
-└───────────────┬─────────────────────────────┘
-                │ C ABI
-┌───────────────▼─────────────────────────────┐
-│ dstalk-core.dll                              │
-│  API / Session / File I/O / AI Adapter       │
-└───────┬──────────────┬──────────────┬────────┘
-        │              │              │
-    Boost.JSON     HTTP Client     OpenSSL TLS
-                  Boost.Asio / Beast
+
┌─────────────────────────────────────────────────────┐
+│ Frontends                                            │
+│  dstalk-cli (ANSI UI)        dstalk-gui (SDL3)       │
+└───────────────────────┬─────────────────────────────┘
+                        │ C ABI
+┌───────────────────────▼─────────────────────────────┐
+│ dstalk-core.dll  —  Plugin Host                     │
+│  Plugin Loader · Service Registry · Event Bus ·     │
+│  Config Manager                                      │
+└──┬───────┬───────┬───────┬───────┬───────┬──────────┘
+   ▼       ▼       ▼       ▼       ▼       ▼
+ deepseek  anthropic  network  lsp     session  context
+ (ai)      (ai)       (http)   client
+   ▼       ▼       ▼
+ config  file-io  tools
+   │       │       │
+   └── Boost.JSON / Boost.Asio / Beast / OpenSSL TLS ──┘
@@ -327,11 +334,15 @@ build/dstalk-cli/dstalk-cli.exe config.toml
- + - + + + + + - +
ModuleCurrent technologyStatus
Core libraryC11 / C++20, dstalk-core.dll, public C ABIEnabled
Core libraryC11 / C++20, dstalk-core.dll, plugin host, public C ABIEnabled
CLI frontendANSI terminal UI using dstalk/dstalk_api.hEnabled
GUI frontendSDL3 graphical frontendRoadmap
GUI frontendSDL3 graphical frontend, enabled via CMake option DSTALK_BUILD_GUIIn place
Plugins9 functional plugins (deepseek · anthropic · network · lsp · session · context · config · file-io · tools), standalone DLLsEnabled
Teststests/ ships host_api_test and smoke_test, integrated with CTestEnabled
Docsdocs/tutorial, docs/reference (commands, plugin-abi)Published
Examplesexamples/example_plugin shows a plugin templateAvailable
DependenciesConan2, boost/1.86.0, openssl/3.4.1Configured
Build systemCMake 3.21+, Ninja, LLVM/ClangConfigured
Build systemCMake 3.21+, Ninja, LLVM/Clang, CMakePresetsConfigured
LicenseGNU GPL v3.0Confirmed
@@ -385,15 +396,16 @@ int dstalk_file_write(const char* path, const char* content);

Roadmap

-

The website reflects dstalk's current README roadmap and avoids presenting planned capabilities as already complete.

+

The plugin host, CLI, SDL3 GUI, nine core plugins, tests, and documentation are already in place. Future work focuses on deeper capabilities and ecosystem expansion.

- - - - + + + + +
PhaseScopeStatus
Phase 1Project skeleton, CMake build, DLL exports, frontend main loopCurrent
Phase 2HTTPS networking, DeepSeek API integration, basic chatIn progress
Phase 3Streaming output, multi-turn sessions, file tools, CLI experience polishPlanned
Phase 4SDL3 GUI, plugin system, LSP integrationPlanned
SkeletonProject skeleton, CMake/Ninja build, Conan dependencies, DLL exports, frontend main loopDone
Plugin hostPlugin loader, service registry, event bus, configuration; 9 core plugins (deepseek · anthropic · network · lsp · session · context · config · file-io · tools)Done
Chat capabilityHTTPS networking, DeepSeek / Anthropic API adapters, streaming output, multi-turn sessions, file I/O toolsAvailable
GUI frontendSDL3 graphical window (DSTALK_BUILD_GUI), sharing the same plugin host as the CLIIn progress
Next phaseDeeper LSP integration, third-party plugin SDK, cross-platform distribution, ongoing documentationPlanned
@@ -404,9 +416,9 @@ int dstalk_file_write(const char* path, const char* content);

dstalk is an open project. Developers interested in C/C++, terminal UX, AI API adapters, GUI, documentation, and testing are welcome to participate.

-
PR

Improve the codebase

Good starting points include build scripts, error handling, CLI interaction, streaming output, file tools, and cross-platform compatibility.

-
DOC

Improve docs and examples

Installation notes, config templates, API examples, and real usage scenarios all help new users get started faster.

-
IDEA

Discuss the roadmap

If you care about the SDL3 GUI, plugin system, LSP integration, or multi-model adapters, issues and design suggestions are welcome.

+
PR

Improve the codebase

The core, CLI, SDL3 GUI, and nine plugins (AI, networking, LSP, sessions, files, tools, and more) all welcome patches; build scripts and cross-platform compatibility have headroom too.

+
PLG

Build new plugins

Use examples/example_plugin and docs/reference/plugin-abi.md as a starting point — register new services through the C ABI to bring your own models, tools, or data sources into dstalk.

+
DOC

Improve docs and tests

docs/tutorial and docs/reference are taking shape; help expand tutorials, command references, plugin-ABI notes, and the coverage of host_api_test / smoke_test.

Go to source repository diff --git a/index.html b/index.html index a50ffd4..747db4e 100644 --- a/index.html +++ b/index.html @@ -3,10 +3,10 @@ - + - + @@ -213,7 +213,7 @@
dstalk.top 是 dstalk 项目的官方网站

dstalk

-

基于 DeepSeek V4 大模型、兼容 OpenAI / Anthropic API 的 AI 编程 CLI。核心采用 C11 / C++20 编写,以 dstalk-core.dll 暴露稳定 C ABI,让 CLI、GUI 和第三方工具共享同一套 AI 编程能力。

+

基于 DeepSeek V4 大模型、兼容 OpenAI / Anthropic API 的 AI 编程 CLI。核心采用 C11 / C++20 编写,以 dstalk-core.dll 作为插件宿主暴露稳定 C ABI,9 个功能插件 (AI、网络、LSP、会话、文件、工具等) 编译为独立 DLL,通过统一接口接入 CLI、SDL3 GUI 与第三方宿主。

开始使用 查看源代码 @@ -221,13 +221,14 @@
v0.1.0 C11 / C++20 - CDLL + C ABI + 插件宿主 + C ABI + 9 个插件 GPL v3.0
- 当前阶段Phase 1 - 核心dstalk-core.dll - 前端CLI 当前可用 + 核心dstalk-core.dll (插件宿主) + 前端CLI + SDL3 GUI + 插件deepseek · anthropic · network · lsp · session · context · config · file-io · tools
@@ -238,11 +239,12 @@ dstalk v0.1.0 | DeepSeek V4 | /help 查看帮助 > 帮我解释 dstalk-core 的职责 思考中... -AI: dstalk-core 负责配置、会话、文件 I/O、HTTP 通信 - 和 DeepSeek API 适配,前端只处理输入与渲染。 +AI: dstalk-core 是插件宿主,负责插件加载、服务注册、 + 事件总线和配置管理;AI、网络、会话、LSP、文件 IO + 等能力都由独立插件提供,前端只处理输入与渲染。 -> /file read dstalk-core/src/api.cpp ---- dstalk-core/src/api.cpp --- +> /file read dstalk-core/include/dstalk/dstalk_api.h +--- dstalk-core/include/dstalk/dstalk_api.h ---
@@ -250,15 +252,15 @@ AI: dstalk-core 负责配置、会话、文件 I/O、HTTP 通信

为什么 dstalk 用 C/C++ 重新做 AI 编程助手?

-

dstalk 对标 Claude Code、OpenCode、KiloCode,但选择系统级实现和 CDLL 架构,重点优化启动速度、运行时依赖、可嵌入能力和长期驻留体验。

+

dstalk 对标 Claude Code、OpenCode、KiloCode,但选择系统级实现和插件宿主架构,重点优化启动速度、运行时依赖、可嵌入能力和长期驻留体验。

C

零 Node.js 运行时

核心以 C11 / C++20 构建,目标是毫秒级启动和更低内存占用,适合终端长期交互。

ABI

稳定 C ABI

公开 dstalk_init、dstalk_chat、dstalk_file_read 等 C 函数,方便 C/C++、Python、Rust、C#、Go 嵌入。

-
AI

多 API 兼容

以 DeepSeek V4 为核心,同时兼容 OpenAI / Anthropic 风格接口,通过配置切换 base_url、api_key 与模型。

-
CLI

命令行优先

当前 CLI 使用 ANSI 终端 UI,支持自然语言对话、模型切换、文件读写、会话保存与恢复。

-
DLL

核心与前端解耦

CLI 和 GUI 不持有业务逻辑,统一调用 dstalk-core.dll,后续可以扩展更多宿主。

-
OSS

开源可改造

项目采用 GNU GPL v3.0,适合学习、二次开发和围绕本地工作流做深度定制。

+
AI

多 API 兼容

内置 DeepSeek 与 Anthropic 两个 AI 插件,兼容 OpenAI 风格接口;通过 config.toml 中的 ai.provider 一键切换。

+
CLI

CLI 与 GUI 双前端

dstalk-cli 提供 ANSI 终端 UI,dstalk-gui 基于 SDL3 跨平台窗口,共享同一组核心能力。

+
PLG

插件化宿主

核心仅做插件加载、服务注册、事件总线和配置管理;AI、网络、LSP、会话等能力均为独立 DLL,可以替换或扩展。

+
OSS

开源可改造

项目采用 GNU GPL v3.0,附带示例插件、单元测试与教程文档,适合学习、二次开发和本地工作流定制。

@@ -297,24 +299,28 @@ build/dstalk-cli/dstalk-cli.exe config.toml
-

CDLL + 多前端解耦架构

-

dstalk-core.dll 提供网络通讯、AI 接口适配、文件读写和会话管理;前端层只负责交互体验。GUI 目录已预留,根 CMake 当前先启用 CLI 与核心库。

+

插件宿主 + 多前端解耦架构

+

dstalk-core.dll 作为插件宿主,负责插件加载、服务注册、事件总线和配置管理;AI、网络、LSP、会话、文件 IO、工具等 9 个功能插件编译为独立 DLL,前端只通过 C ABI 触达核心能力。GUI 通过 CMake 选项 DSTALK_BUILD_GUI 启用。

architecture
-
┌─────────────────────────────────────────────┐
-│ Frontends                                    │
-│  dstalk-cli (ANSI UI)     dstalk-gui (SDL3)  │
-│  当前构建启用              路线图推进          │
-└───────────────┬─────────────────────────────┘
-                │ C ABI
-┌───────────────▼─────────────────────────────┐
-│ dstalk-core.dll                              │
-│  API / Session / File I/O / AI Adapter       │
-└───────┬──────────────┬──────────────┬────────┘
-        │              │              │
-    Boost.JSON     HTTP Client     OpenSSL TLS
-                  Boost.Asio / Beast
+
┌─────────────────────────────────────────────────────┐
+│ Frontends                                            │
+│  dstalk-cli (ANSI UI)        dstalk-gui (SDL3)       │
+└───────────────────────┬─────────────────────────────┘
+                        │ C ABI
+┌───────────────────────▼─────────────────────────────┐
+│ dstalk-core.dll  —  Plugin Host                     │
+│  Plugin Loader · Service Registry · Event Bus ·     │
+│  Config Manager                                      │
+└──┬───────┬───────┬───────┬───────┬───────┬──────────┘
+   ▼       ▼       ▼       ▼       ▼       ▼
+ deepseek  anthropic  network  lsp     session  context
+ (ai)      (ai)       (http)   client
+   ▼       ▼       ▼
+ config  file-io  tools
+   │       │       │
+   └── Boost.JSON / Boost.Asio / Beast / OpenSSL TLS ──┘
@@ -326,11 +332,15 @@ build/dstalk-cli/dstalk-cli.exe config.toml
- + - + + + + + - +
模块当前技术状态
核心库C11 / C++20,dstalk-core.dll,公开 C ABI已启用
核心库C11 / C++20,dstalk-core.dll,插件宿主,公开 C ABI已启用
CLI 前端ANSI 终端 UI,调用 dstalk/dstalk_api.h已启用
GUI 前端SDL3 图形化前端路线图
GUI 前端SDL3 图形化前端,CMake 选项 DSTALK_BUILD_GUI 启用已就位
插件9 个功能插件 (deepseek · anthropic · network · lsp · session · context · config · file-io · tools),独立 DLL已启用
测试tests/ 提供 host_api_test 与 smoke_test,CTest 集成已启用
文档docs/tutorial、docs/reference (commands、plugin-abi)已发布
示例examples/example_plugin 展示插件开发模板已提供
依赖管理Conan2,boost/1.86.0,openssl/3.4.1已配置
构建系统CMake 3.21+,Ninja,LLVM/Clang已配置
构建系统CMake 3.21+,Ninja,LLVM/Clang,CMakePresets已配置
许可证GNU GPL v3.0已确认
@@ -384,15 +394,16 @@ int dstalk_file_write(const char* path, const char* content);

路线图

-

官网按 dstalk 当前 README 的阶段说明呈现,避免把规划功能误写成已完成能力。

+

插件宿主、CLI、SDL3 GUI、9 个核心插件、测试与文档已经就位;后续聚焦在能力深化与生态扩展。

- - - - + + + + +
阶段内容状态
Phase 1项目骨架、CMake 构建、DLL 导出、前端主循环当前阶段
Phase 2HTTPS 网络层、DeepSeek API 对接、基本对话推进中
Phase 3流式输出、多轮会话、文件读写工具、CLI 体验对齐计划中
Phase 4SDL3 GUI 完善、插件系统、LSP 集成计划中
骨架项目骨架、CMake/Ninja 构建、Conan 依赖、DLL 导出、前端主循环已完成
插件宿主插件加载、服务注册、事件总线、配置管理;9 个核心插件 (deepseek · anthropic · network · lsp · session · context · config · file-io · tools)已完成
对话能力HTTPS 网络层、DeepSeek / Anthropic API 适配、流式输出、多轮会话、文件读写工具已可用
GUI 前端SDL3 图形化窗口 (DSTALK_BUILD_GUI),与 CLI 共享插件宿主推进中
下一阶段LSP 集成深化、第三方插件 SDK、跨平台分发与文档持续完善计划中
@@ -403,9 +414,9 @@ int dstalk_file_write(const char* path, const char* content);

dstalk 是开放项目,欢迎对 C/C++、命令行体验、AI API 适配、GUI、文档和测试感兴趣的开发者一起参与。

-
PR

提交代码改进

可以从构建脚本、错误处理、CLI 交互、流式输出、文件工具和跨平台兼容性开始。

-
DOC

完善文档示例

欢迎补充安装说明、配置模板、API 调用示例和真实使用场景,降低新用户上手成本。

-
IDEA

参与路线图讨论

如果你关注 SDL3 GUI、插件系统、LSP 集成或多模型适配,欢迎提出设计建议和 issue。

+
PR

提交代码改进

核心、CLI、SDL3 GUI 与 9 个插件 (AI、网络、LSP、会话、文件、工具等) 都欢迎补丁,跨平台兼容与构建脚本也有空间。

+
PLG

开发新插件

参考 examples/example_plugin 和 docs/reference/plugin-abi.md,通过 C ABI 注册新服务,把自己的模型、工具或数据源接入 dstalk。

+
DOC

完善文档与测试

docs/tutorial、docs/reference 已经成形,欢迎补充教程、命令速查、插件 ABI 说明,以及 host_api_test / smoke_test 的覆盖面。