ClaudeCodeMod

All shelves / Mods / Review

mod-file-tree

By v-amorim

mod-file-tree is a Claude Code review mod by v-amorim.

Draws a Files panel of what Claude read and changed this session, lit live while it works, with +/- line counts and a replay of the last turn's diffs.

Draws

Install

The marketplace name is claude-mods.

In Claude Code
/plugin marketplace add v-amorim/moonlight-claude-mods
/plugin install mod-file-tree@claude-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
2.0.0
License
MIT
Repo stars
5
Last change
2026-10-30

What it can reach

  • Draws in the session
  • Reads this turn's file edits
  • Sees tool calls

Needs Claude Code 2.1.287 or newer; the author tested on Windows Terminal and macOS iTerm2. /plugin install asks where to install the mod: keep Install for you (user scope), press Enter, press Esc to leave the plugin screen, then run /reload-plugins. Auto-update is off for unofficial marketplaces; turn it on under /plugin, Marketplaces, claude-mods. The README warns that mods are not sandboxed and run with your permissions. Opens from the Files pill. Show files Claude only read is on by default; off, the panel lists only changed files. The command hooks need a POSIX shell, Git Bash on Windows; without one they write nothing and the mod falls back to what it can find on its own.

The marketplace, claude-mods, holds 13 mods in the Moonlight look, and other repositories use that name too, so add v-amorim/moonlight-claude-mods. Seeing the files Claude touched, with a replay of each edit's diff, is why this page files it under review. filetree draws an IDE-style file tree beside the transcript that lights up what Claude reads, writes, and commits, and follows it through the folders. file-tree draws an IDE-style file tree beside the conversation that lights up what Claude reads, edits, and commits, with git status, search, and a file preview. This one lists only the files Claude read, edited, wrote or created this session, in folders you can fold, with +/- line counts for edits. Prev and Next step through the last turn's edits one diff at a time, and a click on a file opens its latest diff.

Demo

The Features section of the author's README: a tree of only the files Claude read, edited, wrote or created this session with +/- line counts, a live marker on the file Claude is on, and Prev and Next to step through the last turn's edits.
Screenshot of the author's GitHub page.

What it hooks into

  • ui.toastA Claude Code event
  • session.startWhen a session starts
  • command.runWhen you run its slash command/mod-file-tree
  • ui.closeWhen its pane closes
  • state.setA Claude Code event
  • tool.callAround a tool call, where it can hold one
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • session.endWhen a session ends
  • ui.renderDraws into the sessionAbovePromptPane
  • ui.messageAdds a message to the session

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /mod-file-tree

Hooks 2

  • SessionStartexec 2>/dev/null; IN=$(cat); D="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mods-data/mod-file-tree/bridge"; S=$(printf '%s' "$IN" | sed -n 's/.*"session_id":"\([^"]*\)".*/\1/p'); [ -n "$S" ] && mkdir -p "$D" && printf '%s\n' "$IN" >> "$D/$S.jsonl" && find "$D" -name '*.jsonl' -type f -mtime +7 -exec rm -f {} + >/dev/null 2>&1; exit 0
  • SessionEndexec 2>/dev/null; IN=$(cat); D="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mods-data/mod-file-tree/bridge"; S=$(printf '%s' "$IN" | sed -n 's/.*"session_id":"\([^"]*\)".*/\1/p'); [ -n "$S" ] && rm -f "$D/$S.jsonl" >/dev/null 2>&1; exit 0

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
v-amorim
Category
Review
Marketplace
claude-mods
Repo
v-amorim/moonlight-claude-mods
Folder
mod-file-tree
Version
2.0.0
License
MIT
Repo stars
5
Last change
2026-10-30
Language
TypeScript
Files
27

Other mods in Review

mod-transcriptv-amorimRestyles the transcript as chat bubbles, folds each finished turn and each tool row to one line, colors code, and adds a copy button to replies.improve-promptwaltherhuggoDraws an Improve prompt button above the prompt box that rewrites your draft with the session's context; /improve does the same, and you review and send it.done-gatevumichienTells Claude and you, in a toast, when a task is marked done while changed code is untested, and draws the last test run in a band.prompt-enhancervumichienDraws an Enhance button above the prompt: Haiku rewrites your draft to name fitting skills, what to ask first, and what done looks like. It never sends it.assumption-checkvumichienLists the choices Claude made that you did not state after a turn that edited files or ran commands; mark each right or wrong and send the corrections.replay-theaterAnthropicAdds /replay. Steps through the files Claude edited last turn, one diff at a time.review-watchhamzaferDraws one line above the prompt per running code review, with the model, the target, the elapsed time, and Codex's latest output. A toast lists the findings.md-previewhamzaferWhen Claude edits Markdown, draws the before and after beside the session, rendered the way GitHub does.files-touchedSingh-APDraws one line above the prompt for files Claude changed this session, with lines added and removed. /touched pane lists them, and a press inserts @path.change-ledgerarasovicDraws a pane of every file this session touched, with lines added and removed and which agent edited it, beside the git working tree.turn-timelinearasovicDraws the current turn as a timeline: one lane for the main loop, one per subagent, the split between model, tools, and idle, and the three slowest steps.show-mearasovicDraws each mermaid diagram in an answer as a picture in a pane once the turn ends. /show-me asks for an answer in diagrams.
All 145 in Review