简介
OpenClaw Tally
原始描述
Develop, test, or integrate the OpenClaw Tally Node.js library for task-level cost, complexity, and efficiency analytics. Use when working on Tally's detector, SQLite ledger, analytics engine, or an explicit plugin/hook integration; installing this skill alone does not register hooks or slash commands.
通过你的 Agent 添加
安装目录:openclaw-tally/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: openclaw-tally
description: Develop, test, or integrate the OpenClaw Tally Node.js library for task-level cost, complexity, and efficiency analytics. Use when working on Tally's detector, SQLite ledger, analytics engine, or an explicit plugin/hook integration; installing this skill alone does not register hooks or slash commands.
metadata:
openclaw:
version: "0.3.2"
emoji: "📊"
homepage: https://github.com/JonathanJing/openclaw-tally
requires:
bins: [node, npm]
OpenClaw Tally
Reframes AI usage from token-counting to task-completion economics. Instead of "how many tokens?", answer "how much to get X done, and was it worth it?"
🛠️ Installation
1. Ask OpenClaw (Recommended)
Tell OpenClaw: "Install the openclaw-tally skill." The agent will handle the installation and configuration automatically.
2. Manual Installation (CLI)
If you prefer the terminal, run:
openclaw skills install @jonathanjing/openclaw-tally
Security & Privacy Declaration
- No automatic hook registration: OpenClaw Skills are instruction bundles. This package must be integrated through an explicit plugin or operator-owned hook before it can process events.
- Hook scope after integration: A
message-post integration would observe every message, so disclose that scope before enabling it.
- Local only: All processing is purely local. No data is sent to any external server.
- Message content: The task detector reads message text to identify task boundaries (start/complete/fail signals) using regex pattern matching. No message text is stored — only metadata (token count, model, session_id, complexity score) is persisted to the database.
- Sandboxed storage: SQLite database defaults to
~/.openclaw/tally/tally.db. A custom path can be provided for testing.
- Runtime: Requires Node.js 22 or newer and
better-sqlite3 13.x (native Node.js addon). Installation may download a signed prebuild or run a local native build.
- Permissions: No network access. No exec permissions. Filesystem limited to
~/.openclaw/tally/.
What It Does
- Detects tasks from message streams supplied by an explicit integration (Layer 1: Task Detector)
- Attributes costs across sessions, sub-agents, and cron triggers (Layer 2: Task Ledger)
- Computes TES (Task Efficiency Score) per task, model, and cron (Layer 3: Analytics Engine)
Setup and verification
cd "{baseDir}"
npm install
npm test
message-post integration would observe every message, so disclose that scope before enabling it.~/.openclaw/tally/tally.db. A custom path can be provided for testing.better-sqlite3 13.x (native Node.js addon). Installation may download a signed prebuild or run a local native build.~/.openclaw/tally/.- Detects tasks from message streams supplied by an explicit integration (Layer 1: Task Detector)
- Attributes costs across sessions, sub-agents, and cron triggers (Layer 2: Task Ledger)
- Computes TES (Task Efficiency Score) per task, model, and cron (Layer 3: Analytics Engine)
Setup and verification
cd "{baseDir}"
npm install
npm test
cd "{baseDir}"
npm install
npm test
The package currently exports library modules from src/index.js. Add slash commands and event hooks only through an OpenClaw plugin or another explicit runtime integration.
Complexity Levels
- L1 (Reflex): Single-turn, text-only, no tools
- L2 (Routine): Multi-turn or 1–3 tool calls
- L3 (Mission): Multiple tools + file I/O + external APIs
- L4 (Campaign): Sub-agents + cron + cross-session
TES (Task Efficiency Score)
TES = quality_score / (normalized_cost × complexity_weight)
- > 2.0 🟢 Excellent
- 1.0–2.0 🟡 Good
- 0.5–1.0 🟠 Below average
- < 0.5 🔴 Poor
- 0.0 ⚫ Failed
Usage
TES = quality_score / (normalized_cost × complexity_weight)
- > 2.0 🟢 Excellent
- 1.0–2.0 🟡 Good
- 0.5–1.0 🟠 Below average
- < 0.5 🔴 Poor
- 0.0 ⚫ Failed
Usage
When explicitly integrated, store analytics locally in ~/.openclaw/tally/tally.db or a test-specific path.
See {baseDir}/PRD.md for the product specification.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。