Technical Guide
从技术角度解析 SmallClaw Understanding SmallClaw from a Technical Perspective
SmallClaw 不是在一个已有的 agent 项目外面再包一层界面,而是基于 Smallsoft 自主开发的语义引擎和结构化任务引擎构建起来的 macOS 原生桌面 AI Agent 应用。它从底层就把安装体验、权限边界、安全控制、模型选择和成本治理统一进同一套设计之中。它不是让人去适应工具,而是围绕任务推进来组织能力,让 AI 智能体为人服务。 SmallClaw is not an interface layer wrapped around an existing agent project. It is a native macOS desktop AI agent application built on Smallsoft's independently developed semantic engine and structured task engine. From the ground up, it unifies installation experience, permission boundaries, security control, model selection, and cost governance into one design. It is not about making people adapt to a tool. It organizes capabilities around task progression so that the AI agent serves people.
1. SmallClaw 是一套原生 macOS 架构,而不是开发者工具包装 1. SmallClaw is a native macOS architecture, not a wrapper around developer tooling
从技术视角看,SmallClaw 不是一个依赖命令行、环境初始化和一长串依赖链才能跑起来的系统。它被设计成一个完整的 macOS 桌面应用,目标是把复杂度收进产品内部,而不是继续交给用户自己处理。 SmallClaw is not a system that only works after command-line setup, environment initialization, and a long dependency chain. It is designed as a complete macOS desktop application, with the goal of absorbing complexity inside the product instead of pushing it back onto the user.
SmallClaw的运行方式、权限处理、界面交互、数据存储和本地能力调用,都可以围绕 macOS 的原生能力来组织,而不是被一个跨平台或半脚本化的外层壳子牵着走。 Its runtime model, permission handling, interface interaction, data storage, and local capability calls can all be organized around native macOS capabilities instead of being constrained by a cross-platform or semi-scripted outer shell.
2. 它不是 OpenClaw 的衍生物,而是一套从零开始的底层重建 2. It is not derived from OpenClaw, but rebuilt from the ground up
SmallClaw 在能力目标上对标 OpenClaw,但技术路线并不沿用 OpenClaw 的分支、移植版或变体逻辑。它的基础架构和运行引擎都是独立设计的,这一点非常关键,因为它决定了系统边界是不是从一开始就可控。 SmallClaw targets OpenClaw in terms of capability goals, but its technical route does not follow the logic of an OpenClaw branch, port, or variant. Its base architecture and runtime engine are independently designed. This is critical because it determines whether the system boundary is controllable from the very beginning.
很多开源 agent 项目早期看起来很灵活,但随着功能越堆越多,结构会越来越重,局部优化不断累积,最后很容易出现边界不清、权限过宽、调试困难和成本失控的问题。SmallClaw 试图绕开这条路径,直接从系统层面重做安装、安全、权限控制和模型成本管理。 Many open-source agent projects feel flexible at first, but as more features are piled on, the structure gets heavier, local optimizations accumulate, and the result often becomes unclear boundaries, overly broad permissions, harder debugging, and runaway cost. SmallClaw tries to avoid that path by redesigning installation, security, permission control, and model cost management directly at the system level.
3. 安装和运行模型被刻意设计得更简单 3. Installation and runtime behavior are intentionally designed to be simpler
SmallClaw 以单一应用文件的形式交付,用户无需先准备环境、安装依赖、配置脚本再开始使用。对普通 Mac 用户来说,这是桌面软件应该具备的基本前提。 SmallClaw's installation experience comes from a very explicit technical choice: it aims to ship as a single application file, instead of requiring users to prepare an environment, install dependencies, and configure scripts before they can begin. For ordinary Mac users, this is a basic expectation of desktop software.
运行模式:SmallClaw 是桌面运行模式,不是一个 7x24 独立后台守护进程。应用关闭后,渠道轮询、自动化和正在执行的任务都会停止;未完成运行会回到队列态,而不是在用户看不见的地方继续执行。这种运行策略本身就是一种边界控制。 Its runtime model is also explicit: SmallClaw runs as a desktop application, not as an always-on 7x24 background daemon. When the app is closed, channel polling, automation, and active tasks stop; unfinished runs return to a queued state instead of continuing invisibly in the background. That runtime policy is itself a form of boundary control.
4. 安全和权限控制是SmallClaw的核心设计 4. Security and permission control are not add-ons, but core design principles
SmallClaw 基于 macOS 原生权限体系构建,这让它可以把文件访问、网络通信、自动化控制、辅助功能等能力放进更清晰的边界中管理。用户可以知道应用拥有哪些权限、哪些操作需要授权、哪些行为受到限制。 SmallClaw is built on the native macOS permission model. That allows capabilities such as file access, network communication, automation control, and accessibility access to be managed within clearer boundaries. Users can understand what permissions the app has, which actions require authorization, and what behaviors remain restricted.
- 文件访问不再是一个模糊的“默认全开”能力,而是可感知、可限制的系统权限。 File access is no longer a vague “open by default” capability, but a visible and constrainable system permission.
- 网络通信和外部调用可以作为独立边界来理解,而不是混进一整个黑盒自动化流程里。 Network communication and external calls can be understood as independent boundaries rather than being buried inside a black-box automation flow.
- 自动化控制与辅助功能这类高风险能力,天然适合放在更明确的授权链中处理。 High-risk capabilities such as automation control and accessibility access naturally belong inside a clearer authorization chain.
- 敏感动作是否允许执行,不必只靠提示词约束,也可以依赖产品级的确认和权限管理机制。 Whether sensitive actions are allowed does not need to rely only on prompt constraints; it can also depend on product-level confirmation and permission management.
这和很多“功能看起来很强”的同类产品不同。真正的问题往往不是能不能做,而是做的时候边界是不是清楚,风险是不是能被用户判断。 This is different from many similar products that only appear powerful at the feature level. The real question is usually not whether something can be done, but whether the boundary is clear when it is done and whether the user can judge the risk.
5. 模型支持和 token 计量被纳入同一个治理层 5. Model support and token metering are managed within the same governance layer
SmallClaw 支持几十种不同的大语言模型,这不是为了堆叠参数表,而是为了把模型选择权真正交给用户。不同任务需要的能力、速度和成本并不相同,单一平台绑定往往会让系统在长期使用时变得既不灵活,也不经济。 SmallClaw supports dozens of different large language models, not to stack specification tables, but to genuinely give model choice back to the user. Different tasks demand different combinations of capability, speed, and cost, and being tied to a single platform often makes long-term use both inflexible and inefficient.
更关键的是,SmallClaw 会对每一种模型的使用量进行精确计量和统计。很多系统可以调模型,但不能把每一步消耗讲清楚;SmallClaw 则把 token 用量本身作为可观测、可管理的数据层,让成本控制不再依赖猜测。 More importantly, SmallClaw measures and tracks usage for every model precisely. Many systems can call models, but cannot explain the cost of each step clearly. SmallClaw treats token usage itself as an observable and manageable data layer, so cost control no longer depends on guesswork.
6. 它不是一个聊天框,而是一个桌面工作流系统 6. It is not a chat box, but a desktop workflow system
从技术架构上看,SmallClaw 不应该被理解成“一个会说话的窗口”。它更像一个能够接收输入、组织任务、驱动执行并记录过程的桌面智能系统。多种 messaging 工具都可以作为输入源,被纳入统一工作流中处理。 From an architectural perspective, SmallClaw should not be understood as “a talking window.” It is closer to a desktop intelligence system that can receive inputs, organize tasks, drive execution, and record the process. Multiple messaging tools can act as input sources and be handled inside one unified workflow.
这意味着它的价值不只是对话,而是对话之后的任务分解、执行链路、权限判断、结果回收和运行记录。也正因为如此,SmallClaw 的重点不在聊天界面本身,而在运行系统是否稳定、透明和可控。 That means its value is not limited to conversation itself, but extends to task breakdown, execution chains, permission decisions, result collection, and runtime history after the conversation. For that reason, SmallClaw's focus is not the chat interface alone, but whether the runtime system is stable, transparent, and controllable.
7. Skills 兼容不是“市场包装”,而是本地能力系统的一部分 7. Skills compatibility is not marketplace packaging, but part of the local capability system
SmallClaw 兼容各种开源 Skills,包括 OpenClaw 的 Skills。技术上,这意味着它不是用一套完全封闭的插件体系把用户锁在自己的平台里,而是保留了和现有技能资产兼容的能力。 SmallClaw is compatible with various open-source Skills, including OpenClaw Skills. Technically, this means it does not lock users into a fully closed plugin system, but preserves compatibility with existing skill assets.
但兼容并不等于无边界导入。SmallClaw 会在导入过程中进行安全检查,尽量避免不透明、不受控的能力直接进入本地环境。对于希望自行构建流程的用户,它还提供内置的 Skill 创作器,让常用方法逐步沉淀为可复用模块。 But compatibility does not mean boundary-free import. SmallClaw performs safety checks during import so opaque and uncontrolled capabilities do not enter the local environment unchecked. For users who want to build their own workflows, it also provides a built-in Skill creator so repeated methods can gradually become reusable modules.
<workspace>/.smallclaw/skills、~/.smallclaw/skills、~/.openclaw/skills 都可以作为默认扫描目录。这种文件化的技能模型天然适合 Git 管理,也适合长期沉淀团队流程。
<workspace>/.smallclaw/skills, ~/.smallclaw/skills, and ~/.openclaw/skills can all be used as default scan directories. This file-based skill model naturally fits Git management and long-term team workflow memory.
8. 本地存储与系统集成的选择,决定了它更适合长期稳定使用 8. Local storage and system-integration choices make it better suited for long-term stable use
SmallClaw 把不同类型的数据放在不同的本地系统能力里处理。Secrets 更适合进入 macOS Keychain,配置可以落在 UserDefaults,Sessions、Usage 和 Runtime Events 则可以进入本地 SQLite。这种做法的价值,在于让安全敏感信息、应用配置和运行数据各自落到更合适的存储层。 SmallClaw places different categories of data into different local system layers. Secrets fit best in macOS Keychain, configuration can live in UserDefaults, and Sessions, Usage, and Runtime Events can live in local SQLite. The value of this approach is that security-sensitive information, application settings, and runtime data each land in a more appropriate storage layer.
从长期维护的角度看,这比把所有状态混在一个不透明目录或者某个随意拼接的数据文件里,要更清晰,也更符合桌面软件的管理习惯。 From a long-term maintenance perspective, this is clearer and more in line with desktop software management practice than mixing all state into an opaque directory or an arbitrarily assembled data file.
9. 技术上,SmallClaw 解决的是 agent 产品化问题 9. Technically, SmallClaw is solving the productization problem of agents
SmallClaw 想解决的不是“能不能做出一个 agent”,而是能不能把 agent 真正变成一个普通 Mac 用户也能安装、理解、控制并长期使用的桌面产品。它之所以强调原生、强调权限、强调成本透明,并不是为了做出和别人不同的外观,而是为了在系统层面处理那些最容易在长期使用中失控的问题。 SmallClaw is not trying to solve whether an agent can be built at all. It is trying to solve whether an agent can truly become a desktop product that ordinary Mac users can install, understand, control, and use over the long term. Its emphasis on native architecture, permissions, and cost transparency is not for visual differentiation, but for handling the issues most likely to get out of control in long-term use.
如果你熟悉 OpenClaw,那么可以把 SmallClaw 理解为一个能力目标相近、但技术实现路线完全不同的方向。它不是对现有开源项目的二次包装,而是一套从底层开始就面向安装体验、安全边界和成本治理的原生 macOS 架构。 If you are familiar with OpenClaw, you can think of SmallClaw as a direction with similar capability goals but a completely different technical implementation route. It is not a second layer of packaging around an existing open-source project, but a native macOS architecture designed from the bottom up around installation experience, security boundaries, and cost governance.