Claude Code has just asked you a question, and the right answer depends on what it already touched while refactoring a service, updating tests, and adding configuration. If you return to the terminal with only a vague sense that "something changed," you are already behind the review process. Knowing how to see recently changed files gives you a fast, low-risk way to establish scope before you read a diff, answer an agent, or run a command.
This is not just a Git habit for code review. It is an operational check when you are supervising an active Claude Code session. File lists tell you whether work stayed inside the intended area, whether generated artifacts appeared, and whether the session touched files that deserve extra scrutiny, such as deployment configuration, dependency manifests, migrations, or secrets-related code.
See recently changed files with Git
For a Git repository, start with the working tree:
git status --short
The output is compact and useful when you need orientation quickly. The first column represents the staged state, and the second represents the unstaged state. A line such as M src/auth/session.ts means the file has unstaged modifications. ?? notes.txt means Git sees an untracked file.
git status --short answers a narrow question: what is different from the current commit right now? It does not show the full history of what happened during a session, and it does not rank files by modification time. That distinction matters. A file can have been changed, staged, committed, and no longer appear in status at all.
When the working tree contains changes, get just the paths before opening a large patch:
git diff --name-only
git diff --cached --name-only
The first command lists unstaged changed files. The second lists staged files. Run both because an agent or developer may stage work as part of a checkpoint. If you want status and paths in one view, git status --short is generally the better first glance.
For a more complete inventory of differences against the last commit, use:
git diff HEAD --name-only
This includes both staged and unstaged changes relative to HEAD. It is often the clearest command when your goal is simple: identify every tracked file altered since the most recent commit.
Include a change summary before reading diffs
A filename list shows scope, but not scale. Add a summary when a session may have made broad edits:
git diff HEAD --stat
git diff HEAD --summary
--stat reports insertions and deletions per file. --summary highlights actions such as file creation, deletion, and renames. These are different signals. A small edit to a production configuration file can matter more than hundreds of lines added to a test fixture, while a rename can explain why a familiar path disappeared from a file list.
Do not treat line counts as a measure of risk. Use them to prioritize your review. A changed lockfile, migration, CI workflow, or environment configuration file may be worth checking immediately even when the diff is tiny.
Find files changed in recent commits
If the work has already been committed, the working tree may be clean. In that case, inspect recent history rather than status:
git log --name-only --oneline -5
This prints the last five commits followed by their changed paths. It is useful after a coding session that created one or more commits, or when you are picking up work after a break.
To inspect the most recent commit only, use:
git show --name-status --format=short HEAD
The status letters are direct: A for added, M for modified, D for deleted, and R for renamed. This is preferable to guessing based on file timestamps, especially in a repository where checkout operations, generated files, or rebases can alter timestamps without representing new logical work.
If you need to compare your branch with its upstream branch, first make sure you understand what branch you are on and whether remote information is current. Then use a range that matches the decision you are making. For example, comparing your current branch against its upstream can reveal commits you have made locally but have not shared. The right comparison depends on your branch model, so avoid copying a base branch name from another repository without checking it.
When file modification time is the right tool
Git cannot show files it does not track, and sometimes you need a filesystem-level answer. Maybe an agent produced logs, generated code, screenshots, build output, or a new local configuration file. On macOS or Linux, find can sort candidates by modified time:
find . -type f -not -path './.git/*' -mtime -1
That finds files modified in roughly the last day. It is intentionally broad. Build directories and dependency folders can overwhelm the result, so exclude paths that are irrelevant to the task. The exact exclusions should reflect the repository, not a generic command copied blindly.
For a timestamp-sorted view on macOS, a command such as this can help during a focused investigation:
find . -type f -not -path './.git/*' -print0 | xargs -0 stat -f '%m %N' | sort -nr | head -50
This is useful for triage, not proof. A timestamp tells you when the filesystem says a file was modified. It does not tell you who changed it, why it changed, or whether its contents differ from the committed version. Use Git for source-controlled changes and filesystem inspection for everything else.
Review the change surface before you respond
When Claude Code asks for clarification, resist the urge to answer from the notification alone. First establish the change surface: which files changed, whether anything was staged or committed, and whether any high-impact paths were involved. Then read the relevant diff.
A practical sequence is to check git status --short, run git diff HEAD --name-only, inspect git diff HEAD --stat, and open targeted diffs for files that affect behavior or deployment. This takes less time than recovering from an unintended change that was approved without context.
Be especially deliberate around files that can alter execution outside the application itself. CI definitions, shell scripts, package scripts, infrastructure definitions, database migrations, authentication code, and dependency manifests deserve a closer read. A changed filename is not a verdict, but it is a prompt to inspect intent.
If a task should have been limited to one feature area but you find unrelated edits, pause. The explanation may be harmless, such as formatting or a necessary shared type update. It may also indicate that the task expanded beyond its original boundary. Either way, ask for a concrete explanation before directing the session onward.
Checking changes while away from the desk
Remote awareness is valuable only when it preserves judgment. You may want to know whether a background task completed, which files it touched, and whether a coding chat needs an answer, but you should not confuse visibility with permission to act.
DEIFIC: Provides a bridge between your phone's Claude and your PC's Claude Code so that you can run Claude Code projects from anywhere over a voice chat. Being on your phone does not change the order: check scope, inspect the relevant context, then decide what message to send. Nothing about remote access removes the need to review sensitive paths or understand a proposed change. If Git commands like these are new to you, Claude on your phone can explain them, and it can help you set up Claude Code and DEIFIC before your first remote session.
Keep the request specific. If you have switched on the recently-changed-files and Git reads at your Mac, ask which files changed lately in the project folder (names only), which branch you are on, how many files have changed, and what the last commit title was. Those reads do not say whether a change is uncommitted, and they do not send file contents. Specific questions produce a smaller, more reviewable answer than a general request for "an update."
A file list is a checkpoint, not an approval
Recently changed files are the fastest map of a coding session. They reveal where to look next, not whether the work is correct. Combine the list with a targeted diff, test results that you can verify, and the task's original constraints.
That small pause is where control lives: see what changed, understand why it changed, and only then decide what happens next.