← 返回
数据分析 中文

Mission Claw

Log agent activities to Mission Claw dashboard with token usage tracking. Use when completing significant tasks, subagent work, or any action worth recording in the activity feed. Triggers on task completion, activity logging, or tracking agent work.
将代理活动记录到 Mission Claw 仪表板,追踪 token 使用情况。适用于完成重要任务、子代理工作或任何值得记录在活动流中的操作。触发时机包括任务完成、活动记录或代理工作追踪。
tsangwailam
数据分析 clawhub v0.1.2 1 版本 99710.6 Key: 无需
★ 0
Stars
📥 1,723
下载
💾 26
安装
1
版本
#latest

概述

Mission Claw Activity Logging

Log significant tasks to the Mission Claw activity feed for tracking agent work, token usage, and project progress.

Prerequisites

  • Mission Claw CLI: The mclaw binary must be installed on the host system.
  • OpenClaw Built-ins: Relies on the session_status tool to retrieve current token usage.

CLI Usage

mclaw log "Task description" \
  --agent "AgentName" \
  --project "ProjectName" \
  --status completed \
  --duration "Xm Ys" \
  --input-tokens N \
  --output-tokens N \
  --total-tokens N

Required Fields

  • action - Brief task description (positional argument)
  • --agent - Agent name (e.g., "J", "mission-claw", "type-alchemy")
  • --total-tokens - Total tokens used (always include)

Optional Fields

  • --details - Longer description of work done
  • --project - Project name
  • --status - completed (default), in_progress, or failed
  • --duration - Time taken (e.g., "5m", "1h 30m")
  • --input-tokens / --output-tokens - Token breakdown

When to Log

Log after completing:

  • Significant development tasks
  • Bug fixes or feature implementations
  • Research or investigation work
  • Configuration changes
  • Any task worth tracking

Getting Token Usage

Before logging, check your session's token usage:

  • Use the built-in session_status tool to see current tokens
  • For subagents, tokens are in the completion announcement

Examples

# Feature implementation
mclaw log "Added date-time filter to dashboard" \
  --agent "mission-claw" \
  --project "Mission Claw" \
  --status completed \
  --duration "10m" \
  --total-tokens 15000

# Quick fix
mclaw log "Fixed timezone bug" \
  --agent "J" \
  --project "ContentMorph" \
  --duration "2m" \
  --total-tokens 3500

# In-progress work
mclaw log "Implementing payment flow" \
  --agent "J" \
  --project "TypeAlchemy" \
  --status in_progress

Other Commands

mclaw list                    # Recent activities
mclaw list --agent J          # Filter by agent
mclaw status                  # Quick stats and service status
mclaw dashboard start         # Start web dashboard (localhost:3101 by default)

API Alternative

The CLI logs to a local daemon (defaulting to http://localhost:3100). You can also POST directly to the API:

POST http://localhost:3100/api/activity

{
  "action": "Task name",
  "agent": "J",
  "project": "Project",
  "status": "completed",
  "totalTokens": 5000,
  "inputTokens": 4000,
  "outputTokens": 1000
}

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-28 21:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,079
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,751
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,918