---
title: "How AI Assistants Can Decode GitHub Repos for UI Writers"
description: "An LLM agent can reliably flag user-facing copy changes in a branch when it is given narrow tools and expert hints about what \"user-facing\" means."
url: "https://swe.quest/articles/how-ai-assistants-can-decode-github-repos-for-ui-writers-bed232efc1e6b9e6"
canonical: "https://www.docker.com/blog/ai-for-ui-writers/"
source: "Docker"
published: "2024-12-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ai-agents","llms","code-review","frontend"]
---

# How AI Assistants Can Decode GitHub Repos for UI Writers

A post on [Docker](https://swe.quest/sources/docker.md), published 2024-12-16, 9 min read, Case study. Original: [https://www.docker.com/blog/ai-for-ui-writers/](https://www.docker.com/blog/ai-for-ui-writers/)

## Summary

An LLM agent can reliably flag user-facing copy changes in a branch when it is given narrow tools and expert hints about what "user-facing" means. GitHub Copilot's repo chat could not even count open PRs. A first prompt that gave the model bash and raw git diff also failed: diffs were huge, important files were buried and extra tools invited hallucination. The working two-step flow first lists only likely UI files (using --files-only and --no-pager with an alpine/git container) and saves the list. It then diffs just those files against main with --no-color --minimal, guided by frontend-engineer hints about JSX text nodes, notifications, toasts and Error constructors. This produced an accurate list of copy changes on a real Docker PR.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Code review](https://swe.quest/tags/code-review.md) (Engineering practices)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- git diff
- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- React/JSX basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))

## Keywords

Docker Labs, GitHub Copilot, git, JSX, alpine/git

## Related posts

- [Continuous AI for accessibility: How GitHub transforms feedback into inclusion](https://swe.quest/articles/continuous-ai-for-accessibility-how-github-transforms-feedback-into-inclusion-c36ff177f3a2d142.md): GitHub Engineering · 2026-03-12 · Medium · 14 min read · Accessibility, AI agents, LLMs, CI/CD
  GitHub built an event-driven accessibility feedback pipeline on GitHub Actions, Copilot and the GitHub Models API that turns every user report into a tracked, prioritized issue.
- [How to Create and Use an AI Git Agent](https://swe.quest/articles/how-to-create-and-use-an-ai-git-agent-f412a4e8174fad8b.md): Docker · 2024-12-16 · Medium · 6 min read · AI agents, Version control, Containers, Developer tools
  An LLM-driven Git agent runs Git commands inside an alpine/git container while authenticating with the user's own SSH keys, so non-Git users such as UI tech writers can fetch, check out PR branches and get a three-dot diff of changed files.
- [Better tools made Copilot code review worse. Here’s how we actually improved it.](https://swe.quest/articles/better-tools-made-copilot-code-review-worse-here-s-how-we-actually-improved-it-d13b0645c05f1e51.md): GitHub Engineering · 2026-07-10 · Medium · 9 min read · AI agents, Code review, LLMs, Evaluation, Cost optimization
  Swapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation.
- [How an AI Assistant Can Help Configure Your Project’s Git Hooks](https://swe.quest/articles/how-an-ai-assistant-can-help-configure-your-project-s-git-hooks-ff8cfd7dd0ae804e.md): Docker · 2024-07-15 · Medium · 6 min read · AI agents, LLMs, Version control, Containers, Developer tools
  An LLM assistant's advice on configuring Git hooks goes from generic to project-specific when the prompt is enriched with context from containerized analysis tools (a linguist image detecting repository languages, bound in via mustache templates) and with expert knowledge such as an organization's preferred pre-commit base config and per-language hooks like golangci-lint.
- [Turn one giant AI-generated pull request to a reviewable stack](https://swe.quest/articles/turn-one-giant-ai-generated-pull-request-to-a-reviewable-stack-e48d2499a5268109.md): GitHub Engineering · 2026-08-04 · Medium · 9 min read · Code review, Version control, AI for coding, Developer tools
  Stacked pull requests split a large, agent-generated feature diff into a chain of small, dependency-ordered PRs that are each scoped to one concern.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
