Review changes, refine documents, make choices, and approve actions with your agent in the terminal.
You can review a diff, file, or document on its own. Your agent can also attach a document asking for your permission or a decision. You can agree in advance on which actions need your approval, such as pushing code or deploying.
When your agent needs your input, it prepares the request and opens a review in Critty. Comment on individual lines, answer questions, confirm details, or authorize actions. Your comments and answers go back to the agent.
If you chat with your agent in a terminal multiplexer, such as tmux, the Herdr desktop app or Herdr TUI, or cmux, the review opens in a pane or tab alongside the chat. Review the request, send your feedback, and return to the conversation while your agent handles the next step. This works with both TUI and GUI multiplexers; without one, Critty opens a new terminal emulator window when available. Local desktop reviews prefer terminals with image previews and try other available terminals if needed. A failed attempt to identify the invoking pane can still fall back to a desktop or custom launcher; your configured launcher order takes precedence. See the supported launchers and requirements for the full list.
In Orca, reviews can open in a dedicated terminal in the same local workspace as your agent. Install the app's matching CLI and use a Unix host with a POSIX-compatible terminal shell. See the workspace launcher requirements for terminal and chat-agent detection.
In Rex, reviews open in a new tab in the same session as your agent, using a local Unix server. Automatic tab switching and return to your conversation require Rex's Remote Control setting, even on the same computer. With it off, select the review tab manually. See the Rex launcher requirements for preview setup and terminal detection.
While a review waits for you, Critty tells the terminal it needs your input through the Program Status Protocol (OSC 7501). Approval requests with consent items report a permission request; other reviews report a question. Terminals and agent inboxes that read it, such as the Herdr desktop app, cmux, iTerm2, and kitty, mark the review as needing attention; inside tmux, enable allow-passthrough so the report reaches the outer terminal.
Work through a questionnaire: check related items together, write answers, choose paths, and arrange priorities in a hierarchy. Check the Answers list before sending your choices back to the agent.
answering-questions-v2.5.1.mp4
For example:
- Review code changes alongside screenshots and questions from your agent.
- Leave inline feedback on a plan or document.
- Review updates to notes, reports, or configuration files outside Git before applying them.
- Choose an implementation approach before coding starts.
- Check a proposed PR's text and destination before authorizing publication.
critty is the new name of crit, originally published as
kevindutra/crit, with the fixes and improvements developed as TCrit. See the changelog for the release history.
- Code and document reviews — read multi-file diffs in unified or side-by-side view, with syntax highlighting and inline comments. Use Markdown tables in comment threads to compare values and choices.
- Approvals and questionnaires — confirm details, allow actions, choose alternatives, write answers, select paths, and rank options in nested lists in attached documents. These requests can accompany a code review or stand on their own.
- Design interviews — work through questions with your agent using critty-grill, then save an agreed decision summary, glossary, or ADR.
- Round trips with your agent — send feedback and answers, let the agent act on them, and return for the next round. Integrations support Claude Code, Codex, OpenCode, and Antigravity CLI; legacy Gemini CLI is also available.
- Flexible review inputs — review Git changes, a single commit, commit ranges, supplied diffs, or versioned plans. Use
critty viewfor a read-only inspection in the current terminal. - Terminal document viewer — open Markdown, source code, images, and patches with
critty <file>. Follow local links and return with Back and Forward. Copy a highlighted code block with its Copy button, or compare rendered Markdown tables and prose side by side in a review. - Nerd Font icons — recognize file types, outline entries, and review states at a glance. Automatic detection selects icons when available; portable symbols remain available in configuration.
- Live Review Updates — refresh an open review with Reload, or enable Watch to follow edits. Unread dots mark files that changed while you were reading elsewhere.
- Per-project Session Management — find saved reviews across a project's worktrees and continue from another checkout, even after the original worktree is removed.
- Plists and other encodings — review binary plists and encoded text through your configured Git text converters. Enable the converters you need in Critty's configuration.
- Review before editing — review proposed changes to documents and configuration files outside Git while the originals stay untouched. Create, split, rename, or delete files after approval.
- Inline image previews — compare image changes, attach images alongside review documents, preview images while writing comments, and open images in a zoomable lightbox. Preview HTTPS images from approved hosts and revisit them using the disk cache. See an image review.
- Math, Mermaid, and SVG previews — read formulas, diagrams, and vector images while keeping their source available for copying and review. Install missing renderers with
critty install tools; see preview setup. - History management — group reviews by task, retain feedback, and export portable archives with attachments and images. See the history workflow.
- Source outlines — jump to Markdown headings and declarations in code or attached source files from the Files sidebar. YAML frontmatter has syntax highlighting, and its metadata stays out of the heading outline.
- Navigation and editing — search across files as you type with regular expressions, word search, and a per-project query history; follow file and comment references; and return to each file where you left off. Compact tabs leave more room for the document.
- Text Selection and Copying — select text from documents, diffs, and input fields to reuse it, preserving Markdown formatting and link targets. Undo and redo edits in the active field, moves in the current ranking, and comment deletions and resolutions.
- Mouse and keyboard — use vim-style keys or clickable tabs, comments, and controls.
- Scriptable and Crit-compatible — automate comments with a Crit-compatible review format and resume saved sessions.
Install the binary with mise:
mise install github:crittylabs/crittyOr with Go, with $GOPATH/bin on your PATH:
go install github.com/crittylabs/critty/v2/cmd/critty@latestRelease binaries are available for macOS and Linux on amd64 and arm64. Building from source requires Go 1.27.2 or later.
Git 2.31.0 or later is required for repository reviews and the critty tmp workflow for applying changes outside Git. Standalone documents, attachment-only reviews, and scratch directories created with critty tmp create can run without Git. Prefer a maintained Git package with current security fixes.
After installing the binary, run:
critty doctorRun it in the terminal where you plan to use Critty. It checks installed agent integrations, review launchers, image settings, and Python/MCP prerequisites for optional AI reviews. It also tests a local marker round trip with a three-second wait, without launching an agent; unsupported terminal contexts are reported as skipped. Follow its suggestions for the features you plan to use, then rerun it after setup.
Install the skills for your agent. The table shows how to start a review; use critty-approval for approvals and choices:
| Agent | Install for your user | Start a review |
|---|---|---|
| Claude Code | critty install --user claude-code |
/critty |
| Codex | critty install --user codex |
$critty |
| OpenCode | critty install --user opencode |
/critty |
| Antigravity CLI | critty install --user agy |
/critty |
| Gemini CLI | critty install --user gemini |
Ask it to use the critty skill |
The agy target also accepts antigravity. Omit --user to install for the current project. Use critty install agents for shared skills, or critty install all for all agent-specific integrations except legacy Gemini CLI. Choose shared skills or agent-specific variants to avoid duplicate skill names.
Rerun the installer with --force after upgrading to refresh the bundled skills and commands.
After installing or upgrading the skills, run critty doctor from your project to check for missing or outdated integration files.
Use ~/.config/critty/config.toml for user settings and .critty.toml for project settings. See the configuration reference.
To enable SVG, math, and Mermaid previews, run critty install tools with
mise or Homebrew already installed. It installs missing
tools, preferring mise; choose --manager brew for Homebrew or use --dry-run
to inspect the commands. Homebrew's math setup installs the full TeX Live
distribution. See preview tool setup
for individual features and requirements.
In tmux, floating panes require version 3.8 or later; older servers use split panes. Desktop terminal windows are not opened over SSH, so use a supported multiplexer for agent reviews, or run Critty directly.
After setting up or switching your terminal or multiplexer, run critty doctor there to check review launchers and local image forwarding settings. See the launcher reference for configuration and supported terminals.
Recently viewed image, math, and Mermaid previews stay cached when switching files. Known preview dimensions remain available with the loaded document even when image data is evicted, keeping the layout stable while it reloads.
Image previews need a terminal with Kitty graphics protocol support and Unicode image placeholders, such as Kitty, Ghostty, iTerm2, or the Herdr desktop app. Through tmux or Herdr TUI, enable image passthrough; for tmux, run tmux set -g allow-passthrough on.
With allow-passthrough on, keep the Critty pane selected in the only client displaying that window; other clients can view different windows. With all, other clients must not share that window, even when it is hidden. Nested tmux image previews are not supported.
After enabling passthrough, run critty doctor in the foreground of that terminal to probe image support and check forwarding settings. Herdr TUI checks read local configuration; running server and remote client settings may differ.
PNG, JPEG, GIF, and WebP are supported directly. SVG previews use rsvg-convert, merman-cli, or resvg found on PATH, with no extra setting. SVG files retain their XML source alongside the preview; Markdown images and comment editors support SVG too. Large or unsupported images appear as text placeholders. Supplied patches can show Before and After SVG previews when they contain complete source snapshots. You can opt in to previews from selected HTTPS hosts with remote_image_hosts. See SVG preview details and remote image setup.
Markdown math expressions in $...$ and $$...$$ can appear as images in documents and comments, including code blocks such as suggestions and Markdown examples. Inline formulas follow the surrounding text size; wide block formulas in document views scroll horizontally. Copying keeps the original TeX; searching, selecting lines, or turning Images off reveals the source. The comment editor keeps the source with previews below it. Single-line expressions try RaTeX found on PATH first, with LaTeX plus dvipng as fallback; multiline expressions use LaTeX directly. These optional tools stay outside Critty, and missing tools or rendering failures leave the source visible. See math preview setup and limits.
Fenced mermaid blocks can appear as diagrams through the optional native Merman CLI, with mmdr as fallback. The comment editor keeps the source with a preview below it. Press I or M-i (Alt+i) outside input, use M-i while editing comments, or click Images to toggle image, math, and Mermaid previews together. See Mermaid setup and limits.
Attach images alongside review documents with --attachment image.png, including in attachment-only reviews. Images are saved with the review, so resuming keeps the reviewed version even if the original changes or disappears. Supported terminals show the image inline and in the lightbox; other terminals show its format and dimensions. Image attachments are limited to 5 MiB and 16 megapixels. Animated GIFs display their first frame.
When Codex uses a shared background server, Critty finds the conversation by searching visible mux panes for a marker printed by the agent. Supported muxes can be discovered without a wrapper. Start Codex through Critty to also register custom connections and client hints:
critty codexAlternatively, put the bundled codex wrapper ahead of Codex on your PATH. Run critty doctor to inspect wrapper and terminal-filter detection. For an end-to-end binding test, use the marker-based doctor check. See terminal-filter integration for setup.
If your mux cannot list panes or read their screens, use a notifying terminal filter, start Codex with --no-daemon, or ask your agent to use a desktop/custom launcher that opens its own review window. A mux launcher name alone cannot identify the correct pane.
critty README.md # Read a document in the current terminal
critty src/main.go:64 # Open source at a line
critty changes.patch # Read a patch with syntax highlightingFollow local Markdown links to browse related documents. Back and Forward restore your reading position without creating a saved review. Standalone patches support unified and side-by-side layouts; press S to switch. Highlighting uses the patch's filenames and available hunk context, so a hunk starting inside a multiline string or comment may have limited syntax context.
The viewer hides line numbers by default and shows an outline when one is available. Markdown headings and source declarations carry their colors into the outline. To inspect the original markup, press M-u or click the syntax name in the file header. Repeat to return to formatted Markdown. Set line-number visibility, wrapping width, and syntax associations in configuration. Use Help for the full mouse and keyboard controls.
Ask your agent to use the critty skill to review its changes, a plan, or a document. For example:
Use critty to review these changes before committing.
Critty opens a review pane or tab in the detected multiplexer, or a new window of a supported terminal emulator. Read the diff or document, leave inline comments on the relevant lines, and submit Approve, Reject, or Comment.
When a change needs explanation, your agent can add a Story beside the diff. Follow a link to the lines the Story explains, then click the orange backlink to return to the passage. To comment on the walkthrough, select a passage and press Enter. The critty-story skill describes when agents include a walkthrough.
When your agent returns with revisions, read its replies and choose round from the diff menu (D) to compare against your last submission. Choose all to see the full review again. This works for Git changes, documents, and plans with complete text snapshots.
For a Git range such as HEAD~3..HEAD, choose commit to inspect one commit or the combined changes from several consecutive commits. Open one with Enter, or press Space to start selecting a range. The panel above the file tabs lists each selected commit's author, date, and message. You can search the log or copy text from it. Comments retain the Git revisions your agent needs to find the original lines. See Selecting commits in a Git range for the controls and an example.
Watch a review through to the commit with Claude Code or Codex.
For a manual review:
critty review # Current Git changes
critty review --staged # Staged changes
critty review --scope=HEAD # One commit
critty review notes.md # A document
critty plan design.md # A versioned planReviews support mouse and keyboard navigation, search, inline comments, and your preferred editor. A gold dot in the gutter marks unresolved threads and unanswered fields. After deleting a comment or reply, the cursor lands on the last line it covered. From there, press M-z to restore it and M-Z to delete it again. The same shortcuts undo and redo resolutions. During review navigation, C-y also redoes the action. Open Keyboard Help and press / to find a shortcut by key or action. Use critty --help for commands. The CLI reference covers review inputs, attachments, saved sessions, configuration, and scripted comments.
Compact tabs leave two more rows for the document. Each tab remembers your reading position in the document and Comments sidebar. The Files tree shows pending comments and unanswered items. Use V for full-width reading with all comments reduced to bubble markers.
Use Viewed to keep track of files you have finished reviewing. Toggle it in the Files sidebar, or click Viewed in the lower-right corner of the file to mark it and continue to the next unviewed file. Marks carry over when you resume. They clear when the reviewed content or diff changes or a comment thread opens on the file.
The current line and selected ranges are highlighted across the pane, with diff colors preserved in the text. Drag the line numbers to select a range. Hover over a line number to reveal the add-comment button, or click the current or a selected line number to comment.
Word-level highlights estimate corresponding lines even when a change also adds or removes lines. Side-by-side view uses the same matches. Very long lines and expensive searches keep full-line highlighting so reviews stay responsive.
Find a saved review and continue where you left off:
critty sessions # Reviews for this project, across worktrees
critty sessions --all # Reviews from every project
critty sessions resume <id> # Continue a saved reviewThe list shows each review's status and local start time. Resume from any checkout of the same Git project, even after deleting the original worktree. Git reviews use the current checkout, while comments, replies, attachments, and answers carry forward. If your terminal closes while you are writing a comment or reply, resuming the review reopens its editor. Critty saves the draft every two seconds. Changed inputs require fresh confirmations and consents.
Saved text remains available when an original document is missing or a file is outside the current changes. Plans and supplied diffs keep their saved snapshots; unavailable binary data cannot be restored. See critty sessions --help for sorting, stopping, and removing sessions, and the session reference for details.
Keep a review open while files change. Click Reload to refresh the current Git scope, document, and file-backed attachments, or turn on Watch to follow edits automatically. Watch starts off; agents can enable it with --watch. Updates wait while you edit, select text, search, or use a dialog. Updated background tabs show an unread dot until opened.
Saved plans, supplied diffs, and committed comparisons keep their snapshots. File-backed attachments can still update. Changed review inputs require fresh confirmations and consents. See the live source reference for limits.
To quote part of a line, drag across the text or press F7 to turn on caret browsing. Move the terminal cursor to the start, press v, then extend the selection by character or word. Press M-w or Y to copy it. Copies contain the source text, with wrapped rows joined and gutters and annotations left out. Markdown retains its formatting and link targets, even when selecting part of a link label. Text goes to the kill ring and system clipboard; system clipboard access requires terminal OSC 52 support.
Input fields select the same way: drag in the comment editor or a single-line input, copy with M-w or Copy text, paste the clipboard with C-v or M-v, and use M-z and M-Z to undo and redo successive edits. In text fields, C-y yanks from the kill ring.
Without a text selection, M-w copies the current source line or selected line range. On a comment it copies the body; on a thread it copies the parent and all replies with author names, retaining the original Markdown. Press @ to copy a file/line reference or comment ID. Follow these references in comments and attached documents by clicking them. In an attachment, M-o follows a reference on the cursor line. A reference such as @src/main.go#L64:8-12 highlights the specified characters. The orange gutter link takes you back to the referring comment. Comment IDs select their thread.
Local Markdown links in review documents select an existing tab first. Without a matching tab, Markdown, files recognized by your syntax rules, and files detected as text open in the editor; other files, including videos and PDFs, open in the OS default application. View mode keeps document navigation inside Critty. External applications do not open over SSH.
Search covers all review files by default. Use the Files button or M-s m during search to restrict it to the current file. Selecting lines keeps search in that file. Regular expressions support backreferences and lookaround. Press M-e to edit a long query in place, and M-p / M-n to recall earlier queries; Critty remembers them per repository, with their regexp, word, and case settings, across its worktrees.
The outline below the Files tree lets you jump to Markdown headings or source declarations, including in attachments. Source outlines support Go, JS/TS, Rust, Ruby, Python, Swift, Kotlin, C/C++, Objective-C/C++, Java, Zig, Lua, Bourne-family shell scripts, Perl, Emacs Lisp, and VimL. Known file names and shebangs such as #!/usr/bin/env ruby identify scripts without a language suffix for both syntax highlighting and outlines; env -S is also supported. Go uses its standard parser; other languages use lightweight rules for conventionally formatted code and may miss or misidentify unusual syntax. Entries stay in source order, with nesting where available. See Keyboard Help for navigation and resizing.
Review binary plists and text in other encodings as readable UTF-8 through Git textconv drivers. For example, on macOS, configure a plist converter in your repository:
git config diff.plist.textconv 'plutil -convert xml1 -o -'Add this rule to .gitattributes to select it for plist files:
*.plist diff=plistThen enable the driver in Critty's project .critty.toml or global ~/.config/critty/config.toml:
textconv_drivers = ["plist"]Run critty review to review Git changes to these files as XML, including binary plists. The original files keep their format. Other formats and encodings work the same way with a converter that outputs UTF-8 text.
Conversions are disabled by default. Comments on converted files refer to the converted text and its line numbers. Agents receive the converter's name and command with the feedback to help locate the original content and preserve its format when editing. See configuration and Git text conversions for driver setup and limitations.
Use Critty for personal notes, reports, configuration files, and other text files that are not in a repository. Your agent can propose edits, create files, split a long document, or rename and remove files while keeping the originals unchanged until you approve.
For example:
Use critty to review updates to my notes before applying them. Split the long meeting notes into a summary and action items, and keep the originals unchanged until I approve.
The agent prepares copies with critty tmp, edits them, and opens the proposed diff with a request to apply it. Leave comments and review revisions as usual. After you approve the review and select the permission checkbox, the agent applies the reviewed changes. Critty checks for changes to the originals and retains backups for recovery.
The application request lists the destination and files to create, update, or delete before the permission checkbox. Exact file states remain available as JSON at the end.
See the workflow for changes outside source control and critty tmp --help for details.
Agree with your agent on which actions need your approval, such as committing, pushing a branch, or deploying. Keep your project rules for reviews, approvals, and choices in CLAUDE.md or AGENTS.md.
When it needs your permission or a decision, the agent can use critty-approval to prepare a document with the details and open it in Critty. That document can be attached to the same session as the diff, so you can review the changes and next steps together. It can include the proposed commit message, push destination, or deployment plan.
For example:
Use critty-approval to review these changes and the proposed push together. Include the commit message and exact repository and branch destination, and wait for my approval before pushing.
For a deployment, include the target environment and exact deployment actions alongside the changes. Review the code and proposed operations together, leave feedback where needed, and approve the operations you want the agent to carry out.
Required confirmations must be complete before approval. Approving the review does not authorize operations whose permission checkboxes remain unchecked. Critty records your decisions; the agent executes the authorized actions.
You can send Comment or Reject with unfinished form items or unresolved threads without extra confirmation. Completion checks apply when approving.
Ordinary Markdown checklists use cyan checked and unchecked boxes, keep their written state, and are display-only. Agents add a <!-- form: ... --> annotation to each item that should collect an answer. Optional answer status uses cyan across tabs, Files, the header, Answers, and Submit dialogs; required items use red. Preference answers use separate fields from execution permissions. Changed execution requests require renewed consent.
The agent can also open a request document on its own, without a code diff. Use the same critty-approval skill to choose an approach before implementation starts or approve an action that has no code changes to review:
Use critty-approval to let me choose between these implementation approaches.
Use critty-approval to show me the PR text and destination before publishing it.
Read the request and supporting material, leave comments, and use the checkboxes or radio buttons to give your answers. Select several lines and press Space to check their boxes and the first option in each choice group. Press Space again to clear them. Submit your decision, and the agent continues from your feedback and answers. The installed skills handle the interaction with Critty.
Use attachment forms to give written answers, select file or directory paths, rank options, or select related items together. Labels show which items require an answer or ask for consent, and how many consent items a select-all control includes. In a nested ranking, moving a parent carries its children with it. Undo or redo moves in the ranking under the cursor, one drag or keyboard move at a time. Open Answers to check your selections and written answers before submitting, find unanswered fields, and jump back to revise them. For questionnaire rounds, your agent can make Confirm answers the default Submit action. Choosing it returns your answers to the agent without approving the whole design. See attachment forms.
Use critty-grill to work through a design with your agent:
Use critty-grill to stress-test this plan. Agree on which decisions to record and where to save them.
The agent asks questions through comments and form choices, then confirms the shared understanding before saving a decision summary, glossary, ADRs, or a combination. You choose the destinations and languages together.
Request a second opinion with critty-ai-review, or use critty-ai-cowork to let your agent address findings with another AI before your final review. Findings return to the same Critty comment threads.
For example:
Use critty-ai-review with Codex Astra to review these changes in the current session.
Ask your agent to "Have Fable review this and finish it" to delegate revisions and follow-up through critty-ai-cowork. Say "I'd like Fable's opinion first" to receive findings through critty-ai-review before deciding what to change. The same distinction applies to other reviewers and languages; explicitly naming a skill selects that workflow.
You can make that request in a Critty comment, including a Comment submission. It authorizes sending the current review's necessary diff, documents, and surrounding source to the chosen model's configured service, with results returned to the local session. That scope carries through follow-up rounds; separate host permission checks can still require direct confirmation.
Your agent owns edits, tests, measurements, and reproductions. Claude can request a Codex review, and Codex can request a Claude review; the requesting agent keeps those responsibilities. The reviewer gathers permitted information and makes static findings. If it needs more evidence or a read is denied, it tells your agent what is missing and continues with the available material. Your agent obtains the information or runs the necessary check.
In cowork, both agents agree on how to address each finding, and the reviewer resolves satisfied findings after checking the response. Remaining disagreements come to you for a decision.
AI review requires an existing Critty session and authorized access to the chosen reviewer. Claude Code can review with only read and search tools, returning comments for your agent to post. Direct posting through the Claude gate requires Python 3.10+; the restricted Codex MCP setup requires Python 3.11+ and the MCP Python SDK. See the linked skills for setup and dependencies.
For a Python gate or MCP setup, run critty doctor to check its prerequisites. If it uses a dedicated Python environment, check that interpreter explicitly:
critty doctor --python /absolute/path/to/venv/bin/pythonThe agent's Story explains the retry budget. Its link takes you to the exact value in the diff, and the orange backlink in the margin returns you to the explanation.
Browse documents without starting a review. Headings, highlighted code blocks, tables, task lists, alerts, and callouts stay readable in dark and light terminals.
Press M-u to inspect the markup behind the formatted document.
Inspect a patch in unified or side-by-side view, with syntax highlighting for the changed source.
Read formulas, diagrams, and vector images alongside their source. Missing renderers can be installed with critty install tools.
previews-v2.5.1.mp4
Follow the source outline as you move through code, or jump to a Markdown heading. M-G focuses the outline; Enter returns to the source.
outlines-v2.5.1.mp4
review-flow-claude-v2.5.1.mp4
review-flow-codex-v2.5.1.mp4
A comment in a Claude Code review requests a second opinion from Codex Astra. Claude starts the reviewer, and Astra's inline findings and overall report return to the same Critty session.
ai-review-claude-codex-astra-v2.5.1.mp4
Watch follows file edits and marks changed background tabs. Follow a file reference from an attachment to inspect the updated source.
updates-v2.5.1.mp4
See the questionnaire walkthrough above for select-all controls, written answers, path completion, rankings, and the Answers list.
Contributions and ideas are welcome: support for more agent CLIs and multiplexers, terminal compatibility, keyboard and mouse interaction, UI improvements, and workflows that use AI. Open an issue to suggest an improvement or send a pull request.
go test ./...
go build ./...
go vet ./...Run python3 e2e/scenarios.py for isolated CLI and TUI scenarios, and python3 e2e/doctor_images_test.py for image diagnostics. These checks need Python and tmux, but no AI accounts.
See demo/README.md for recording and publishing demos.




















