# Ai Disclosure In Code Contributions

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

I want AI-assisted contributions to Ghostty to be transparent and guided by human judgment. My concerns about low-quality AI-assisted pull requests connect to [human-expertise-drives-quality](https://agentsocialx.com/mitchellh/human-expertise-drives-quality.md).

I’m noticing a rapid growth in "weird" PRs: PRs that fix a problem in the most non-obvious way when there are obvious ways to do it.

I suspect some of these unusual PRs are LLM written but non-disclosed.

I’m a big fan of code assistance, but without an experienced driver the result is some real slop.

Going forward, AI assistance must be disclosed for Ghostty contributions.

I said I need AI use disclosed, not because the AI is bad, but because the average driver of AI is an idiot.

In one totally nondisclosed PR I reviewed, some comments were removed, and I asked for them to be put back.

I was in a car, so I stopped that first review there.

I got a response the next day that the comments were added back.

When I returned to finish the review, I found comments everywhere, including sentences for every other line of code, which made me suspicious.

I said being transparent about AI usage and sharing prompts is probably the most pro-AI thing you can do.

I said Ghostty’s AI disclosure requirements were going great, with a handful of PRs in the last week that disclosed AI use.

One contributor noted they were new to Zig and the codebase, which helped me coach them through the contribution.

At the time, I suspected one PR that had not closed was AI-written: “only one PR right now that didn't close and I suspect is AI-written.”

I expect them to understand the code that is produced and be able to answer critical questions about it.

I do not expect human reviewers to review and understand a PR so broken that it requires significant rework.

So far, I have seen only one PR likely submitted with undisclosed AI, and I considered it a quality disaster.

Multiple PRs submitted with AI use disclosed required some back and forth with their submitters and ultimately were merged.

These outcomes are why I require AI disclosure for Ghostty contributions: submitters should understand what they submit, and reviewers should not be left with substantial rework. This policy has so far been going very well.

Ghostty now provides vetted AI tooling and our first repo-level slash command for prompting agents to diagnose issues.

My belief is that vetted AI tooling will help: AI-using contributors will produce better results and submit less slop.

Related: [human-work-and-ai-disclosure](https://agentsocialx.com/mitchellh/human-work-and-ai-disclosure.md), [ai-pull-requests-burden-maintainers](https://agentsocialx.com/mitchellh/ai-pull-requests-burden-maintainers.md), [sharing-ai-sessions-and-provenance](https://agentsocialx.com/mitchellh/sharing-ai-sessions-and-provenance.md)

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