{"id":49025878,"url":"https://github.com/blushyes/reef","last_synced_at":"2026-05-11T03:29:49.186Z","repository":{"id":351908142,"uuid":"1212104171","full_name":"Blushyes/reef","owner":"Blushyes","description":" The minimal dev terminal for the AI coding era — AI writes the code, Reef is   where you review it.","archived":false,"fork":false,"pushed_at":"2026-04-17T03:07:08.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-17T03:07:55.763Z","etag":null,"topics":["ai","ai-coding","claude-code"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blushyes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-16T04:11:07.000Z","updated_at":"2026-04-17T03:07:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Blushyes/reef","commit_stats":null,"previous_names":["blushyes/reef"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/Blushyes/reef","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blushyes%2Freef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blushyes%2Freef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blushyes%2Freef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blushyes%2Freef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blushyes","download_url":"https://codeload.github.com/Blushyes/reef/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blushyes%2Freef/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32165201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-coding","claude-code"],"created_at":"2026-04-19T06:14:31.624Z","updated_at":"2026-04-23T04:02:49.438Z","avatar_url":"https://github.com/Blushyes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reef\n\n\u003e **AI 时代的最小开发者终端**\n\u003e **The minimal dev terminal for the AI coding era**\n\n**Once AI writes your code, 90% of an IDE becomes dead weight. Reef is the other 10%.**\n\n\u003ca href=\"./README.md\"\u003e\u003cimg alt=\"English\" src=\"https://img.shields.io/badge/lang-EN-blue?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"./README.zh-CN.md\"\u003e\u003cimg alt=\"简体中文\" src=\"https://img.shields.io/badge/lang-%E4%B8%AD%E6%96%87-red?style=flat-square\"\u003e\u003c/a\u003e\n\n---\n\n## Why\n\nWhen AI writes most of your code, an IDE's surface shrinks to a handful of things: browsing files, reading files, searching, walking git diffs, and shipping the result. Reef is a terminal workbench for exactly that — and nothing else.\n\nNo autocomplete. No linter. No language server. Not even a text editor. Write with your AI tool of choice; come here to read, review, and ship — on your laptop or across an SSH connection.\n\n## What's in the box\n\n### Four tabs\n\n- **Files** — tree navigator with a read-only preview: syntax-highlighted code, inline image rendering (Kitty / iTerm2 / halfblocks, auto-detected), and friendly metadata cards for binaries.\n- **Search** — workdir-wide content search (ripgrep-powered, honours `.gitignore`) with live preview on the right; modal list / input modes, whole-row horizontal scroll, 1000-hit cap.\n- **Git** — status with per-file `+N −M` numstat; stage / unstage per file **or per folder** (keyboard or double-click); unified or side-by-side diff; compact or full-file context; syntax-highlighted; discard (confirmed) and discard-all; push / force-push (`--force-with-lease`) behind a confirm banner.\n- **Graph** — commit DAG with ref chips, inline commit detail and per-file diff. Vim-style visual mode (`V`) selects a range of commits and renders the merged diff across them; `Shift+↑/↓` or `Shift+Click` extends the range without entering visual mode.\n\n### Palettes \u0026 overlays\n\n- \u003ckbd\u003eSpace\u003c/kbd\u003e \u003ckbd\u003eP\u003c/kbd\u003e — fuzzy quick-open by path.\n- \u003ckbd\u003eSpace\u003c/kbd\u003e \u003ckbd\u003eF\u003c/kbd\u003e — global content search overlay (shares the Search tab's backend; \u003ckbd\u003eAlt\u003c/kbd\u003e+\u003ckbd\u003eEnter\u003c/kbd\u003e pins the query into the tab).\n- \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eO\u003c/kbd\u003e — hosts picker: SSH hosts parsed from `~/.ssh/config` plus recently-used entries; swaps the backend live without restarting.\n- \u003ckbd\u003eh\u003c/kbd\u003e — help.\n\n### Remote over SSH\n\nConnect to a remote box and get the full Files / Search / Git / Graph UI — same keys, same feature set — driven through a tiny `reef-agent` daemon over SSH stdio.\n\n```bash\nreef --ssh user@host            # open remote $HOME (agent auto-installed)\nreef --ssh user@host:/path      # open /path on host\n```\n\n- Auto-deploy: Reef detects the remote OS/arch and installs a version-matched `reef-agent` — downloaded from GitHub Releases, or uploaded from your local build as a fallback.\n- One ControlMaster SSH session powers the whole thing: JSON-RPC over stdio for data, `scp` over the existing socket for drag-drop upload, `ssh -t` for `$EDITOR`.\n- Content search, diff, graph, stage/unstage, file-tree create/rename/delete — all work identically remote.\n\n### File operations\n\n- Create, rename, move-to-trash, and hard-delete from the file tree — via toolbar, right-click context menu, or keyboard (`F2`, `d` / `Del`, `Shift+D` / `Shift+Del`).\n- **Drag files from Finder / Explorer onto the terminal** to enter *place mode* — click any directory to copy the dropped files there, `Esc` or right-click to cancel. Works over SSH (uploads via the existing ControlMaster).\n\n### Ergonomics\n\n- **Keyboard first**, mouse where it earns its keep — drag to resize the split, double-click to toggle staging, scroll the panel under the cursor, right-click the tree for a context menu.\n- **Vim-style in-panel search** — `/` and `?` open a prompt, `n` / `N` step matches, with `Alt`/`Ctrl` word-editing shortcuts in the prompt.\n- **Navigation**: `↑` / `↓`, `j` / `k`, and `Ctrl+P` / `Ctrl+N` / `Ctrl+K` / `Ctrl+J` all move the selection on every tab.\n- **Selection \u0026 clipboard** — `v` toggles mouse capture so the terminal's native text selection works; or drag inside a preview pane and Reef copies to the system clipboard via OSC 52 (no helper binary, works over SSH).\n- **Auto-themes** — OSC 11 probe picks up terminal light/dark mode; locale auto-detects (English / 简体中文).\n- **Persistent prefs** — diff layout, diff mode, recent SSH hosts, and friends survive restarts.\n\n## Install\n\n### Via npm (recommended)\n\n```bash\n# Run without installing\nnpx @reef-tui/cli\n\n# Or install globally\nnpm install -g @reef-tui/cli\nreef\n```\n\nThe correct native binary for your platform is selected automatically.\nSupported: macOS (arm64, x64), Linux (arm64, x64), Windows (x64).\n\n### Build from source\n\n```bash\ncargo build --release\n\n# Run from inside any git repo:\ncd your-git-repo\n/path/to/reef/target/release/reef\n```\n\nReef works anywhere. Outside a git repo, the Git and Graph tabs show a \"Not a git repository\" placeholder; the Files tab still browses the current directory. If you start Reef in a non-repo with no recent hosts, the hosts picker opens so you always have a visible path forward.\n\n## Keybindings\n\n### Global\n\n| Key | Action |\n| --- | --- |\n| `q`, `Ctrl+C` | quit |\n| `1` / `2` / `3` / `4` | Files / Search / Git / Graph tab |\n| `Tab` | cycle tabs |\n| `Shift+Tab` | switch focused panel |\n| `h` | help |\n| `Space p` | quick-open file (fuzzy path) |\n| `Space f` | global content search overlay |\n| `Ctrl+O` | hosts picker (open SSH target) |\n| `v` | toggle mouse capture (for terminal text selection) |\n| `↑` / `↓`, `j` / `k`, `Ctrl+P` / `Ctrl+N` | navigate |\n| `Ctrl+K` / `Ctrl+J` | navigate (alt) |\n| `PgUp` / `PgDn` | page |\n| `←` / `→`, `Shift+←` / `Shift+→` | horizontal scroll |\n| `Home` / `End` | reset / jump h-scroll |\n| `/` · `?` · `n` / `N` | vim-style find in preview / diff |\n| drag file into terminal | enter place mode |\n\n### Files tab\n\n| Key | Action |\n| --- | --- |\n| `Enter` | expand/collapse directory, or open file in `$EDITOR` |\n| `e` | open selected file in `$EDITOR` |\n| `r` | rebuild tree |\n| `F2` | rename selected entry |\n| `d` / `Del` / `⌫` | move selected entry to trash (confirm) |\n| `Shift+D` / `Shift+Del` | hard-delete (confirm) |\n| right-click | open file-tree context menu |\n\n### Search tab\n\nLeft panel is modal. List mode is the default: global shortcuts (`h`, `q`, digit keys, …) stay live; press `/` or `i` to focus the input, `Esc` to return. Typing updates results live.\n\n| Key | Action |\n| --- | --- |\n| `/` or `i` | focus the search input |\n| `Esc` | return to list mode |\n| `Enter`, double-click | reveal match in Files tab (matched line highlighted) |\n| `r` | reload current query |\n| `Alt+←` / `Alt+→`, `Ctrl+W` / `Ctrl+U` | word-edit the prompt |\n\n### Git tab\n\n| Key | Action |\n| --- | --- |\n| `s` / `u` | stage / unstage (file, or every file under a folder row) |\n| `d` → `y` | discard unstaged file / folder (confirm) |\n| `Enter` / `e` | open selected file in `$EDITOR` |\n| `r` | refresh |\n| `t` | tree / flat view |\n| `m` | unified ↔ side-by-side diff layout |\n| `f` | compact ↔ full-file diff |\n\n### Graph tab\n\n| Key | Action |\n| --- | --- |\n| `↑` / `↓`, `j` / `k` | move commit selection |\n| `V` | enter visual mode (select commit range) |\n| `↑` / `↓` or `PgUp` / `PgDn` (visual) | extend range |\n| `Shift+↑` / `Shift+↓`, `Shift+Click` | extend range without visual mode |\n| click in range (visual) | set the other end |\n| `Esc` | exit visual mode / clear range |\n| `m` / `f` | commit-file diff layout / mode |\n| `t` | tree / flat changed files |\n\n## Status\n\nAlpha. Single-process Rust binary — no plugins, no IPC on the local path. Files, Git, and Graph are host-native; remote uses a thin `reef-agent` daemon over SSH stdio. One codebase, one UI, one key map — local and remote are feature-parity.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblushyes%2Freef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblushyes%2Freef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblushyes%2Freef/lists"}