Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Refactor a Large Legacy Codebase to Meet New Compiler Rules

Overview

Use Claude Code inside Claude Desktop to group the errors a stricter compiler setting raises across a large repository, fix them in small reviewed batches, and keep the build passing between batches.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
Claude Desktop · Claude Code
Prerequisites
Claude Desktop on a paid plan that includes Claude Code, the repository with a working build, and a test suite.

How It Works

Turn on the new compiler rule or language version on a fresh branch and save the full build output to a file. Open the repository in Claude Code in the Claude Desktop app and ask it to read the log, group the errors by kind and by directory, and write a small script that reproduces the counts so progress can be measured. Pick one error kind and one directory at a time. Ask Claude Code to propose a fix pattern, show you a few sample diffs, and only after you approve the pattern apply it to that batch, rebuild and run the tests. Review the local code changes in the desktop app, commit each batch separately, and repeat until the error count reaches zero. Errors that need a design decision go to a list for a person to handle rather than being silenced.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Desktop.
  2. Connect the toolsConnect the tools this workflow relies on: Claude Desktop, Claude Code.
  3. Check the prerequisitesClaude Desktop on a paid plan that includes Claude Code, the repository with a working build, and a test suite.
  4. Gather your detailsCollect what the prompt asks for: Saved build output, New compiler rule or version, Error kind to fix first, Directory for this batch, Build command, Test command.
  5. Run the starter promptPaste the starter prompt below into Claude Desktop and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at claude.com before you rely on it.

Practical Starter Prompt: Plan and fix compiler errors in batches

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Read [Saved build output], produced after enabling [New compiler rule or version]. Group the errors by kind and by top-level directory and write a script that prints these counts. Then propose a fix pattern for the error kind [Error kind to fix first] in [Directory for this batch] and show me three sample diffs. Wait for my approval before applying it to the whole batch. After applying, run [Build command] and [Test command] and report the new counts. Never add suppressions or disable warnings; list cases that need a design decision instead.

Approve each fix pattern only after reading the sample diffs, review the batch in the desktop app, and commit it yourself once the build and tests pass.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. Anthropic's download page says Claude Code runs directly in the desktop app, where you can preview running servers and review local code changes. Its Claude Code overview says the tool reads your codebase, edits files and runs commands. Neither page mentions compiler migrations or how far a very large repository can be handled, so the batch size, rebuild time and quality of fixes depend on your codebase and your reviews.

Limitations and Considerations

Mechanical fixes can hide real bugs: forbid suppressions, casts or disabled warnings unless you approve them case by case. Keep every batch on a branch with passing tests before merging, and tell colleagues which directories are being changed to avoid conflicts. Claude Code is not included on the Free plan; Anthropic lists it for Pro, Max, Ultra, Team and Enterprise. Large builds and long sessions use your plan's usage limits, so check them. Results depend on your setup and were not independently reproduced by Top 200 Repos.

Sources

  1. Download Claude | Claude by Anthropic (opens in a new tab)

    Project documentation · claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC

    What this source supports
    • Claude Code runs directly in the desktop app.
    • You can preview running servers, review local code changes, and monitor pull request status without leaving the app.
  2. Install Claude Desktop | Claude Help Center (opens in a new tab)

    Project documentation · support.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC

    What this source supports
    • What you can do depends on your plan: the feature table lists Chat on Free, Pro, Max, Ultra, Team and Enterprise, and Claude Code on every plan except Free.
  3. Overview - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC

    What this source supports
    • Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
Report a problem

More with Claude Desktop

Planned, not done

Organize Overdue Tax Records and Locate Missing Receipts

Use Claude Desktop with the Filesystem MCP server to sort a backlog of your own invoices and receipts into years and categories, build an index of every expense, and list which ones still have no receipt.

modelcontextprotocol.io
Planned, not done

Replace Paid Receipt Tracking With a Self-Hosted Finance App

Use Claude Code inside the Claude Desktop app to build a small receipt tracker that runs on your own computer, reads receipt photos with OCR, and exports a yearly CSV for your accountant.

claude.com
Planned, not done

Orchestrate Research and Coding Agents Around Financial Data

Use Claude Code in the Claude desktop app to write and maintain a small team of role-based analysis agents that study a financial research dataset, with you reviewing code and findings.

claude.com

View all: Claude Desktop