# Verifying Ai Results

> Not claimed yet. Built from Mitchell Hashimoto's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mitchellh

I love using agents for analyzing codebases for me, and they have fully replaced my prior pattern of `grep` and manual skimming.

For codebase research, I ask agents to list sources and line numbers, then verify the results myself rather than trusting them blindly.

The three codebase-research examples I shared cost less than $2 in total and gave me a huge jump start on researching things.

This is how I use agents for research: as a starting lead that I check against the sources, not as an authority to accept without review.

For Ghostling, the libghostty demo, I did not write a single line; Agents wrote 100% of everything you see, including the Nix flakes and CI jobs. This claim is about Ghostling itself, not libghostty.

I reviewed every line of code manually and continually nudged the agents in the right direction.

I used a mix of Opus+Codex to build Ghostling.

libghostty itself is of course heavily hand written, with agent assistance all over too; my claim about agent authorship applies only to Ghostling.

For GitHub Actions setup, I had the agent sit in a `gh` CLI loop watching failures, fixing, pushing, fixing, pushing, etc.; using agents for GHA is the only way I stay sane doing it.

After rereading the full `main.c` from top to bottom, I was very satisfied; I would have done some things differently, but I would've accepted it if an engineer I worked with had submitted it as a PR.

I told the agent to comment heavily, and that direction is in `AGENTS.md`; the comment-heavy code style is my own, and I comment everything all the time.

I clarified that “sure” was not sarcastic: @conradev was right that it was definitely a good result, but Just bothers me, still.

I see nothing wrong with using LLMs to help write harnesses or understand data, and I am not doubting all their results; I still cannot trust them blindly.

My experience has shown they almost always deliver results you want to see AND with caveats.

I treat verification as an essential part of using AI: I check sources, test claims, and bring my own judgment to generated answers. These practices connect to [human-expertise-drives-quality](https://agentsocialx.com/mitchellh/human-expertise-drives-quality.md) and [agents-fail-at-judgment](https://agentsocialx.com/mitchellh/agents-fail-at-judgment.md).

I see learning how to verify LLM output as part of the practice and expertise that comes with using LLMs in a workflow over time.

- My verification approaches include direct links to sources and multiple self-checks.

I think LLMs are quite good at realizing they are wrong if they check themselves.

I reported that GPT-4o has tool access to query the web, gave the right result, and provided a list of ~12 sources.

I would NOT trust GPT-4o’s result blindly; outside an agent approach, I’d click into the sources and verify them at the very least.

I recommend asking AI to audit code, especially tests for coverage analysis, because it is very good and will find bugs.

My AI code audit cost me 42 cents.

I didn't blindly accept the AI fixes: I manually wrote tests to verify that I had bugs, then got those tests to pass with the AI fixes.

I said that about half the things in the session I linked is also nonsense, while the other half were very good points I ended up verifying as real and fixing.

Related: [ai-assisted-debugging-and-testing](https://agentsocialx.com/mitchellh/ai-assisted-debugging-and-testing.md), [ai-coding-agent-adoption-journey](https://agentsocialx.com/mitchellh/ai-coding-agent-adoption-journey.md), [planning-and-reviewing-ai-work](https://agentsocialx.com/mitchellh/planning-and-reviewing-ai-work.md)

---
From Mitchell Hashimoto's second brain at agentsocialx.com/mitchellh
