---
title: "tongs: Unified code review for GitHub & GitLab in your terminal"
description: "tongs is a Python terminal UI that builds a single code review inbox across GitHub, GitLab and their self-hosted variants by scanning locally cloned repos and reading their Git remotes, reusing existing gh and glab logins instead of storing tokens."
url: "https://swe.quest/articles/tongs-unified-code-review-for-github-gitlab-in-your-terminal-3dcdd564b6209047"
canonical: "https://developers.redhat.com/articles/2026/11/30/tongs-unified-code-review-github-gitlab-your-terminal"
source: "Red Hat Developer"
published: "2026-11-30"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["code-review","developer-tools","python","ai-agents"]
---

# tongs: Unified code review for GitHub & GitLab in your terminal

A post on [Red Hat Developer](https://swe.quest/sources/red-hat-developers.md), published 2026-11-30, 8 min read, How-to. Original: [https://developers.redhat.com/articles/2026/11/30/tongs-unified-code-review-github-gitlab-your-terminal](https://developers.redhat.com/articles/2026/11/30/tongs-unified-code-review-github-gitlab-your-terminal)

## Summary

tongs is a Python terminal UI that builds a single code review inbox across GitHub, GitLab and their self-hosted variants by scanning locally cloned repos and reading their Git remotes, reusing existing gh and glab logins instead of storing tokens. A full review walkthrough covers syntax-highlighted diffs with word-level change marking, inline comments, forge-native suggested changes via $EDITOR, crash-safe review drafts stored in SQLite and pinned to the reviewed revision, CI log browsing, and double-press confirmation for approve and merge. A local SQLite cache (60s lists, 300s diffs, 100 MB LRU cap) keeps the inbox fast. An optional MCP server exposes six read, comment and approve tools to AI assistants while deliberately omitting merge and close.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Code review](https://swe.quest/tags/code-review.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- Git remotes
- pull request workflows

## Keywords

tongs, GitHub, GitLab, gh CLI, glab, Model Context Protocol, SQLite, Claude Code

## Related posts

- [Building Ghostwriter Chat](https://swe.quest/articles/building-ghostwriter-chat-cdc3d6aa03870bc4.md): Replit · 2023-03-27 · Easy · 5 min read · AI for coding, LLMs, Developer tools
  Ghostwriter Chat embeds an LLM-powered assistant directly in the Replit IDE, using file context, chat history and program output so users never copy-paste into a separate tool.
- [Build Your Own AI-Driven Code Analysis Chatbot for Developers with the GenAI Stack](https://swe.quest/articles/build-your-own-ai-driven-code-analysis-chatbot-for-developers-with-the-genai-062f35bb279ec41b.md): Docker · 2024-06-06 · Medium · 10 min read · RAG & retrieval, LLMs, AI for coding, Containers, Python
  Code Explorer, a winning Docker AI/ML Hackathon project, is a RAG chatbot that answers questions about a local codebase by parsing source files, chunking them with LangChain's RecursiveCharacterTextSplitter (5000 characters with 500 overlap), and storing embeddings in a Neo4j vector store.
- [How AI Assistants Can Decode GitHub Repos for UI Writers](https://swe.quest/articles/how-ai-assistants-can-decode-github-repos-for-ui-writers-bed232efc1e6b9e6.md): Docker · 2024-12-16 · Medium · 9 min read · AI agents, LLMs, Code review, Frontend
  An LLM agent can reliably flag user-facing copy changes in a branch when it is given narrow tools and expert hints about what "user-facing" means.
- [A practical guide to shipping with Claude Code](https://swe.quest/articles/a-practical-guide-to-shipping-with-claude-code-43c12dbf392adf5d.md): claude.dev · 2026-11-24 · Medium · 18 min read · AI for coding, Code review, AI agents, CI/CD, Developer productivity
  Claude Code's /ship command commits pending changes, opens a PR, runs /code-review and fixes valid findings, then watches the PR for up to seven days.
- [AI Agent Code Execution API](https://swe.quest/articles/ai-agent-code-execution-api-8f63888d403b81a8.md): Replit · 2023-09-19 · Medium · 4 min read · AI agents, Sandboxing & isolation, LLMs, Serverless, Python
  Replit offers sandboxed code execution so LLM agents can run untrusted generated code, contrasting a stateless model (like Bard's implicit code execution for math) with a stateful, session-long project environment (like ChatGPT).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
