Menu

📰
0

Fake building: Claude wrote 3,000 lines instead of import pywikibot

FireflySentinel·FireflySentinel·21 days ago
#2y0CsN7q
Reading 0:00
15s threshold

TL;DR. Claude would rather reinvent the wheel than pip install one. I wanted to fix typos on some Fandom wikis. Opened Claude Code, Opus 4.7. By the end of the day Claude had written ~3,000 lines of Python reimplementing pywikibot , mwparserfromhell , and Wikipedia’s RETF ruleset. It didn’t web search for prior art once. What got built vs. what existed Component What Claude wrote What was on PyPI Wikitext stripper 122 lines of regex, with cases for nested templates, <nowiki> , <pre> , <ref> with templates, color tags mwparserfromhell.parse(text).strip_code() Typo dictionary 18 entries ( teh→the , recieve→receive , occured→occurred , …) RETF, ~4,000 rules, community-maintained since 2007 Edit runner 10 copies, ~250 LOC each. Cookie auth, raw CSRF fetch, maxlag backoff, conflict retry pywikibot.Page.save() . The migrated version is 8 lines.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More