How I use agents

post 256 words #agents #llm
Like many people, I have found
AI LLM
agents to be increasingly useful.

Like people, some of the biggest power ups I have found are to give the agent a good environment. It works best when it:

The beautiful thing is most agents auto run tests, code formatter and linters after every change.


My 2 cents above is based on my experience
"vibe coding" "vibe coding", I also haven't truly been 100% vibe coding... I still look at the code it writes and then based on that either:
  • completely undo the change and ask it to have another go, maybe slightly tweaking my prompt
  • give it a follow up prompt.
though I think starting fresh seems to get better results.
So I have been "vibe coding"
an app to help me keep track of my running niggles/ injuries.

The agents really came alive when I made them write some integration tests, using an actual browser. eg:

import { test, expect } from "@playwright/test";

test("homepage loads just added diagnosis", async ({ page }) => {
    await page.goto("/");
    await expect(page).toHaveTitle("Current Diagnoses");
    await expect(page.locator("diag 1")).toBeVisible();
});