claude-hud
A Claude Code plugin that shows what's happening: context usage, rate limits, active tools, running agents, and todo progress, always visible below your input.
Claude Code
$ npx -y skills add alexanderizh/spark-agent --agent claude-code
Codex
$ npx skills add alexanderizh/spark-agent -a codex
Cursor
$ npx skills add alexanderizh/spark-agent -a cursor
Gemini CLI
$ npx skills add alexanderizh/spark-agent -a gemini-cli
GitHub Copilot
$ npx skills add alexanderizh/spark-agent -a github-copilot
OpenCode
$ npx skills add alexanderizh/spark-agent -a opencode
Windsurf
$ npx skills add alexanderizh/spark-agent -a windsurf

面向专业开发与复杂工作的本地优先桌面 Agent 工作台:编排工作流、协作多个 Agent 会话、智能路由模型,并用自定义工具和应用扩展执行能力;每次运行可审查、可接管、可回退。
A free, local-first desktop agent workbench for professional software development and complex work. Orchestrate workflows, collaborate across agent sessions, route tasks to the right models, and extend the workspace with custom tools and apps — with reviewable, steerable, reversible runs on macOS, Windows and Linux.
官网 · 下载 · 能力图解 · 功能特性 · 快速开始 · 从源码构建 · 工程手册 · 贡献指南 · 更新日志
SparkWork 是面向专业开发者与重度知识工作者的桌面 Agent 工作台,运行于 macOS、Windows 和 Linux。它把任务编排、Agent 会话协作、模型智能路由、代码和文件工具、自定义应用,以及执行审查与回退放进一个本地优先的工作空间。
核心亮点:
项目仍在快速迭代,部分功能和界面可能继续调整。
下面八张图对应八条能力线的主链路;逐项细节见官网文档中心与工程手册。
长期记忆:一轮对话的写入与读取闭环
每轮结束异步抽取写入、每轮开始混合检索注入;写入过五道闸门,读取走 FTS5 与向量双路、RRF 融合后按 token 预算裁剪。
知识库:从生成到读取的架构
三条生成管道(对话沉淀 / 技能提议 / Repo Wiki)都先出草案、再人工确认,写入收敛到同一原语;读取零预注入,人机同源,先检索、再按需取正文。
工作流:一张图的真实执行
13 种节点类型经拓扑调度逐个真实派发:agent 节点是同一会话内的成员 turn,工具节点可配置成不经 LLM 的确定性直调;快照落库支持断点续跑。
自定义工具:从工程到 Agent 工具面
多文件工程安装为不可变版本,密钥只进系统凭据库;过完整门禁启用后挂进会话工具面,包变更下一轮热生效。
自动路由:一轮分流与降级阶梯
分流器逐轮判强度,宿主在轮次开始前替换 provider 与 model;分流失败一律降级,不会中断本轮执行。
性能保护:采样、定级与四档滞回
2 秒采样六类指标、逐项定级后取最高档,升级快降级慢;只有危急档才弹窗提醒,前两档只在性能页可见。
安全与密钥:一枚密钥的受控旅程
密钥明文直接被拒,只走受保护表单进系统凭据库;环境变量按六级作用域合并注入子进程,hooks 分观察与可拦截双轨,全程日志脱敏。
上下文工程:长上下文的节流与可信
技能目录只注入元数据、全文按需加载;超长工具输出归档为内容寻址制品、按需读回;压缩只追加事件、档案无损可检;跨会话只读引用须显式授权。
记忆生命周期、知识库沉淀管道、router 组成与双池闸门这四张图在工程手册 · 能力架构里。



与 Agent 协作的完整闭环:从输入、排队、审批到追问、分叉、定时唤醒,长任务不丢线索。
/ 即达对话右侧是一套可多开、可切换的面板体系——任务的每个侧面都能边看边聊。



