const result = await anchorClient.agent.task(
`Open the most recent "Ask HN: Who is hiring?" story from the search results.
In that thread, scan the top-level comments and find companies hiring for data
engineering or data platform roles. For each match, collect the company name,
the role title, the location, and an application link if one is present.
Return a JSON array: [{ "company": "...", "role": "...", "location": "...", "url": "..." }].`,
{
taskOptions: {
url: 'https://hn.algolia.com/?query=Ask%20HN%3A%20Who%20is%20hiring&sort=byDate&type=story',
}
}
)
console.log(result);