https://github.com/databendlabs/snowtree
Review-Driven Safe AI Coding
https://github.com/databendlabs/snowtree
ai-agents claude-code codereview codex
Last synced: 2 days ago
JSON representation
Review-Driven Safe AI Coding
- Host: GitHub
- URL: https://github.com/databendlabs/snowtree
- Owner: databendlabs
- License: apache-2.0
- Created: 2026-01-05T13:12:18.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2026-01-18T05:24:45.000Z (6 days ago)
- Last Synced: 2026-01-18T08:14:51.737Z (6 days ago)
- Topics: ai-agents, claude-code, codereview, codex
- Language: TypeScript
- Homepage:
- Size: 26.9 MB
- Stars: 26
- Watchers: 0
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snowtree
Snowtree is Databend Labs' review-driven workflow for keeping AI coding sessions safe, auditable, and merge-ready.
AI generates code. You must review. You can't review everything or roll back safely.
Snowtree fixes this with **worktree isolation**, **incremental review**, and **staging snapshots**.

## Highlights
- **Worktree isolation** – every AI session runs in its own Git worktree, so you can spike multiple ideas in parallel with zero merge headaches.
- **Incremental review loop** – review, stage, and lock in vetted changes after each AI round; subsequent rounds only diff against staged code.
- **Native CLI agents** – run Claude Code or Codex directly without wrappers, meaning no extra queues or limits.
- **Stage-as-snapshot** – staged files become the canonical baseline. When you're ready, merge them back and ship the PR.
## What Snowtree Automates
- **AI agent writes code** – edits live in the isolated worktree while you review.
- **AI agent commits** – generates messages and commits the staged snapshot.
- **AI agent syncs PRs** – opens or refreshes pull requests on demand.
- **AI agent updates from `main`** – rebases/merges the latest upstream changes.
- **AI agent resolves conflicts** – fixes merge conflicts without touching staged files.
## Prerequisites
Install at least one AI coding agent:
| Agent | Install |
|-------|---------|
| [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | `npm install -g @anthropic-ai/claude-code` |
| [Codex](https://github.com/openai/codex) | `npm install -g @openai/codex` |
| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | `npm install -g @google/gemini-cli` |
## Install
**One-line installer (macOS/Linux):**
```bash
curl -fsSL https://raw.githubusercontent.com/databendlabs/snowtree/main/install.sh | sh
```
**Manual download:** [GitHub Releases](https://github.com/databendlabs/snowtree/releases)
| Platform | Format |
|----------|--------|
| macOS | `.dmg` (arm64, x64) |
| Linux | `.deb`, `.AppImage` (x86_64) |
## Development
```bash
make install # Install dependencies
make run # Start development server
make check # Typecheck, lint, and test
make build # Build packages
```
## Learn More
[Snowtree: Review-Driven Safe AI Coding](https://www.bohutang.me/2026/01/10/snowtree-review-driven-safe-ai-coding/)
## License
Apache-2.0