HackerTrans
TopNewTrendsCommentsPastAskShowJobs

peteralbert

no profile record

Submissions

How to cut the cost of long AI agent threads (without making the agent dumber)

viktor.com
2 points·by peteralbert·w zeszłym miesiącu·0 comments

[untitled]

1 points·by peteralbert·4 miesiące temu·0 comments

[untitled]

1 points·by peteralbert·4 miesiące temu·0 comments

What we learned building an AI agent with 100K tools in production

getviktor.com
2 points·by peteralbert·4 miesiące temu·0 comments

Giving our AI agent 100k tools made it worse

getviktor.com
1 points·by peteralbert·4 miesiące temu·1 comments

Why LLM agents break when you give them 100k tools

getviktor.com
4 points·by peteralbert·4 miesiące temu·3 comments

What breaks when your agent has 100k tools

getviktor.com
11 points·by peteralbert·4 miesiące temu·5 comments

comments

peteralbert
·w zeszłym miesiącu·discuss
[flagged]
peteralbert
·4 miesiące temu·discuss
Our agent is prompted to update the skill files, whenever it encounters errors, or sees something outdated. We also have a seperate clean up agent on a cron that every week cleans up skill files, deduplicates info, and deletes unecessary detailed explanations.
peteralbert
·4 miesiące temu·discuss
Author here (Peter, CTO). We've been iterating on this for about a year. Happy to answer questions on any section.
peteralbert
·4 miesiące temu·discuss
Author here (Peter, CTO). We've been iterating on this for about a year. Happy to answer questions on any section.
peteralbert
·4 miesiące temu·discuss
We validate tool calls with Pydantic models built directly from the JSON schemas, running inside the container. So the agent gets instant feedback if it passes the wrong type, misses a required field, or hallucinates a parameter — before anything hits the external API. You get the composability of code generation with the validation guarantees of structured calls.

In practice the self-correction rate is high. The agent writes a script, gets a traceback or validation error, reads it, and fixes the issue — usually within one retry. The skill files help a lot here because they contain the exact function signatures and known gotchas, so the model isn't guessing from memory. It's closer to a developer with good docs open than a model hallucinating API calls.

On the cron middle ground: the three-tier system is exactly that, and the conditional tier is where most automations end up. A typical example: "alert me when a competitor publishes a new blog post." The agent writes a Python script that checks the RSS feed every 30 minutes. If there's a new post, it spins up an LLM to summarize it and decide if it's worth alerting about. The check costs fractions of a cent. The LLM only runs when there's actually something to reason about.

The key insight we had is that the agent itself is often the best judge of which tier a cron should be. When a user describes what they want, the agent decides whether it needs reasoning every run or just a script with a conditional trigger. And if you ask it to audit its own crons, it'll often downgrade full-agent crons to conditional or scripted ones on its own. Turns out "look at this thing you're doing every hour and figure out if you actually need to think each time" is a prompt that works surprisingly well.
peteralbert
·4 miesiące temu·discuss
Author here (Peter, CTO). We've been iterating on this for about a year. Happy to answer questions on any section.