Give your agent a laboratory, pt. II
Two recent examples of giving Claude Code a laboratory to find the optimal path through some tedious engineering problems: I added an email capture feature to Shiori so you can forward newsletters into your library. But turns out emails suck to parse. Crappy junk headers and footers, tracking pixels, nasty redirect links, long forward chains, etc. So I poked around at some libraries to help with this, but they were all pretty mid. I wondered if I could throw an LLM at the problem and pay a small tax to let computers figure it out. Then I remembered: I am not smarter than a computer at figuring this out! So I told Claude to build a lab for itself to find the highest quality combination of tools and processing steps to extract meaningful content from a wide range of real emails pulled from my inbox. Claude spun up its own benchmarking system and ran through dozens of tests with different filtering mechanisms, html parsing libraries, pixel tracking detection, and header/footer removal. Fo
Two recent examples of giving Claude Code a laboratory to find the optimal path through some tedious engineering problems: 1. Extracting markdown from email newsletters I added an email capture feature to Shiori so you can forward newsletters into your library. But turns out emails suck to parse. Crappy junk headers and footers, tracking pixels, nasty redirect links, long forward chains, etc. So I poked around at some libraries to help with this, but they were all pretty mid. I wondered if I could throw an LLM at the problem and pay a small tax to let computers figure it out. Then I…
related reading
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- A Guide to Claude Code 2.0 and getting better at using coding agents – sankalp's blogsankalp.bearblog.dev
- How I Use Claude Code | Philipp Spiessspiess.dev
- Best practices for Claude Code - Claude Code Docsanthropic.com
- Parsed | Custom, interpretable AI systems that continuously learnparsed.com
- How Anthropic teams use Claude Code | Claudeanthropic.com
- Reducto: The Agentic Document Platform for AI Teamsreducto.ai
- Don’t Outsource Your Thinkingteltam.github.io
- How We Use Claude Code Skills to Run 1,000+ ML Experiments a Dayhuggingface.co
- Prompting best practicesdocs.anthropic.com
- Here’s how I use LLMs to help me write codesimonwillison.net
- Download Claude | Claude by Anthropicclaude.com