返回顶部
a

agent-relay

|

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
104
下载量
0
收藏
概述
安装方式
版本历史

agent-relay

# Agent Relay — Cross-Agent Context Sharing Lightweight file-based coordination for multi-agent OpenClaw setups. ## Problem Agents run independently — Reddit doesn't know what Moltbook found, News doesn't know what's trending on HN. Each agent is an island. ## Solution Shared JSON files that agents write to and read from. No config changes needed — just files on disk. ## Setup ```bash # Create shared directory in workspace mkdir -p ~/.openclaw/workspace/shared # Script location ~/.openclaw/workspace/scripts/shared-context.py ``` ## Usage ### Agent writes after finishing work: ```bash # Reddit agent logs trending topic python3 scripts/shared-context.py add-trend \ --source reddit --topic "self-hosting mini PCs" --score 1500 # News agent logs highlight python3 scripts/shared-context.py add-highlight \ --source news --title "Unsloth Studio launched" \ --summary "Open-source LLM training UI, 2x faster" ``` ### Agent reads before acting: ```bash # Moltbook agent checks what's trending before posting python3 scripts/shared-context.py get-trends --limit 5 # Any agent checks recent highlights python3 scripts/shared-context.py get-highlights --limit 5 ``` ### Cleanup (brain-maintenance cron): ```bash # Remove entries older than 48 hours python3 scripts/shared-context.py cleanup --hours 48 ``` ## Integration into cron prompts Add to any agent's cron prompt: ``` Before posting/engaging, check shared context: exec('python3 /path/to/scripts/shared-context.py get-trends --limit 3') → If a trend is relevant to this platform, create content about it. After finishing, log what you found: exec('python3 /path/to/scripts/shared-context.py add-trend --source <agent> --topic "<finding>" --score <relevance>') ``` ## Files | File | Purpose | |------|---------| | `shared/trends.json` | Topics trending across platforms | | `shared/highlights.json` | Best content found by any agent | | `scripts/shared-context.py` | CLI to read/write shared context | ## Architecture ``` Reddit ──write──→ shared/trends.json ←──read── Moltbook News ──write──→ shared/highlights.json ←──read── Clawstr ↑ brain-maintenance (cleanup) ``` No database. No message queue. Just JSON files on disk. Works because all agents run on the same machine.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-shared-context-1776116001 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-shared-context-1776116001 技能

通过命令行安装

skillhub install agent-shared-context-1776116001

下载 Zip 包

⬇ 下载 agent-relay v1.0.0

文件大小: 3.52 KB | 发布时间: 2026-4-14 13:49

v1.0.0 最新 2026-4-14 13:49
Initial release: cross-agent context sharing via shared JSON files. Trends, highlights, cleanup.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部