---
id: 18566
lang: en
title: "Claude wrote the GitHub manual as instructed, while Codex taught students branches and rebase"
published_at: "2026-11-28 14:38:12"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1112506/?utm_campaign=1112506&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18566"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Claude wrote the GitHub manual as instructed, while Codex taught students branches and rebase

> **Краткая суть (BLUF):** The author of a digital circuits course asked two AI models to turn a set of screenshots into a GitHub guide: students copy the repository and send their change (a pull request) straight to main. Claude wrote the guide exactly as the screenshots showed, while Codex started teaching beginners to create separate branches, rebase and stash, which are advanced Git techniques. Codex complied only after a prompt explaining why the course has its own process. The takeaway: state the reasons behind your process in the assignment, or the model will substitute "best practices."  • BGM repository: more than a thousand users a year, no branches needed • The prompt banned rebase and stash, and allowed git pull only with merging • The author told Codex to move its objections into an "LLM opinion" appendix

Ask a language model to write instructions for your process, and there's a chance it will start "improving" it. That is exactly what happened in a teaching project on digital circuit design. The author gave two leading AI assistants screenshots and asked them to assemble a GitHub manual for students. Claude did what the pictures showed. Codex decided it knew better and started teaching newcomers things this course does not want them to do.

Three terms are enough to follow the dispute. A pull request is a proposal that says, "take my change into the main repository." Main is the project's primary branch, meaning its main version of the code. A separate branch is a copy where changes are made in isolation so they don't affect the main version. Rebase and stash are more advanced Git commands: the first rewrites the history of changes, and the second temporarily sets aside unfinished work. For a professional team, all of this is routine. For someone opening GitHub for the first time, it's unnecessary overload.

## What was needed and how the task was set

The project started with a request from Mikhail Grafov, a lecturer at MPEI. He wanted students at the School of Digital Circuit Synthesis to be able to work on their versions of exercises from the BGM (Basic-Graphics-Music) repository at home, and to keep their changes when the repository is updated. He also wanted some strong student examples to be sent back to the original repository without breaking the code for everyone else. Put simply, students needed to be taught how to work with GitHub.

The author set up a virtual student account for Dmitry Mendeleev and took screenshots of how to make a fork (a personal copy of the repository) and how to open a pull request, all under Windows, Linux and macOS. He also captured screenshots of work in Xilinx Vivado, Altera Quartus, Gowin EDA, OSS CAD Suite and the corresponding boards. The full set went to two models. According to the author, they were Claude Opus 5.5 in xHigh mode and Codex GPT-6-Astra in xHigh mode. The model names are given as they appear in the source.

## Where the models diverged

Claude wrote a sound instruction that matched the screenshots exactly. Codex took a different approach: it advised students not to make a pull request into main, as the pictures showed, but to create a separate branch for every change. It then began explaining rebase and stash to newcomers.

The author pushed back directly in the prompt and explained why this would not work:

- each student works in their own copy on main, and the instructor reviews their contribution in main as well;
- in industrial R&D teams, large projects are developed on main, and branches are not mandatory;
- BGM has more than a thousand users a year, and thousands of branches serve no one;
- beginners should not be confused by anything other than the pull request itself.

He also specifically prohibited recommending rebase and stash before git pull. Git pull must be run with merging, and when problems arise, students should read the Git documentation. The screenshots should be followed as closely as possible unless there are significant errors. Any of the model's own opinions were to be placed in an appendix titled "LLM opinion." After this prompt, Codex complied.

## What to take from this in practice

First, models tend to substitute "best practices" for your methodology. This is not a factual error but a shift of goal: the model answers "what is correct in general" rather than "what we need here." A simple rule helps: in the prompt, state not only what to do but why, and what must not be done. Here, the context made the difference: a thousand users, beginners, the instructor's role.

Second, the approach of a separate place for the model's objections is useful. The "LLM opinion" appendix keeps reasonable remarks from being lost and prevents them from mixing with the core instructions. For documentation read by newcomers, this is a convenient compromise.

Third, cross-checking. The author had Claude and Codex critique each other's work and look for mistakes. Claude's manual still pleased him more. The header image for this article was also drawn best by Claude, while ChatGPT and Grok, by his assessment, did worse.

## Limitations

This is one author's personal experience on a single task, without measurements or repeated runs. It cannot be concluded that Claude generally follows instructions better: the result may have depended on the wording and on the screenshots themselves. The method of working directly in main is debatable for ordinary teams. It suits a teaching repository with thousands of beginners, but it is not universal.

The practical conclusion: if you delegate documentation, learning materials or internal regulations to AI, write down the constraints of your process and the reasons for them in advance. And check not only the facts, but also whether the model has rewritten your methodology to suit its own taste.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1112506/?utm_campaign=1112506&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18566
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
