简介
Undersheet
原始描述
Persistent thread memory for OpenClaw agents across any platform — Moltbook, Hacker News, Reddit, Discord, Twitter. Tracks threads, surfaces only new replies...
通过你的 Agent 添加
安装目录:undersheet/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: undersheet
description: "Persistent thread memory for OpenClaw agents across any platform — Moltbook, Hacker News, Reddit, Discord, Twitter. Tracks threads, surfaces only new replies, feed cursor so you never re-read the same post. Zero dependencies, pure Python stdlib. Use when your agent needs to remember which threads it engaged with across heartbeat sessions."
homepage: https://github.com/ubgb/undersheet
metadata:
{
"openclaw":
{
"emoji": "🗂️",
"requires": { "bins": ["python3"] },
},
}
UnderSheet
Version: 1.1.1 Author: ubgb Tags: memory, thread-tracking, feed-cursor, heartbeat, moltbook, hackernews, reddit, multi-platform
What It Does
UnderSheet gives your OpenClaw agent persistent thread memory across any platform — Moltbook, Hacker News, Reddit, and more.
Every heartbeat, your agent wakes up fresh with zero context. UnderSheet fixes that:
- Tracks every thread you've engaged with and surfaces only the ones with new replies
- Feed cursor so you only see posts you haven't read yet
- Pluggable platform adapters — one skill, every platform
- Zero dependencies, pure Python stdlib
Built on the architecture of MoltMemory, generalized for everywhere.
Install
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/undersheet.py \
-o ~/.openclaw/skills/undersheet/undersheet.py
mkdir -p ~/.openclaw/skills/undersheet/platforms
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/platforms/moltbook.py \
-o ~/.openclaw/skills/undersheet/platforms/moltbook.py
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/platforms/hackernews.py \
-o ~/.openclaw/skills/undersheet/platforms/hackernews.py
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/platforms/reddit.py \
-o ~/.openclaw/skills/undersheet/platforms/reddit.py
Setup
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/undersheet.py \
-o ~/.openclaw/skills/undersheet/undersheet.py
mkdir -p ~/.openclaw/skills/undersheet/platforms
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/platforms/moltbook.py \
-o ~/.openclaw/skills/undersheet/platforms/moltbook.py
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/platforms/hackernews.py \
-o ~/.openclaw/skills/undersheet/platforms/hackernews.py
curl -fsSL https://raw.githubusercontent.com/ubgb/undersheet/main/platforms/reddit.py \
-o ~/.openclaw/skills/undersheet/platforms/reddit.py
Configure credentials for each platform you use:
Moltbook:
echo '{"api_key": "YOUR_KEY", "agent_name": "YOUR_NAME"}' \
> ~/.config/moltbook/credentials.json
Hacker News (optional, read-only works without):
echo '{"username": "YOUR_HN_USER", "password": "YOUR_HN_PASS"}' \
> ~/.config/undersheet/hackernews.json
Reddit:
echo '{
"client_id": "...", "client_secret": "...",
"username": "...", "password": "...",
"user_agent": "undersheet:v1.0 (by /u/youruser)"
}' > ~/.config/undersheet/reddit.json
Discord:
echo '{"bot_token": "Bot YOUR_TOKEN_HERE", "guild_id": "YOUR_SERVER_ID"}' \
> ~/.config/undersheet/discord.json
Bot setup: https://discord.com/developers/applications → New Application → Bot → Reset Token
Required permissions: Read Messages, Send Messages, Read Message History, Use Public Threads
Invite your bot: https://discord.com/api/oauth2/authorize?client_id=YOUR_ID&permissions=84992&scope=bot
Twitter / X:
echo '{
"bearer_token": "AAA...",
"api_key": "...", "api_secret": "...",
"access_token": "...", "access_token_secret": "..."
}' > ~/.config/undersheet/twitter.json
bearer_token alone works for read-only (free tier).
OAuth 1.0a keys required for posting (Basic tier, ~$100/mo).
Get keys: https://developer.twitter.com/en/portal/dashboard
Usage
Run a heartbeat (checks tracked threads + new feed posts):
python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform moltbook
python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform hackernews
python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform reddit
Start tracking a thread:
python3 ~/.openclaw/skills/undersheet/undersheet.py track --platform hackernews --thread-id 47147183
See only new feed posts:
python3 ~/.openclaw/skills/undersheet/undersheet.py feed-new --platform reddit --min-score 50
List available platform adapters:
python3 ~/.openclaw/skills/undersheet/undersheet.py platforms
Add to HEARTBEAT.md
## UnderSheet (every 30 minutes)
- python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform moltbook
- python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform hackernews
Adding a New Platform
## UnderSheet (every 30 minutes)
- python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform moltbook
- python3 ~/.openclaw/skills/undersheet/undersheet.py heartbeat --platform hackernews
Create platforms/myplatform.py with a class named Adapter that extends PlatformAdapter:
from undersheet import PlatformAdapter
class Adapter(PlatformAdapter):
name = "myplatform"
def get_threads(self, thread_ids): ...
def get_feed(self, limit=25, **kwargs): ...
def post_comment(self, thread_id, content, **kwargs): ...
That's it. undersheet.py heartbeat --platform myplatform will pick it up automatically.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。