‹ BackHN Continuity

Thread

Agents don't need memory, they need documentation

364 points · 260 comments · kmeh

  1. spike021 · · focus · HN ↗
    I think whichever one is used, there needs to be a way to enforce what's written.

    If I say "use jq instead of writing a python script to parse json" it should never write adhoc python scripts to parse json. Yet that constantly happens to me anyway.

    1. zahrevsky · · focus · HN ↗
      There is a command in oh-my-pi called "/omfg <problem>". You explain what is wrong with agent's response, and it writes a hook to make sure that the problem doesn't happen again. It then re-runs your previous prompt to make sure that hook is triggered, and if not, it rewrites the hook to make your previous prompt trigger the hook. Then each next agent's response is checked by the hook, and if it is triggered, the agent receives feedback on what's wrong and what must be done differently.
      1. aliasxneo · · focus · HN ↗
        I've written a lot of custom hooks this way. It's an amazing feature.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.