Sign in with Google to keep private notes

To Build A Harness

I am lowkey a bit trash at my SWE job so I started reading up on agentic harnesses to improve my workflow.

Problems

When I vibecode, I run into these problems:

  1. Unobservable agent & subagent behaviour (I don't know what lines of code are actually changed)
  2. Incoherent agent jibberish that sounds like English (using 7 fancy words to describe something that can be described in 1)
  3. Bloat and code odour (It's highly unreadable, highly unmaintable)

And basically, if I can be a bit mean to myself, it really shows a lack of ownership or accountability for my code. It's highly irresponsible.

In my experience the amount of unreadability kind of just exponentiated over time. If this_function() is unreadable and breaks, you go back and refactor it into this_function_also() and another_function_again() but the both of these are also somewhat unreadable because you also vibed them out.

Basically I badly needed higher readability so I can take care of my agents better.

Solutions (Spitballing phase)

  1. Git integrated UML diagrams with diff indications to increase the visibility of change module by module, commit by commit
  2. Code qualiry MCP to give my agent a "sense of smell"
    And I wanted to get around this with
  3. clang-uml
  4. sonarqube-mcp

Articles

A. Components Of A Coding Agent

1. Compaction Strategies are a lot more complicated than I thought.

https://magazine.sebastianraschka.com/p/components-of-a-coding-agent

For example (more details are kept in more recent tasks than less recent tasks)

2. Live repo context

Is something I should be a bit more wary of. These agents are not stateless and they are learning about the project as I talk about it. I should have a little more ownership over this part of the code.

3. Agents spam commiting changes is by design

its not actually from this article, but instead this one by anthropic:

https://www.google.com/url?q=https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents&source=gmail&ust=1795768399588000&sa=E

Agents fell into one of 2 failure modes. The first is atttempting to one shot large projects and running out of context. The second is having too much context, requiring a compaction, and then looking around the house while halfway through a project and claiming it's probably done.

One of the ways anthropic engineers got around this was by encouraging their models to document their process through commits. Each of the commits was supposed to be clean.. I.e. it passes all tests cases. And in my humble opinion this is a load of horse shit because if you do a lot of front end facing work you will know agents aren't the best at UI design and usually require a lot of steering from your human opinion.

B. Anatomy Of A Coding Agent

https://huggingface.co/blog/huggingface/anatomy-of-a-bug-fixing-agent
This article isn't really my use case. It's about having an agent run bug fixes forever in production. But I did learn about

  1. Relore
    You have to spin up a server for it but it makes it easier for an agent to query a github repository. Allegedly.

C. How Coding Agents Work

https://simonwillison.net/guides/agentic-engineering-patterns/how-coding-agents-work/

I didn't really learn anything new here. Good recap. I suspect it's oversimplifying tool calls.

D.

 

 

 

Articles to read next