How AI Assistants Can Decode GitHub Repos for UI Writers
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.
Related posts
- Continuous AI for accessibility: How GitHub transforms feedback into inclusion
GitHub Engineering mediumAdeptGitHub 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. Issue creation triggers Copilot analysis that uses stored, PR-editable prompt files instead of fine-tuning. The analysis fills about 80% of 40+ metadata fields and suggests WCAG criteria, severity, affected user groups, team assignment and a reproduction checklist. A second Action parses Copilot's comment to apply labels and board status. Humans verify at each stage, and their corrections are logged to refine the prompts. About 75–80% of reports match existing audit findings and get reprioritized by real-world impact, and issues close only once the user confirms the fix works.
- How to Create and Use an AI Git Agent
Docker mediumAdeptAn 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. A setup prompt mounts ~/.ssh read-only and ~/.gitconfig into a container, then copies them to a writable location. It fixes container-breaking settings such as UseKeychain and carriage-return rules, and persists the result to a /thread volume that the Git tool copies in before each command. Tagging the thread in the VSCode extension keeps credentials across runs, and read-only credentials could let people without a local Git install review PRs.
- Better tools made Copilot code review worse. Here’s how we actually improved it.
GitHub Engineering mediumAdeptSwapping 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. Benchmark traces exposed the browsing loop, and rewriting tool guidance around a reviewer's workflow (form questions from the diff, narrow with grep/glob, batch discovery, view only known ranges, recover from failed searches with simpler queries or glob) cut average review cost about 20% in production without a quality regression. The same focused instructions did not help the interactive CLI, so tool prompting must match the product's job.
- How an AI Assistant Can Help Configure Your Project’s Git Hooks
Docker mediumAdeptAn 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. With these additions the model produces ready-to-use pre-commit-config.yaml files and hook scripts, and even extends the established syntax to tools it wasn't told about. Registering a file-writer tool turns the response into OpenAI function calls that an agent executes to write the config directly. Delivering every tool as a lazily pulled Docker container smooths over the environment problems that otherwise block local assistants.
- Turn one giant AI-generated pull request to a reviewable stack
GitHub Engineering mediumAdeptStacked pull requests split a large, agent-generated feature diff into a chain of small, dependency-ordered PRs that are each scoped to one concern. A worked example adds product search to a shopping assistant as four layers: catalog data, search API, chat wiring, and grounded UI. Each layer is built by a scoped custom agent and reviewed by a different owner using the gh-stack CLI (init, add, push, submit, rebase, sync). The recommended review flow is to read top-down for context and review bottom-up. Fixes to a lower layer are propagated with gh stack sync. Prefer local gh stack rebase over the web Rebase button, because the server-side rebase resets the committer and produces unsigned commits that can break branch protection.