I totally agree - designing a competent AI agent with a fully customized harness to successfully pull off this task is a much more challenging engineering effort than merely creating an ordinary computer program. Had OP made chatgpt write an ordinary program instead, they likely would have succeeded in their task.
You said "Had OP made ChatGPT write an ordinary program" but that assumes enough structure exists to specify that program. If so that may be the right architecture, but also demonstrates why the "agentic AI" does not automatically solve the original open ended task.
You have converted a fuzzy task into a conventional software engineering problem, and then relying on conventional software for the reliability :-)