DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Gitember: Building a Git Client Beyond Commit, Push, and Pull
  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Building a Scope-Constrained AI Agent for Automated CI Failure Repair

Trending

  • How to Submit a Post to DZone
  • Smarter GitHub Copilot Prompts for Java Microservices: From APIs to Production Tests
  • Containment Is a Feature: Sandboxing, Egress Control, and Provenance for Autonomous Agents
  • What's Really in an Agent's Context Window

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Coding
  3. Tools
  4. Terry: A Live File Tree and Review Gate for Claude Code

Terry: A Live File Tree and Review Gate for Claude Code

Learn about terry, a lightweight Claude Code plugin that tracks file changes and requires human diff approval before commits or pull requests.

By 
Eric D. Schabell
DZone Core CORE ·
Dec. 03, 26 · Analysis
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
98 Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

[Article was guest-authored by Henry B. Baker.]

A live file tree for Claude Code, with diff review before anything ships.

Why I Built It

I kept a full IDE open for one job: to look at code changes. I did not use its editor or its refactoring tools. The agent did that work. So I paid for a whole cockpit and used one dial.

I wanted that dial beside the chat, and nothing else. I also wanted the agent to drive git, with one rule: no change reaches a branch or a PR before I read it. I will be honest with you: this one is non-negotiable for me.

terry is the result. 

Note that the file tree comes first and the review gate comes second. All screenshots in this article come from a small demo repo in a Linux terminal.

The File Tree

An AI agent edits many files, fast. The chat scrolls, and by turn nine you forget what happened in turn three. Let's take a look at terry, which offers a simple, lightweight solution: a pane that stays open beside the chat and lists every file in the repo.

Here is the pane in the demo repo. Every status is on screen at once.

  • Color and letter show the status. Green A is added, yellow M is modified, red D is deleted, and cyan? is untracked.
  • A ✎ shows who. It marks a file that the agent edited. A · marks a file that you changed.
  • Orange shows where the agent is now. The top bar names the file it edits.
  • Bold or dim shows the commit state. Bold is not committed. Dim is in a commit.
  • A click opens the diff of a changed file.

Now the agent edits src/utils.py. Notice how the top bar names the file, and the tree marks it with a ✎, while the edit waits for permission.

Agent edits src/utils.py

The tree also shows the branch chain, such as main -> dev -> feature/login.

The Review Gate

Now the second piece. When the agent tries to commit or open a PR, terry stops the command. A pane opens with the full diff. You press Approve or Reject, and the agent waits. An approval works once, for one exact diff.

Diff review

terry also lints the lines that the change adds. If lint fails, the agent fixes the problems before you see the diff. You review only code that passes.

Here the commit holds a file with lint problems. terry denies the commit and lists each problem.

terry denying a commit because lint found problems, with the list of ruff findings

Then Claude starts a fix. Notice how the fix is an edit that waits for your approval.

The fix is an edit that waits for your approval

Three Design Choices

The tree reads git, not the chat. It marks every change since the branch last met what is published. A commit that landed stays marked until you push, so nothing falls out of view.

Review in a pane, then the prompt. While Claude Code shows a prompt, a pane gets no keys and no mouse wheel. You cannot scroll a long diff there. So you read the diff in the pane first, and the permission prompt stays as the last check.

One Rust binary and a thin plugin. The binary holds all the logic, with one dependency (serde_json). The pane plugin only draws the panes and asks the binary for every fact.

Try It

Shell
 
# Clone the repo and run the installer.
#
$ git clone https://github.com/hbbaker/terry.git ~/Projects/terry

$ cd ~/Projects/terry

$ ./install.sh


Start a new Claude Code session and run /terry. Ask the agent to edit a file, and watch the tree. Then ask it to make a commit, and read the diff.

What Is Next

The problem is not special to one agent. Any AI terminal tool that edits files and runs git has it. Our goal is to make the file tree and the review work with more of them, not only Claude Code.

There are also plans to support file drag and drop into the tree, though it is early in development.

If you use another tool and want it supported, open an issue on GitHub. Tell us what you want to see.

Source and docs: github.com/hbbaker/terry. Find me on LinkedIn and GitHub.

Git Tree (data structure)

Published at DZone with permission of Eric D. Schabell. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Gitember: Building a Git Client Beyond Commit, Push, and Pull
  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Building a Scope-Constrained AI Agent for Automated CI Failure Repair

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook