derstandard: auto-track seen articles

- items now shows only NEW (unseen) articles by default
- items --all shows everything including seen
- articles command auto-marks URLs as seen
- Added seen/reset commands for state management
- State stored in memory/derstandard-seen.txt
This commit is contained in:
Agent 2026-02-03 22:02:51 +00:00
parent 1eac52a97c
commit 252fcb3ad0
4 changed files with 78 additions and 21 deletions

View file

@ -45,20 +45,25 @@ When user arrives home, HA calls the webhook. Check `memory/arrival-reminders.js
Helper script: `~/bin/derstandard`
```bash
derstandard items [max] # Title + URL pairs (tab-separated)
derstandard article <url> # Full article content for a specific URL
derstandard articles <url1>,<url2>,... # Fetch multiple articles (comma-separated)
derstandard urls [max] # Article URLs only (default: 50)
derstandard titles [max] # Article titles only
derstandard raw [max] # Full RSS XML
derstandard items [max] # NEW items only (filters out seen)
derstandard items --all [max] # All items including already seen
derstandard article <url> # Full article content for a specific URL
derstandard articles <url1>,<url2>,... # Fetch multiple + auto-mark as seen
derstandard urls [max] # Article URLs only (default: 50)
derstandard titles [max] # Article titles only
derstandard seen # Show seen count and recent entries
derstandard reset # Clear seen history
derstandard raw [max] # Full RSS XML
```
- Uses internal fivefilters proxy (bypasses web_fetch private IP block)
- Pre-processes output for minimal token usage
- **Auto-tracks seen articles** in `memory/derstandard-seen.txt`
**Workflow for news briefing:**
1. `derstandard items` → pick interesting titles
2. `derstandard articles <url1>,<url2>,...` → get full content for selected articles
1. `derstandard items` → only shows NEW articles (unseen)
2. `derstandard articles <url1>,<url2>,...` → fetch content + auto-mark as seen
3. Next briefing: step 1 automatically excludes previously covered articles
## Forgejo Git Access