← 返回
AI智能 中文

Session Log

Lightweight session logging for OpenClaw agents. Automatically creates a timestamped session file on every session start (including /new resets) and appends...
轻量级会话日志,适用于OpenClaw代理。每次会话启动(包括 /new 重置)时自动创建带时间戳的会话文件,并追加...
meigesir
AI智能 clawhub v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 1,228
下载
💾 16
安装
2
版本
#latest

概述

Session Log

Lightweight session logging that survives /new resets.

How It Works

  • On every session start → create sessions/YYYY-MM-DD_HH-MM_{agent}.md
  • During conversation → append a one-line summary after each meaningful topic
  • Daily report / cron → glob sessions/YYYY-MM-DD_*.md to reconstruct the full day

Session Startup (add to AGENTS.md)

5. Create `sessions/YYYY-MM-DD_HH-MM_{agent}.md` (local time) for this session

Get current time and create the file:

python3 /path/to/skills/session-log/scripts/new_session.py --agent main --dir /path/to/workspace/sessions

Or manually:

# Session 2026-03-04 09:30 | main

## Log

During Conversation

After each meaningful topic wraps up, append one line:

echo "- [topic] one-line summary" >> sessions/YYYY-MM-DD_HH-MM_{agent}.md

Keep it short — one line per topic, a dozen words max. This is a log, not a journal.

Multi-Agent Setup

Each agent writes to its own workspace sessions/ folder. The daily report reads all of them:

AgentPath
--------------
main/path/to/main-workspace/sessions/
writer/path/to/writer-workspace/sessions/
coding/path/to/coding-workspace/sessions/

Daily Report Integration

In the report cron's prepare step, glob today's session files from all agents:

ls /path/to/main-workspace/sessions/YYYY-MM-DD_*.md
ls /path/to/writer-workspace/sessions/YYYY-MM-DD_*.md
ls /path/to/coding-workspace/sessions/YYYY-MM-DD_*.md

Read each file and include summaries in the conversation recap section, tagged by agent ([main]/[writer]/[coding]).

File Format

# Session YYYY-MM-DD HH:MM | {agent}

## Log

- [topic-a] one-line summary
- [topic-b] one-line summary

Helper Script

Use scripts/new_session.py to create the session file with correct timestamp:

python3 skills/session-log/scripts/new_session.py --agent main --dir workspace/sessions

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-03-29 05:33 安全 安全
  • v1.0.0
    2026-03-26 21:33

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,380
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,350 📥 317,461

Veevid AI Video Generator

meigesir
AI视频生成器——通过Veevid API支持文本转视频、图片转视频及参考素材转视频。支持Kling 3.0、Sora 2、Veo 3.1、LTX 2.3、Seedance、Wan 2.6等多种模型。
★ 0 📥 473