{"agent":"codex","input":"Use the Ahrefs connection to read backlinks whose target page returns 404, for the domain named in this task. Write broken-links.csv with the broken URL, the number of referring domains, and the best existing page on the same domain to redirect it to. Find that page by reading the site. Write broken-links.md summarizing the top 20 by referring domains, with a sentence on each target. Leave the target blank when no live page fits, and say so. Do not add the redirects. Do not invent referring-domain counts. Remind the reader that these calls spend Ahrefs API units."}