cross-channel-history-retrieval

Retrieve cross-channel chat history from history.json files and output a structured context block.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/R3n3gade-ai/canvasclaw --skill cross-channel-history-retrieval
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cross-channel-history-retrieval
Source: https://github.com/R3n3gade-ai/canvasclaw/tree/main/jiuwenclaw/resources/agent/jiuwenclaw_workspace/skills/cross-channel-history-retrieval
Command: npx skills add https://github.com/R3n3gade-ai/canvasclaw --skill cross-channel-history-retrieval

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Retrieve cross-channel chat history from past sessions and present matched messages to inform current responses.

Core Features & Use Cases

  • Cross-channel history retrieval across sessions to answer questions about earlier conversations.
  • Time-window and keyword-based search to locate relevant messages and assemble them into a pasteable context block.
  • Seamless integration with JiuwenClaw workflows via the mcp_exec_command scripting interface.

Quick Start

Run the script with your desired channel, session_id, and time window to fetch past messages and insert the resulting context into the current chat.

Frequently Asked Questions about cross-channel-history-retrieval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve cross-channel chat history from past sessions?▼

Cross-channel chat history is retrieved by reading history.json files from ~/.jiuwenclaw/agent/sessions, then filtering by channel, session_id, and time to output a structured HISTORY_CONTEXT_BLOCK for injection into the current conversation.

How does keyword matching work for past conversation context injection?▼

Keyword matching for context injection scans the filtered past chat history to locate relevant messages based on your specified keywords, assembling them into a pasteable context block that informs current responses.

Can I use mcp_exec_command to fetch past session messages in JiuwenClaw workflows?▼

Yes, mcp_exec_command provides the scripting interface for JiuwenClaw workflows, allowing you to execute the script with desired channel, session_id, and time window parameters to fetch past messages seamlessly.

Does cross-channel history retrieval work across different time windows?▼

Cross-channel history retrieval applies across channels, sessions, and time windows, allowing you to specify a time range to filter past chat history and handle inquiries about earlier conversations accurately.

What is a HISTORY_CONTEXT_BLOCK and how do I insert it into the current chat?▼

A HISTORY_CONTEXT_BLOCK is a structured output of matched past messages. You insert it into the current chat by running the script with channel, session_id, and time parameters to fetch and paste the resulting context block.

What are the limitations of retrieving chat history from local session files?▼

Retrieval is limited to reading history.json files stored locally in ~/.jiuwenclaw/agent/sessions, meaning it cannot access remote sessions or histories not saved to this local directory structure.