{"id":50487230,"url":"https://github.com/lntvan166/claudegate","last_synced_at":"2026-06-04T01:00:40.974Z","repository":{"id":361431017,"uuid":"1252385902","full_name":"lntvan166/claudegate","owner":"lntvan166","description":"Review every file Claude Code touches — accept or revert with one click.","archived":false,"fork":false,"pushed_at":"2026-06-01T15:26:40.000Z","size":1341,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T23:34:25.002Z","etag":null,"topics":["agent","agentic-coding","ai","claude","claude-code","code-review","cursor","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lntvan166.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-05-28T13:20:25.000Z","updated_at":"2026-06-01T15:50:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lntvan166/claudegate","commit_stats":null,"previous_names":["lntvan166/claudegate"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lntvan166/claudegate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lntvan166%2Fclaudegate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lntvan166%2Fclaudegate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lntvan166%2Fclaudegate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lntvan166%2Fclaudegate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lntvan166","download_url":"https://codeload.github.com/lntvan166/claudegate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lntvan166%2Fclaudegate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33841996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["agent","agentic-coding","ai","claude","claude-code","code-review","cursor","vscode-extension"],"created_at":"2026-06-01T23:30:21.274Z","updated_at":"2026-06-03T00:00:47.334Z","avatar_url":"https://github.com/lntvan166.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Gate\n\n**Review every file Claude Code touches — accept or revert with one click.**\n\nStop flying blind when Claude modifies your codebase. Claude Gate captures every file change before it happens and surfaces each one as a structured diff — the same accept/reject workflow as Cursor's native AI review, but for Claude Code running in any terminal.\n\n\u003e **Note:** Claude Gate supports two modes: the **Claude Code terminal CLI** (`claude` command) via pre-installed hooks, and the **Claude Code VS Code/Cursor GUI extension** via automatic file change detection. GUI mode works best in \"pure sessions\" where Claude makes changes and you review before editing further — all file changes during a GUI session are captured for review.\n\n---\n\n## Screenshot\n\n![Claude Gate in action](media/ClaudeGateDemo.png)\n\n---\n\n## Quick Start\n\nThree steps, no manual config:\n\n**1. Install**\nInstall **Claude Gate** from the VS Code / Cursor Extensions panel.\n\n**2. Setup the hook**\nOpen the Command Palette (`Cmd+Shift+P` / `Ctrl+Shift+P`) and run:\n\n```\nClaude Gate: Setup Hook\n```\n\nThis installs a `PreToolUse` hook into Claude Code that automatically snapshots files before Claude writes them.\n\n**3. Run Claude Code normally**\nUse `claude` in your terminal as usual. When Claude modifies files, Claude Gate shows a pending count badge in the sidebar — click any file to review the diff.\n\n---\n\n## The Review Flow\n\n1. The **Claude Gate** icon in the Activity Bar shows three panels: **Pending**, **Accepted**, and **Rejected**\n2. Click any pending file to open VS Code's native diff editor — original on the left, Claude's version on the right\n3. **✓ Accept** and **✕ Reject** inline links appear at the top of the diff — one click, done\n4. Accepted files move to the Accepted panel; rejected files are restored to their original content\n\n---\n\n## Features\n\n- **Automatic session tracking** — hooks fire before every Claude file write; no manual start/stop\n- **Three independent panels** — Pending, Accepted, and Rejected with per-panel collapse and view toggle\n- **Accept/Reject CodeLens** — inline action links at the top of any pending file, in the diff view and the regular editor\n- **Folder-level actions** — accept or reject an entire directory at once (tree view mode)\n- **Undo your decisions** — re-apply Claude's changes from the Rejected panel; un-accept files back to Pending\n- **Workspace-aware filtering** — files modified outside the current workspace (e.g. `~/.claude/settings.json`) are hidden from the review panel\n- **Pending count badge** on the sidebar panel header\n- **Session history** archived to `~/.claudegate/history/`\n\n---\n\n## How It Works\n\n```\nClaude Code (terminal CLI)          Claude Code (VS Code GUI extension)\n        │                                        │\n  PreToolUse hook fires                 DocumentTracker watches\n  hook.py snapshots original          file system for changes\n        │                                        │\n        └──────────────┬─────────────────────────┘\n                       ▼\n        ~/.claudegate/sessions/\u003cworkspace\u003e.json\n                       │\n             Claude Gate review panels\n```\n\nThe hook captures a file's original content **once per session** — subsequent Claude writes to the same file don't overwrite the snapshot, so you always diff against the true before-state.\n\n---\n\n## Requirements\n\n| Requirement                                  | Notes                                         |\n| -------------------------------------------- | --------------------------------------------- |\n| VS Code 1.85+ or Cursor                      |                                               |\n| [Claude Code](https://claude.ai/claude-code) | Terminal CLI or VS Code/Cursor GUI extension  |\n| Python 3.7+                                  | Pre-installed on macOS and most Linux distros |\n\n\u003e **Windows:** Native Windows is supported. Python must be on your `PATH` (`python` or `python3`). WSL is not required.\n\n---\n\n## Updating the Hook\n\nAfter updating the extension, re-run **`Claude Gate: Setup Hook`** to install the latest hook script.\n\n---\n\n## Contributing \u0026 Issues\n\nFound a bug or have a feature request? [Open an issue on GitHub](https://github.com/lntvan166/claudegate/issues).\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flntvan166%2Fclaudegate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flntvan166%2Fclaudegate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flntvan166%2Fclaudegate/lists"}