Hi all, I have a process that goes as follows: I ask Claude search PDFs for certain statements based on keywords, Sonnet agents extract the relevant areas of text. Sonnet agents classify the statements based on certain language and keywords and assigns tags to them. Opus reasons about each “priority” finding and writes values to an Excel sheet based on them and also compares them against human-written values to assess what mistakes were made. It’s much more complex but that’s the summary. When I try to process too many PDFs, quality goes down. So I do 3 per prompt. After each prompt I simply say “do the next 3.” And after 3 or 4 of those, I do /clear and start the process over (“read QC Guidelines and start the process for the first three PDFs.”). Here’s what I need help with, I’d like to automate the “continue with the next 3 PDFs” and “/clear” prompts, because it’s tedious and doesn’t really require me to be there. Does anyone know how I can do this? Again, I’ve found that processing too many at once in one prompt (and obviously, not clearing context degrades quality eventually) degrades the quality of Opus’s work. I have lots of hooks and scripts in place that try to prevent this, and I get an F1 score of 98% when I process only a few at a time. Any help would be greatly appreciated! If you need more details, ask away. Thank you submitted by /u/ll-_-ll—
Originally posted by u/ll-_-ll— on r/ClaudeCode
