AI-Built GitHub Clone Audit Finds Wrong Numbers

Audit of an AI-built GitHub clone showing pull request lists and status pills

Forge, an AI-built GitHub clone, looks polished: a workshop theme, custom type, a mascot. Then an AI agent audited it the way a picky design reviewer would, and the problems turned out to be about truth, not taste. The interface kept presenting numbers that were wrong.

Forge combines a git host, CI runner and deploy platform on Cloudflare. Agents write most of the code and open most pull requests, while one human reviews and merges. Backend work suits that arrangement because tests catch mistakes. Frontend work doesn’t, since a page can render, typecheck and look right in a screenshot while showing unverified data.

Numbers that were quietly wrong

The audit ran against the live site at desktop and phone widths, signed in and out, with findings ranked by severity. The worst ones were all misreporting:

  • Merged and closed PR counts capped at 30, although the main repo has 229 merged PRs, because the list counted a single page of results.
  • Each PR row claimed “+0 -0 across 0 files”. The list endpoint returns no diff stats, so the UI printed zeros, and a believable zero draws no attention.
  • Past roughly eight repo tabs, the rest slid off screen with no scrollbar. Branches and Settings were effectively hidden.
  • PR status appeared as tiny 10px capitals in the header and faint 12px text in lists.
  • Branch names were shown in capitals, which misrepresents refs that are case sensitive.

There were overlap problems too. A “Contents” panel opened over the README and PR sidebar, and added one panel per markdown block, so a PR with five comments showed six. Hover previews were missing in an app that is mostly links between PRs, commits and runs.

16 findings ranked by severity
Image: swyx's site

Why every button was orange

On the sign-in page, every button shared the primary orange, and delete looked like the main action. The cause was a template string that builds a class name from a variant prop. Tailwind v3 only keeps component styles whose class names appear verbatim in source, so it discarded the secondary, danger and size variants. A secondary button rendered as #c96b43 before the fix and #e7ddc8 after (PR 299).

Reviewers rarely catch this. The source reads fine, the types check, and a test of the class string passes. Only the compiled CSS is broken.

The DOM is an API too: data-forge attributes
Image: swyx's site

Four PRs, then error pages

Four small web-only PRs cleared the first group, and all are merged for the next release:

  • PR 274 takes counts from the API’s pagination total, adds “Show more” beyond 30, removes the fake diff line and introduces a single status pill with an icon.
  • PR 275 shows open PR and issue counts on tabs, folds away unused sections and fades the edge where tabs overflow.
  • PR 276 limits the Contents panel to documents with four or more headings and shows one per page.
  • PR 277 adds hover cards on PR, issue, commit, run and user links.

The hover cards carry data attributes for kind, reference and API path. That gives agents browsing the AI-built GitHub clone a stable identifier such as a pull request reference, so they can fetch the object instead of scraping text.

PR 300 handled failures. Fourteen pages printed a bare “Error: Not found”, the “/explore” path was mistaken for a username, and unknown URLs showed a blank page. A shared error component now separates not found, sign-in required, no access, offline and unexpected cases, and signed-out visitors can sign back in to the same URL. PR 301 reworked sign-in to lead with the last method used on that device and to offer one passkey prompt.

How every button became orange
Image: swyx's site

Making the fixes stick

A fifth PR turns each bug type into a CI rule. Component class names must appear literally, pages must use the shared error component, a catch-all route must exist, and every login path must record its method.

Static rules can’t see everything, so npm run ui:sweep opens key routes at 390px and 1280px and flags errors, blank pages, sideways scrolling, wrong button colors and unnamed controls. Production showed 12 issues over 32 page views. The merged build shows none over 38. The sweep also surfaced a 551px README on phones and a top bar overflowing at 408 to 433px.

Bigger problems still open

A second review judged the product against its job. The PR page says “Ready to merge” with no checks listed and no CI link, while the preview deploy sits below the discussion. The proposal merges verdict, per-check rows, preview and merge button into one box at the top.

Other open items on the AI-built GitHub clone: four page widths in use, a home page that acts as a profile and not a to-do list, run failures buried at the bottom in 10px grey, themed labels like “Change gauge” in 39 files, and a PR list that fits five items per screen at 1440px. None of that is built yet.

Source: swyx's site

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.