← 返回
沟通协作 中文

Multi-Chat Context Manager

CLI tool to store and retrieve conversation contexts per channel/user.
用于按频道/用户存储和检索会话上下文的CLI工具。
derick001
沟通协作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 809
下载
💾 16
安装
1
版本
#latest

概述

Multi-Chat Context Manager

What This Does

A simple CLI tool to store, retrieve, and clear conversation contexts. Contexts are saved as JSON, keyed by channel/user/thread IDs. This is a utility library, not an auto-integration plugin.

When To Use

  • You need to manually store conversation history per channel or user
  • You want a simple key-value context store for your scripts
  • You're building custom integrations and need context persistence

Usage

Store a conversation:

python3 scripts/context_manager.py store --channel "telegram-123" --user "user-456" --message "Hello" --response "Hi there"

Retrieve context:

python3 scripts/context_manager.py retrieve --channel "telegram-123" --user "user-456"

Clear context:

python3 scripts/context_manager.py clear --channel "telegram-123"

List all contexts:

python3 scripts/context_manager.py list

Examples

Example 1: Store and retrieve

Store:

python3 scripts/context_manager.py store --channel "discord-general" --user "john" --message "What is AI?" --response "AI is artificial intelligence."

Retrieve:

python3 scripts/context_manager.py retrieve --channel "discord-general" --user "john"

Output:

{

"channel_id": "discord-general",

"user_id": "john",

"history": [{"message": "What is AI?", "response": "AI is artificial intelligence."}]

}

Requirements

  • Python 3.x
  • No external dependencies

Limitations

  • This is a CLI tool, not an auto-integration plugin
  • Does not automatically intercept messages from platforms
  • Stores data in plaintext JSON (not encrypted)
  • No file-locking for concurrent access
  • You must call it manually from your scripts or workflows

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 16:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,581
security-compliance

HTTP Request Builder

derick001
从命令行界面构建、测试和保存HTTP请求,支持自定义请求头、认证、请求体、Cookie、模板、交互模式及请求历史记录。
★ 0 📥 854
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,674