Better HN
topnewbestaskshowjobs
Log inSign up

chrikrah

2 karma · joined Dec 27, 2020 (5y ago) · 5 submissions

Chris Krah. AI agents break in production. I write about why, and send fixes upstream to the agent, eval and LLM tooling I use. Maintainer of spantruth: https://github.com/Plexito-de/spantruth · https://plexito.de
Submissions

comment 3h ago · link · parent

I don't think the fix is more discipline though. By the fifth PR of the day it's gone.

What works for me is adding filters and checks.

comment 4h ago · link · parent

Thanks, I went ahead and added it to my project: https://github.com/Plexito-de/spantruth/pull/121

With the TypedDicts I'm now down to 109 from 450.

comment 17h ago · link · parent

Tried it on a 10k loc project which never had a type checker: 0.5s, 450 results. More than 400 of them are one pattern, a dict of kwargs splatted into a call (`*kw`). ty infers the dict as `dict[str, str | int]` and flags every parameter against that. Is there any way to type the dict once, or is a TypedDict the way to go?

comment 1d ago · link · parent

Some do go stale. Each note has a verified date, and a note that decays gets an expiry date. And I have a counter in there. If something doesn't get used, it gets sweeped again.

I use the Google OKF format for this.

comment 2d ago · link · parent

For me the trigger isn't the model deciding something is valuable. It writes a note when I correct it, or when it disproves an assumption it was working from.

It is important that there is an index of some sort though that is kept up-to-date.