返回顶部
c

clawdbot-logs-litiao

Analyze Clawdbot logs and diagnostics. Use when the user asks about bot performance, response times, errors, session stats, token usage, API costs, or wants to debug slow responses.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
160
下载量
0
收藏
概述
安装方式
版本历史

clawdbot-logs-litiao

# Clawdbot Logs & Diagnostics Analyze Clawdbot performance, errors, and session data. ## Quick Commands ### Response Times (last N messages) ```bash scripts/response-times.sh [count] ``` ### Recent Errors ```bash journalctl --user -u clawdbot-gateway.service --no-pager --since "1 hour ago" | grep -iE "(error|fail|invalid)" | tail -20 ``` ### Session Stats ```bash scripts/session-stats.sh ``` ### Gateway Status ```bash systemctl --user status clawdbot-gateway.service --no-pager ``` ### Config Validation ```bash cat ~/.clawdbot/clawdbot.json | jq . > /dev/null && echo "Config valid" || echo "Config invalid" ``` ## Log Sources | Source | Location | Contains | |--------|----------|----------| | Journal | `journalctl --user -u clawdbot-gateway.service` | Session state, errors, tool exec | | Daily log | `/tmp/clawdbot/clawdbot-YYYY-MM-DD.log` | Detailed JSON logs | | Session file | `~/.clawdbot/agents/main/sessions/*.jsonl` | Full conversation, token usage, costs | | Sessions meta | `~/.clawdbot/agents/main/sessions/sessions.json` | Current session state, model info | ## Common Diagnostics ### Slow Responses 1. Check response times: `scripts/response-times.sh 20` 2. Check token count in sessions.json: `jq '.["agent:main:main"].totalTokens' ~/.clawdbot/agents/main/sessions/sessions.json` 3. If tokens > 30000, run `/compact` in Telegram or start new session ### Config Errors ```bash journalctl --user -u clawdbot-gateway.service --no-pager --since "10 minutes ago" | grep -i "invalid config" ``` ### API Costs (from session) ```bash scripts/session-stats.sh ``` ## Useful Patterns ### Filter journal by category ```bash # Session state changes journalctl --user -u clawdbot-gateway.service | grep "session state" # Tool execution journalctl --user -u clawdbot-gateway.service | grep "\[tools\]" # Telegram activity journalctl --user -u clawdbot-gateway.service | grep "\[telegram\]" ``` ### Parse session file for recent messages ```bash tail -20 ~/.clawdbot/agents/main/sessions/*.jsonl | jq -r 'select(.message.role=="user") | .message.content[0].text' 2>/dev/null | tail -10 ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawdbot-logs-litiao-1776368762 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawdbot-logs-litiao-1776368762 技能

通过命令行安装

skillhub install clawdbot-logs-litiao-1776368762

下载 Zip 包

⬇ 下载 clawdbot-logs-litiao v1.0.0

文件大小: 3.32 KB | 发布时间: 2026-4-17 14:23

v1.0.0 最新 2026-4-17 14:23
Bug fixes and improvements with -litiao suffix

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部