‹ BackHN Continuity

Thread

Agents don't need memory, they need documentation

364 points · 260 comments · kmeh

  1. Garlef · · focus · HN ↗
    I think they even more so need deterministic feedback:

    I tried an approach based on the following idea recently and it's amazing - Lint rules where the error messages contain an explanation on how to deal with the issue.

    <a href="https:&#x2F;&#x2F;habit-hooks.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;habit-hooks.com&#x2F;

    I&#x27;m using it to foster IOSP (integration operation segregation principle) for example.

    1. jcjmcclean · · focus · HN ↗
      This looks pretty cool but I&#x27;d want to be able to setup a bunch of my own project specific code smells, so it&#x27;s not just a few generic rules. Is that the approach you&#x27;ve taken?

      Then for example you could write your own hook and convert existing code smell documentation which agents ignore into a format that works with the hook.

      1. Garlef · · focus · HN ↗
        &gt; but I&#x27;d want to be able to setup a bunch of my own project specific code smells

        That&#x27;s what I did; I did not use the library I linked to ~ It served only as an inspiration.

        Instead, I let the agents create custom lint rules (using eslint, pylint, ...) and add custom coaching error messages based on where I want to take my codebase.

        1. jcjmcclean · · focus · HN ↗
          Really nice idea, I&#x27;ll give this a try tomorrow. Thanks for sharing!
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.