跳到正文
TakoAPI
返回技能列表

usewhisper-autohook

由 alinxus 提供

Coding Agents & IDEs
451下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Auto-hook tools for OpenClaw: query Whisper Context before every generation, ingest after every turn.

描述

该技能的功能

Auto-hook wrapper for OpenClaw that queries Whisper Context before each agent generation and ingests the completed turn after. Defaults to delta compression and caching to minimize token use. Works with any stable user_id/session_id pair, with Telegram as the primary target.

Delta compression with locally persisted context hashes prevents re-sending unchanged memory on every turn, so token use stays lower than with full-history approaches.

何时使用

  • Persisting user context across Telegram bot sessions
  • Recalling past decisions without replaying full chat history
  • Injecting compressed long-term memory into agent prompts
  • Reducing token costs on high-volume conversational agents
  • Running a memory proxy for frameworks that always send full conversation history

示例工作流

输入

User asks: What did we decide about the project timeline last week?

智能体
  1. 1

    Calls get_whisper_context with user_id, session_id, and the current query

  2. 2

    Receives compressed context string from Whisper Context API

  3. 3

    Prepends context to the prompt as 'Relevant long-term memory: ...'

  4. 4

    Generates response using the injected memory

  5. 5

    Calls ingest_whisper_turn to store the user and assistant messages

输出

Agent responds using past context; the turn is stored for future recall

前置要求

  • Whisper Context API key from usewhisper.dev (WHISPER_CONTEXT_API_KEY)

安装

clawhub install alinxus/usewhisper-autohook

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接