Workgraph — AI skill for Claude Code
The control plane for AI work — observe pi / Claude Code / Codex agents, tasks, evidence, attention and metrics.
How to install Workgraph
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open huifer/workgraph and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Workgraph does
The control plane for AI work — observe pi / Claude Code / Codex agents, tasks, evidence, attention and metrics. Local-first Rust bridge + control plane + dashboard; MCP server; dual SQLite/MySQL backend.
Alternatives in AI
- Optimization — ai-research-skills AWQ, GPTQ, GGUF, Flash Attention, bitsandbytes 5.4k ★
- Maestro Companion — Quick execution for small tasks — minimal run lifecycle (start + done) with evidence recording 530 ★
- Prismor — Self-hosted runtime control plane for AI agents 334 ★
README
Workgraph — The Control Plane for AI Work
**Every Agent. Every Project. Every Outcome.**
Workgraph 是一个外置、跨 Agent、跨项目的 AI 工作管理与情报层。它不替换你的 Pi / Claude Code / Codex CLI,而是被动观察它们,把 Agent、Session、Task、Project、Git 变更和交付证据关联成一张可验证的工作图。
实现依据 `WORKGRAPH_UNIFIED_RFC_v1.0.md`。核心原则:**Native-first, Observe-first, Evidence-driven** — Agent 说"完成了"不算完成,证据才算。
功能范围(当前交付 0.6.5:P0 + P1 + P2 全部落地)
版本口径:`Cargo.toml` 与 `web/package.json` 的 semver 为 **0.6.5**;git 提交标题中的 v0.7 / v0.7.1 是里程碑昵称,不是发布版本号。
- P0:三 Agent 发现/观察、WEP 事件协议、Outbox、任务状态机、证据链、注意力引擎、7 个页面、MCP
- P1:设备配对/多机、RBAC/认证、Chat Drawer、L3 能力探测式会话控制、GitHub/CI Webhook、冲突检测、成本情报、Adapter SDK
- P2:组织/多 Workspace、预算与留存治理、外部任务系统同步、OIDC/SCIM、审计导出、自定义布局、项目报告/里程碑/目标
- 部署:服务端直接托管 Dashboard、Docker + MySQL compose(默认 MySQL 主库);
--mysql DSN与--db是同一套服务代码的两个后端(wg-db统一层 + SQL 方言翻译) - 治理:采集策略(§16.3 四级覆盖,摄入时强制降级并抹除文本)、全局 Kill Switch(
wg-bridge pause/resume)、工作摘要、依赖图、WS 频道过滤
验收:`cargo test`(92 项)+ `./scripts/test-e2e.sh`(56 项 × SQLite/MySQL 双后端,含 §21.2 Test D 断网补传、§12.1 Idempotency-Key、workspace 写入作用域)+ `./scripts/demo.sh` + `./scripts/test-bench.sh`(基准脚本自身的失败路径回归);CI(`.github/workflows/ci.yml`)带 MySQL service 双后端矩阵门禁。性能基线 `scripts/bench.sh`(事件摄入 p50 约 4–8k/s,随机器负载浮动;Bridge 空闲 RSS 约 11MB / CPU 0%);规模验证 `scripts/load-test.sh` —— RFC §20.3 已实测达标:100 Agent / 500 活跃 Session / 1,000,600 Event,摄入 2,168 ev/s(含全部投影)、零丢失零重复、读端点 P95 全部 <160ms(目标 2s)、存储 400MB/1M 事件。打包 `scripts/build-release.sh`。可观测性:`GET /api/v1/metrics`(Prometheus 文本,按 workspace 过滤)。变更史见 [CHANGELOG.md](./CHANGELOG.md)。详见 [IMPLEMENTATION_STATUS.md](./IMPLEMENTATION_STATUS.md);发布前门清单见 [RELEASE_CHECKLIST.md](./RELEASE_CHECKLIST.md)。
快速开始
前置要求
- Rust 1.87+(MSRV,
Cargo.toml固定;cargo build) - Node 20+(Dashboard)
1. 启动控制面 + Bridge + Dashboard
./scripts/dev.sh
# → 控制面 http://127.0.0.1:7710
# → Bridge 本机守护进程(发现/会话尾读/Git/Hook :7712 loopback)
# → Dashboard http://localhost:5173
首次运行后做一次历史扫描(只读解析本地已有的三种 Agent 会话):
Related Skills
Atollo
Universal Portable Dev & AI Workspace: a zero-install dev environment for Windows, macOS and Linux (x64/ARM64)
PokePoke
macOS menu-bar attention tool for AI coding agents: get poked when Claude Code, Cursor or Codex is waiting, do
BrighTO Router
BrighTO LLM Router: free open-source, ultra-fast Rust LLM gateway/router and LiteLLM/Bifrost alternative with
Crossplug
crossplug — AI coding-agent plugin bridge: convert plugins between DSH / MiniMax Code (mcode) / pi, agent-plug
Termalin MCP
SSH MCP server for AI agents: run commands, manage files, query databases and read metrics on your own servers
Spc Cmmi5 Process
An AI-agent skill that enforces a CMMI Level 5–style software process: planned work, tailoring, evidence-based
Related Agents
Coder Back
Backend specialist: writes clean, tested server-side code in Go/Node/PHP, API contracts, SQLite/MySQL persiste
Quantum Database Architect
Database architect and SQL optimizer for PostgreSQL, MySQL, SQLite, zero-downtime migrations, indexing, and Qd
SQL Expert
Expert SQL engineer for querying databases, writing cross-dialect SQL, inspecting schemas, and managing data a