Repository navigation
feat(core)!: #1799 删除 ACP Agent 宿主与 agent.* 命令 - #18
Merged
Merged
Conversation
桌面端已不做 Agent 对话(Lithe-IDEA#1799 第十轮删除实现),Core 侧仍保留 整套 ACP 连接、适配器安装、模型调用代理与 agent.* 命令。本次一并删除: - 删除 lithe-agent-host crate(ACP 连接、会话、订阅、历史、hooks、技能、 模型调用统计等)与 workspace 成员。 - 删除 lithe-core 的 agent 模块、agent.* 命令,以及依赖 agent host 进程与 网络能力的 MCP 探测桥(mcp.probe)。MCP 配置解析、库规划与工具策略保留, 它们不依赖 agent host。 - 删除 lithe_agent_open_json、lithe_agent_send_json、lithe_agent_close 三个 C ABI 入口与 lithe_core.h 声明。 - 删除 rust/fixtures/agent 与 rust/contracts/agent-turn-policy.json,并从 rust-core-api.md 删除 ACP ABI 文案。 - execute_json_with_events 不再包装 agent 进度 sink,helper_failures 不再 注入 agent 失败事实。 移除 lithe-agent-host 后有两个特性统一变化,已在本 crate 显式声明:chrono 需要 clock(Utc::now),serde_json 需要 preserve_order(日志 JSON 键序)。 验证:cargo fmt --all --check;cargo check -p lithe-core --lib; cargo test -p lithe-core --lib(1806 通过);注释校验脚本通过。 Co-Authored-By: AtomCode (deepseek-v4.1-flash) <noreply@atomgit.com>
1lck
marked this pull request as ready for review
November 12, 2026 03:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
这个 PR 做什么
桌面端已经没有 Agent 对话入口,Core 仍保留整套 ACP 连接、适配器安装、模型调用代理与
agent.*命令。这些代码在 Core 里不再有消费者,本次一并删除。破坏性变更
lithe_agent_open_json、lithe_agent_send_json、lithe_agent_close三个 C ABI 入口与lithe_core.h中的声明。agent.*命令:agent.status、agent.instructions.read/save/shared、agent.skills、agent.hooks、agent.hooks.validateDraft、agent.install、agent.uninstall、agent.installCli、agent.edits.reversePlan、agent.attachments.retentionPlan。mcp.probe:探测实现依赖lithe-agent-host的 rmcp/tokio 进程与网络能力,随宿主一并移除。MCP 配置解析、库规划、工具策略、命令行解析与草案校验保留,它们都是纯计算,不依赖 Agent 宿主。删除清单
rust/lithe-agent-host/rust/lithe-core/src/agent/status、instructions、hooks、edits、attachments 五个模块rust/lithe-core/src/runtime/ffi.rsrust/lithe-core/src/protocol/command.rsrust/lithe-core/src/runtime/dispatcher.rsrust/fixtures/agent/、rust/contracts/agent-turn-policy.jsonrust/contracts/rust-core-api.mdai.configuration.*的说明)rust/logging/README.md两个特性统一变化
删掉
lithe-agent-host后,原来由它间接启用的两个 cargo 特性消失,已在本 crate 显式声明:chrono补clock:diagnostics/core_events.rs使用Utc::now()。serde_json补preserve_order:日志格式化的 JSON 键序断言依赖它,缺省会退化成字典序。保留
ai.*(提交信息、PR 描述、行内编辑、ai.configuration.*provider 发现)全部不动。mcp.*除mcp.probe以外的纯计算命令不动。rust/logging/events里agent通道的事件元数据暂留:本仓库没有事件生成器,手工改生成文件会与源不一致;这些事件此后不会再有调用方,是否清理由后续单独决定。验证
cargo fmt --all --check:通过cargo check -p lithe-core --lib:通过(仅剩仓库既有 warning)cargo test -p lithe-core --lib:1806 passed / 0 failedscripts/rust-core/verify-rust-core-comments.sh:通过后续
scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION提升到本 PR 的合并提交,桌面端才会真正不再链接 Agent 代码。rust/,与本仓库这次删除互不影响。