编程

Auto Rename Session Label

试用

Installs an OpenClaw internal hook that auto-titles each new chat session using the session's current model (on message:received), with a safe fallback to tr...

它能做什么

Installs an OpenClaw internal hook that auto-titles each new chat session using the session's current model (on message:received), with a safe fallback to truncating the first message. Triggers: install auto rename session label, auto title sessions, auto-name chats, session auto rename.

技能文档

Auto Rename Session Label (OpenClaw hook installer)

Triggers (highest priority): install auto rename session label, auto title sessions, auto-name chats, session auto rename. See / hear any → run the install workflow below.

This skill installs an OpenClaw internal hook named auto-rename-session-label. Once installed and enabled, every time a message arrives for a session that has no title yet, the hook generates a short title using the same model that session is currently using, and writes it as the session label. On any failure it falls back to truncating the first user message, so a label is always set.

The hook is portable — it contains no hardcoded paths and no personal data; it resolves OpenClaw home, agent id, and the OpenClaw dist directory at runtime.

What's in this package

auto-rename-session-label/
├── SKILL.md            # this file (SkillHub/ClawHub entry)
├── README.md
├── LICENSE
└── hook/
    ├── HOOK.md         # the hook's own metadata + docs
    └── handler.ts      # the hook implementation (portable)

hook/ is a ready-to-drop OpenClaw internal hook directory.

Install workflow

  1. Resolve the OpenClaw home dir: OPENCLAW_HOME if set, else ~/.openclaw.

  2. Copy the bundled hook/ directory into the managed hooks dir:

    OPENCLAW_HOME="${OPENCLAW_HOME:-$HOME/.openclaw}"
    SKILL_DIR=""
    mkdir -p "$OPENCLAW_HOME/hooks/auto-rename-session-label"
    cp "$SKILL_DIR/hook/HOOK.md" "$SKILL_DIR/hook/handler.ts" \
       "$OPENCLAW_HOME/hooks/auto-rename-session-label/"
    

    Resolve `` to where this SKILL.md actually lives (the parent of this file). Do not guess an absolute path.

  3. Enable the hook (this is the required step; hooks.internal.entries.* is a protected config path and cannot be set via gateway config.patch — use the CLI):

    openclaw hooks enable auto-rename-session-label
    
  4. Restart or reload the gateway so the hook loads, then verify:

    openclaw hooks list        # auto-rename-session-label should show ✓ ready
    openclaw hooks info auto-rename-session-label
    

Verify it works

Start a fresh session and send one message. After the reply, that session's entry in ~/.openclaw/agents//sessions/sessions.json should have a short label generated by the model (not a truncated copy of your message).

If the label is always a truncated copy of your first message, the LLM branch is failing and falling back. Check openclaw hooks info auto-rename-session-label and the gateway logs; the most common cause is a too-small maxTokens for proxied models (this hook already uses 1024 to avoid that).

Uninstall

openclaw hooks disable auto-rename-session-label
rm -rf "${OPENCLAW_HOME:-$HOME/.openclaw}/hooks/auto-rename-session-label"

Notes

  • This hook is an operator-managed side effect (it writes the session label). It does not modify prompts, tools, or message flow.
  • See hook/HOOK.md for full implementation detail.

相关技能

Rename or auto-generate a friendly label for an OpenClaw-style session by editing sessions.json directly. Supports random labels (zh/en with locale auto-dete...

1 次安装

Archive and organize completed OpenClaw session logs into structured markdown notes for long-term memory retention. Use when wrapping up a long session, consolidating work logs, or preparing daily memory files for review.

Structured session lifecycle for Claude Code — start, checkpoint, end, and daily heartbeat commands that maintain project state across conversations.

1 次安装

Engine auto-update & discovery skill OpenClaw: scan, evaluate, update, test, install, verify, rollback — dengan validation gate dan safety agar update tidak merusak workspace.

Claude Code & Antigravity session management. Topics — id (lookup UUID), list (enumerate), search (keyword validate), import, summarize, analyze (stats), archive (flat bak), classify, clean-profanity (sanitize JSONL), split (boundaries), compress (MCP), context (usage measurement pull/push), destroy, dual-sync (Win/WSL memory), install (hook), memory-trim (budget trim), migrate (to worktree), move (update cwd), purge (dead sessions), rename (custom title), repair (chain/tool_result/UUID), rewind (context truncate), url (web URL). Use when: "session id", "current session", "session list", "list sessions", "session search", "find session", "session classify", "session compress", "session migrate", "session move", "session repair", "session rename", "session split", "session purge", "session rewind", "session analyze", "session import", "session summarize", "session archive", "archive session", "clean profanity", "session cleanup", "memory trim", "dual sync", "measure context", "context u

作者 es6kr