r/ClaudeCode • • 3h ago

Discussion problems with problems with problems

So I wrote plain English instructions for a sub-agent, a "Problem Finder", which an agent automatically spawns after it finishes work. The Problem Finder sifts through the logs of what happened, and records problems.

It worked great! I was able to discover and fix a whole host of issues that I wouldn't have otherwise known about.

I'd add features, change things, and all was good. Then I added a feature that broke a couple things.

As usual, the agent spawned its Problem Finder to review the logs. The Problem Finder found the issue, and reported it.

But it turns out the feature I added also broke something with the Problem Finder. It had its own problem. So, it spawned another Problem Finder to sift through it.

The new Problem Finder found the issue. It reported it, being the good agent it was.

But it ran into the same problem itself. And so it spawned another Problem Finder to research the issue and report it.

This continued, recursively, over the course of maybe 1-2 hours until my account ran out of tokens for the session limit.

So I had to change the text. It now stops at "problems related to problems with Problem Finders", so at least I get the one level deep.

1 Upvotes

2 comments sorted by

•

u/AutoModerator 3h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Dapper_Profession 3h ago

the call is coming from inside the problem finder