fix: improve What field quality and prevent duplicate entries#31
Open
StartupBros wants to merge 1 commit intoalexknowshtml:mainfrom
Open
fix: improve What field quality and prevent duplicate entries#31StartupBros wants to merge 1 commit intoalexknowshtml:mainfrom
StartupBros wants to merge 1 commit intoalexknowshtml:mainfrom
Conversation
The What field in bookmark entries frequently degrades to generic category
labels ("Tool or resource share"), echoes of tweet text ("karpathy really
is the fucking goat"), or empty strings — especially for quote tweets,
image-only posts, and failed link expansions.
Changes:
- Add What Field Rules section with explicit quality minimum (80+ chars)
- Add NEVER-write list for common failure patterns (category labels, echoes,
placeholders, raw URLs)
- Add THIN: prefix convention for image/video-only tweets with no text
- Add LINK_FAILED: prefix for unresolvable t.co links
- Add inline quality rules in subagent prompt template (subagents don't
see the full prompt, so rules must be repeated)
- Improve title guidance for quote tweets (use quoted content, not reaction)
and media-only posts
- Add deduplication check before inserting entries to prevent duplicates
on re-runs
Tested on 419 bookmarks: reduced garbage descriptions from 8.9% to 0%.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
**What:**field in bookmark entries frequently degrades to low-quality output across three failure modes:This happens because the prompt gives almost no guidance on What field quality — just
{1-2 sentence description of what this actually is}.Solution
Three targeted improvements to
process-bookmarks.md:1. What Field Rules section
THIN:prefix convention for image/video-only tweets where context is genuinely missingLINK_FAILED:prefix for unresolvable t.co links2. Subagent template quality rules
Subagents don't see the full prompt, so the What field rules are inlined in the subagent prompt template.
3. Deduplication check
Prevents duplicate entries when bookmarks are re-processed (e.g., after a
--forcefetch).4. Better title guidance
[Media]prefix instead of "Video post" or raw URLsTesting
Tested on 419 bookmarks processed with both Haiku and Sonnet:
Zero garbage descriptions after the fix.
🤖 Generated with Claude Code