tongs puts GitHub and GitLab reviews in one terminal inbox
Red Hat Developer’s walkthrough shows how to batch comments locally, catch stale drafts, and inspect failing CI without switching forges.
A Nov. 30 Red Hat Developer walkthrough shows how tongs builds a terminal review inbox from the Git remotes of repositories already on your machine. It is aimed at reviewers who move between GitHub pull requests and GitLab merge requests, including self-hosted instances. The authors tested version 1.1.1, released in October; the article is a walkthrough, not a new version announcement.
Start with the repositories you already review
The tool requires Python 3.12 or later and can reuse credentials from gh or glab. The default scan starts in ~/git; tongs --scan-root ~/projects points a session at a different checkout directory. For a self-hosted server whose hostname does not identify the service, the guide shows how to declare the hostname and forge type in ~/.config/tongs/config.toml. The ability to open a repository without cloning it was on the main branch when the authors wrote the guide, not part of the version they tested.
Batch comments against the revision you read
Open an inbox entry and press 2 for the diff, or 5 to inspect CI pipelines, individual jobs and their logs. To batch feedback, use Ctrl+G to enter review mode. Comments, replies and suggestions stay in a local SQLite draft until submission. If the author pushes while you are reviewing, tongs marks the draft stale. For a first trial, use a repository you can already review and check both paths: resume a draft after closing the terminal, then confirm what happens to it when the revision changes.
Decide separately whether to connect an assistant
The optional MCP server can list reviews, retrieve diffs and inspect pipelines. It also exposes tools to post comments and approve reviews, so it is not read-only. It does not expose merge, close, reopen or cancel operations. If the immediate problem is switching between two review queues, start with the terminal client alone; adding the server is a separate decision about whether an assistant should have access to review data and the ability to record feedback or approval.
sources
- Red Hat Developer: tongs walkthrough for GitHub and GitLab code reviewdevelopers.redhat.com
comments · 0