fix(cosh-ng): [cli] add workspace path pre-validation for checkpoint commands
Checkpoint commands (init, recover, create, restore, diff, cleanup) now validate that the workspace path exists on the local filesystem before attempting to connect to the ws-ckpt daemon. If the path does not exist, returns CheckpointNotFound with recoverable=false and a hint to check the workspace path or run init first (issue #1568).
This prevents misleading CheckpointDaemonUnavailable errors when the real problem is a non-existent workspace path. The daemon connection error path is preserved for commands with optional workspace (list, status, delete) and for cases where the workspace exists but the daemon is truly unavailable.
Regression tests cover diff, init, restore, and create with non-existent workspace paths. Existing daemon_unavailable tests updated to use /tmp (exists) so they continue testing the daemon connection path.
Signed-off-by: BryanHeBY hebingyu.hby@alibaba-inc.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Agentic Nexus Operating Layer & Interface System Architecture
面向 Agent 工作负载的操作系统层。
让 Agent 在你的终端里直接指挥系统干活,并在工具响应进入模型之前就把冗余去掉 ——同时保留你现有的 Shell、Agent 框架和沙箱。
English · 项目网站 · 快速开始 · 用户指南 · 参与贡献
ANOLISA 是面向 AI Agent 工作负载的服务端操作系统层。它从终端入口、Token 开销和执行环境三个方向解决 Agent 运行中的关键问题,同时保留现有的 Shell、 Agent 框架和沙箱。ANOLISA CLI 提供统一的安装入口,各项能力可以按需启用。
解决什么问题
01 · AGENT INTERFACE
让 Agent 直接在终端工作
cosh-ng 为 Agent 提供结构化、可预期的 Shell 和系统操作接口。保留现有的 Agent 框架和沙箱,让系统操作继续在熟悉的终端工作流中完成。
开始使用 cosh-ng →
02 · CONTEXT EFFICIENCY
看清 Token 去向,在内容进入模型前减少无效消耗
Token-less 去掉工具 Schema 和响应中的冗余,Agent Memory 复用跨会话信息,SkillFS 按视图暴露、按需挂载 Skills,只把用得到的技能放进上下文,AgentSight 记录 Token 实际花在哪。
debug、trace命中字段黑名单,metadata为 null,tags/extra为空值, 均被移除。压缩在 Agent 与模型之间执行,无需改动 Agent 框架代码;被截断的数组 元素可通过<<tokenless:KEY>>标记取回,压缩过程可逆。节省作用于进入上下文的工具响应,而不是整个会话的账单——如何估算具体工作负载 下的收益,见 Token-less README。
开始使用 Token-less →
03 · EXECUTION RUNTIME
让 Agent 的每次执行都有边界,也留有退路
ANOLISA 正在完善面向 Agent 的执行环境: Agent Sec Core 隔离高风险操作, ws-ckpt 为工作区变更保留恢复点。
通过 ANOLISA CLI 开始 →
安装
ANOLISA CLI 是统一的安装入口,cosh-ng、Token-less 和其他能力都可以按需启用。
运行
cosh-ng进入 Agent-native shell,或让现有的任意 Agent 接上——Token-less 会作用于工具调用,无需额外配置。查看快速开始 →
文档
快速开始 · 安装指南 · 用户指南 · 故障排查 · 源码构建 · 变更日志
社区
使用钉钉扫码加入 ANOLISA 社区。
许可证
ANOLISA 基于 Apache License 2.0 发布。