在 GitHub Releases 获取最新安装包:
| 平台 | 格式 |
|---|---|
| macOS | .dmg |
| Windows | .exe / NSIS 安装包 |
| Linux | .AppImage / .deb |
桌面应用已内置 spark-engine(SDK 进程内运行),日常使用无需额外安装 CLI。
仅当需要在终端里使用 spark 命令 / TUI 时才单独安装;CLI 与桌面应用共用 ~/.spark 数据根,可复用桌面端已配置的渠道凭据。
macOS / Linux(要求 Node.js >=22.14 <23):
curl -fsSL https://raw.githubusercontent.com/alexanderizh/spark-agent/spark-cli-releases/install.sh | sh
Windows(PowerShell):
irm https://raw.githubusercontent.com/alexanderizh/spark-agent/spark-cli-releases/install.ps1 | iex
安装脚本会下载对应版本的 npm tarball 并对照 latest.json 校验 sha256,支持指定版本与离线安装:
sh install.sh --version 0.4.0 # 安装固定版本
sh install.sh --tarball ./spark-agent-0.4.0.tgz # 本地 tarball 离线安装
更新(事务式自更新,失败自动回滚):
spark update # 检查并更新到最新版
spark update --check # 仅检查是否有新版本
spark update --target 0.4.0 # 安装 / 回退到指定版本
spark update --allow-prerelease # 允许预发布版本
安装或更新后运行 spark --version 与 spark doctor 验证环境。
首次启动会在选择器里选一次模型,之后选择会写入 ~/.spark/config.toml([agent].model)自动复用,不再每次询问;切换用 /model 或 spark --model <route-id>(仅当次生效)。
会话管理:会话按目录持久化在 ~/.spark/projects/ 下,可随时恢复:
spark --continue # 继续当前目录最近一次会话(-c)
spark --resume # 打开会话选择器(TUI 内也可用 /sessions 切换)
spark --resume <session-id> # 恢复指定会话
spark sessions # 列出当前目录的历史会话
>=22.14.0 <23>=11.13.0 <12Windows 从源码安装时建议准备 Visual Studio Build Tools,以便构建 better-sqlite3、keytar 等原生依赖。
git clone https://github.com/alexanderizh/spark-agent.git
cd spark-agent
pnpm install
pnpm dev
常用检查与打包:
pnpm typecheck # 类型检查
pnpm lint # 代码检查
pnpm test # 单元测试
pnpm build # 构建
pnpm --filter @spark/desktop build:mac # macOS 打包
pnpm --filter @spark/desktop build:win # Windows 打包
pnpm --filter @spark/desktop build:linux # Linux 打包
spark-agent/
├── apps/
│ └── desktop/ # Electron 桌面应用(主进程 + React 渲染端)
├── assets/
│ └── showcase/ # README 界面截图素材
├── packages/
│ ├── agent-runtime/ # 会话运行时与服务编排
│ ├── protocol/ # 跨进程 IPC 协议与类型
│ ├── storage/ # SQLite 存储层
│ ├── shared/ # 跨进程共享工具
│ ├── ui-kit/ # 共享 UI 组件
│ └── plugin-sdk/ # 插件 SDK
└── spark-engine/ # 终端交互子项目
主要技术栈:Electron 43 · React 19 · TypeScript · Tailwind CSS · Ant Design · XYFlow · Claude Agent SDK · Codex · MCP · SQLite · pnpm workspace · Vitest · Playwright
欢迎提交 Issue 和 Pull Request。提交前建议运行:
pnpm typecheck && pnpm lint && pnpm test
如果发现安全问题,请不要在公开 Issue 中披露敏感细节,请先通过仓库维护者提供的私有联系方式沟通。
感谢每一位为 SparkWork 贡献代码的人:
SparkWork 使用 MIT License。你可以使用、修改、分发本项目,也可以将其用于商业用途;项目依赖、模型服务和第三方资源仍分别遵循各自的许可证与服务条款。
A Claude Code plugin that shows what's happening: context usage, rate limits, active tools, running agents, and todo progress, always visible below your input.
Skills for running several coding agents together: an advisor for a second opinion, a committee for root cause analysis and planning, handoffs with full context, help with the Paseo app, and building local plugins.
Gives you skills for pulling answers and prep from Circleback meeting notes, and for triaging failing GitHub Actions runs and GitHub issues. Use it to find what was decided, build meeting briefs, and sort CI failures and issues without digging through logs by hand.
Runs and supervises teams of coding agents from planning through merge, handling CI feedback, review comments, and merge conflicts in isolated workspaces. Includes skills for launching the AO desktop app and triaging bug reports.
spark-agent is indexed on Flowy in the Agent Workspaces category. Install it with the command on its page. It includes gitnexus-cli, gitnexus-debugging, gitnexus-exploring. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it