clawfeedradar
Personal "reading radar" built on top of clawsqlite: it pulls articles from Hacker News / RSS / arXiv and ranks them against your existing knowledge base, generating a personalized RSS feed with optional bilingual summaries.
Goal: simple, controllable, auditable, and loosely coupled with
clawsqlite. This document describes the current v1 implementation (branchbot/20260402-embedding).
When running inside OpenClaw
clawfeedradar expects an existing clawsqlite knowledge base with interest clusters.
In an OpenClaw workspace, the recommended way to set this up is:
-
Install the
clawsqlite-knowledgeskill (if not already installed):openclaw skills add clawsqlite-knowledge
Or via the web catalog:
-
Initialize and build interest clusters using that skill (see the skill README for the exact commands).
Once clawsqlite-knowledge is installed and has built interest_clusters, clawfeedradar can attach to the same DB and reuse the interest space for scoring.
Overview
clawfeedradar does three things:
- Fetch candidates from external sources
Currently HN RSS and generic RSS are supported; arXiv and others can be added later. - Score candidates using
clawsqliteinterest clusters
It uses embeddings + interest clusters to estimate how well each candidate matches your long-term interests, then applies light recency / popularity bias. - Generate an RSS feed with optional bilingual content
For selected items it scrapes fulltext, calls a small LLM to produce preview summary + bilingual body, and writes an XML + JSON pair.
In short: clawsqlite knows what you like; clawfeedradar goes out, finds similar content, and feeds it to your RSS reader.
Quick start
1. Prepare environment
Assume a workspace like:
~/.openclaw/workspace/
├── clawsqlite # clawsqlite repo
├── knowledge_data # your clawsqlite-knowledge DB
├── clawfeedradar # this repo
└── clawfetch / ... # fulltext scraper + wrapper
Make sure clawsqlite has built interest clusters:
cd ~/.openclaw/workspace/clawsqlite
clawsqlite knowledge build-interest-clusters \
--root ~/.openclaw/workspace/knowledge_data
2. Configure clawfeedradar
cd ~/.openclaw/workspace/clawfeedradar
cp ENV.example .env
# edit .env for your local setup
You need to configure at least:
- clawsqlite knowledge base
CLAWSQLITE_ROOTpointing toknowledge_dataCLAWSQLITE_DBif you want an explicit sqlite path
- Embedding service (shared with clawsqlite)
EMBEDDING_BASE_URL/EMBEDDING_MODEL/EMBEDDING_API_KEYCLAWSQLITE_VEC_DIMmust match the embedding model dimension
- Output directory
CLAWFEEDRADAR_OUTPUT_DIRfor XML/JSON output
- Fulltext scraping
CLAWFEEDRADAR_SCRAPE_CMDpointing to a wrapper that callsclawfetchCLAWFEEDRADAR_SCRAPE_WORKERScontrolling parallelism (per-host serialization still applies)
- Small LLM (summaries + bilingual body)
SMALL_LLM_BASE_URL/SMALL_LLM_MODEL/SMALL_LLM_API_KEYCLAWFEEDRADAR_LLM_CONTEXT_TOKENS(approx token budget, internally converted to char budget)CLAWFEEDRADAR_LLM_MAX_PARAGRAPH_CHARS(screen-sized bilingual segments)CLAWFEEDRADAR_LLM_SLEEP_BETWEEN_MSCLAWFEEDRADAR_LLM_SOURCE_LANG/CLAWFEEDRADAR_LLM_TARGET_LANG
- Scoring weights
CLAWFEEDRADAR_W_RECENCYCLAWFEEDRADAR_W_POPULARITYCLAWFEEDRADAR_RECENCY_HALF_LIFE_DAYSCLAWFEEDRADAR_INTEREST_SIGMOID_K(steepness of S-shaped stretching around 0.5)
- Default item count
CLAWFEEDRADAR_MAX_ITEMSas the default when--max-itemsis omitted
3. Run a single feed (debug)
cd ~/.openclaw/workspace/clawfeedradar
python -m clawfeedradar.cli run \
--root ~/.openclaw/workspace/orgmode/clawsqlite/data \
--url https://feeds.bbci.co.uk/news/technology/rss.xml \
--output ./feeds/bbc-tech.xml \
--max-source-items 15 \
--score-threshold 0.4 \
--max-items 12 \
--source-lang en \
--target-lang zh
This produces:
./feeds/bbc-tech.xml
RSS feed where<description>combines:summary_preview(short summary in target language) andbody_bilingual(full bilingual body, screen-sized segments).
./feeds/bbc-tech.json
Sidecar JSON containingfulltext,summary_preview,body_bilingual, and scoring details including:interest_score(S-shaped stretched score)interest_score_raw(linear interest score)final_scorebest_cluster_id/best_cluster_weight
Publishing feeds via Git (GitHub Pages / Gitee Pages)
clawfeedradar can optionally push the generated XML/JSON to a git repository, so that GitHub Pages or Gitee Pages can host your feed at a stable HTTPS URL.
1) GitHub Pages example
-
创建一个公开仓库,例如:
github.com/yourname/clawfeedradar-feed,在 Settings → Pages 中 启用 Pages 功能,选择:- Branch:
gh-pages - Directory:
/或feeds/(下面示例使用feeds/)
- Branch:
-
在运行 clawfeedradar 的机器上,配置好 git 访问 GitHub 的方式(SSH key 或 HTTPS+PAT)。
-
在
.env中添加:CLAWFEEDRADAR_PUBLISH_GIT_REPO=git@github.com:yourname/clawfeedradar-feed.git CLAWFEEDRADAR_PUBLISH_GIT_BRANCH=gh-pages CLAWFEEDRADAR_PUBLISH_GIT_PATH=feeds
-
之后每次运行
clawfeedradar run/schedule:- clawfeedradar 会在本地
./.publish/yourname-clawfeedradar-feed/下维护一个 clone; - 将生成的
*.xml/*.json拷贝到该 clone 的feeds/目录; - 自动执行
git add/git commit/git push。
- clawfeedradar 会在本地
-
最终订阅地址类似于:
https://yourname.github.io/clawfeedradar-feed/feeds/bbc-tech.xml
2) Gitee Pages example(适合国内网络)
步骤与 GitHub 类似,只是把远端换成 Gitee:
-
创建 Gitee 仓库,例如:
gitee.com/yourname/clawfeedradar-feed,在 Pages 设置中 启用 Gitee Pages(选择对应分支和目录)。 -
在运行环境中配置好访问
git@gitee.com:...的 SSH key。 -
在
.env中添加:CLAWFEEDRADAR_PUBLISH_GIT_REPO=git@gitee.com:yourname/clawfeedradar-feed.git CLAWFEEDRADAR_PUBLISH_GIT_BRANCH=gh-pages CLAWFEEDRADAR_PUBLISH_GIT_PATH=feeds
-
之后 clawfeedradar 的行为与 GitHub 情况一致:每次生成 XML/JSON 后自动
git add/commit/push到 Gitee 仓库。 -
Gitee Pages 的订阅地址通常类似:
https://yourname.gitee.io/clawfeedradar-feed/feeds/bbc-tech.xml
如未配置 CLAWFEEDRADAR_PUBLISH_GIT_REPO,clawfeedradar 仅在本地写 XML/JSON,
不会尝试推送任何远端仓库。
Configuration (env overview)
(其余章节与之前相同,略)
Metadata
Release files for clawfeedradar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clawfeedradar-0.1.0.tar.gz | 38.4 kB | Without provenance | Details for clawfeedradar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clawfeedradar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for clawfeedradar-0.1.0-py3-none-any.whl |
Total release size: 80.1 kB
Release files / clawfeedradar-0.1.0.tar.gz
| Download URL | clawfeedradar-0.1.0.tar.gz |
|---|---|
| Size | 38.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b35549e41f6af520f1a8bb88fdad7be925a15cc028fccfb5ce82c5a32a97286
|
|
BLAKE2b-256 checksum How to use checksums |
96a62747e9e9546e7626260ed4f3ae0e1c5325a5eca969ae784553ca2377a06c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / clawfeedradar-0.1.0-py3-none-any.whl
| Download URL | clawfeedradar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 41.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bb12a5f3999d890499a7a901be189ae1110d4843a54ea104b226b25f3c070d3
|
|
BLAKE2b-256 checksum How to use checksums |
5410929d5841a41e87bab45424e9f352b1824322781c2321f00b68dae6cf0231
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for clawfeedradar 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.