Copy library / What got built / Grok Bot
AgentRags redesigned so Grokbot can run it every night
# 改版 AgentRags,让 Grokbot 每晚安全地跑 Source: https://github.com/ESCAP0/agentrags/pull/1 Author: ESCAP0 作者把 AgentRags 重做成一份晚报,并让 Grokbot 能每晚放心运行:每条入选故事有固定页面;不再盗链 X 或媒体图片,改用 Grokbot 画的插图或生成封面,/api/needs-images.json 是 Grokbot 的配图任务单;每次构建前跑 check_data.py,数据格式不对就失败,保留上一次正常部署;GROKBOT.md 规定谁能改什么。
- What it does
- The author rebuilt AgentRags as an evening paper made safe for Grokbot to run nightly: each pick gets a permanent story page; no hotlinked X or publisher media, only Grokbot’s illustrations or generated covers, with /api/needs-images.json as Grokbot’s work list; check_data.py runs before every build and fails on bad data so the last good deploy stays live; GROKBOT.md sets who may change what.
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaNot in source
- Steps / chaptersNot in source
- Verbatim prompt / configNot in source
- Results / numbersNot in source
- Risk notesYes
- Related entriesYes
— means the source doesn't say; we don't fill it in.
- Verbatim source excerpt
Redesign AgentRags: editorial paper, story pages, own images, data contract
Rebuilds AgentRags as an evening paper and makes it safe for Grokbot to run every night.
**Design**
- New masthead, type (Newsreader + Inter Tight, self-hosted), lead + grid layout, feeds band, earlier editions, credits this week. Mobile pass; no external requests.
- Lead is the story the curator's headline is about. Stories still trending from earlier nights count toward later editions.Show full post
**Pages**
- `/story/<id>/`: one permanent page per pick with sources, why it matters, tags, related stories. Feeds and the newsletter draft link here.
**Images**
- No hotlinked X or publisher media. Grokbot's illustrations (`static/img/posts/<id>.webp`) when present, generated two-ink cover art otherwise.
- `/api/needs-images.json` is Grokbot's work list; `IMAGES.md` is the spec.
**Grokbot contract**
- `scripts/check_data.py` runs before every build (Vercel, CI, nightly sync) and fails on malformed data, so the last good deploy stays live.
- `GROKBOT.md`: who may change what. The nightly sync no longer runs `card_images.py` / `fetch_x_posts.py` (removed); it runs `check_data.py` instead.
**Checked:** 205 pages, 0 broken internal links, 16 feeds valid, no console errors, no horizontal overflow at 1440 px or 390 px.
Merging deploys to production.
---
_Generated by [Claude Code](https://claude.ai/code/session_01Xy1oBvjtgtP6FxBgspanb2)_ESCAP0 · · Open original ↗ From the project README, verbatim and untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Open the repo: github.com/ESCAP0/agentrags/pull/1 ↗
- Read the README, send the repo link to your Bot and have it reproduce it
- Get it working small first, then add a routine
- Risks and limits
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator