Skip to content

Commit fe5e72b

Browse files
committed
NPX ASYNCREVIEW FEATURE
1 parent c59bcaa commit fe5e72b

28 files changed

Lines changed: 5030 additions & 11 deletions

README.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ bun dev
6363
```
6464
Open `http://localhost:3000` in your browser.
6565

66-
## CLI Usage
66+
## Quick Start
67+
68+
No installation needed! Just use `npx`:
69+
70+
```bash
71+
# Review a GitHub PR
72+
npx asyncreview review --url https://github.com/org/repo/pull/123 -q "Any security concerns?"
73+
```
74+
75+
## CLI Usage
6776

6877
You can also use the tool directly from the terminal:
6978

@@ -72,26 +81,29 @@ You can also use the tool directly from the terminal:
7281
- **One-shot Review**: `cr review -q "What does this repo do?"`
7382
- **Help**: `cr --help`
7483

75-
### `asyncreview` - GitHub PR/Issue Review (New!)
76-
77-
Review GitHub PRs and Issues directly from the command line:
78-
79-
```bash
80-
# Review a PR
81-
asyncreview review --url https://github.com/org/repo/pull/123 -q "Any security concerns?"
84+
### `npx asyncreview` - GitHub PR/Issue Review
85+
86+
Review GitHub PRs and Issues directly from the command line:
87+
88+
```bash
89+
# Review a PR
90+
npx asyncreview review --url https://github.com/org/repo/pull/123 -q "Any security concerns?"
8291

8392
# Review with markdown output (great for docs/skills)
84-
asyncreview review --url https://github.com/org/repo/pull/123 \
93+
# Review with markdown output (great for docs/skills)
94+
npx asyncreview review --url https://github.com/org/repo/pull/123 \
8595
-q "Summarize the changes" \
8696
--output markdown
8797

8898
# Quiet mode for scripting (no progress bars)
89-
asyncreview review --url https://github.com/org/repo/pull/123 \
99+
# Quiet mode for scripting (no progress bars)
100+
npx asyncreview review --url https://github.com/org/repo/pull/123 \
90101
-q "What does this PR do?" \
91102
--quiet --output json
92103

93104
# Use a specific model
94-
asyncreview review --url https://github.com/org/repo/pull/123 \
105+
# Use a specific model
106+
npx asyncreview review --url https://github.com/org/repo/pull/123 \
95107
-q "Deep code review" \
96108
--model gemini-3.0-pro-preview
97109
```

npx/README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# asyncreview
2+
3+
AI-powered GitHub PR/Issue reviews from the command line using Recursive Language Models (RLM).
4+
5+
## Quick Start
6+
7+
```bash
8+
# Review a PR
9+
npx asyncreview review --url https://github.com/org/repo/pull/123 -q "Any security concerns?"
10+
11+
# With JSON output for scripting
12+
npx asyncreview review --url https://github.com/org/repo/pull/123 -q "What does this PR do?" --quiet --output json
13+
```
14+
15+
## Requirements
16+
17+
- **Node.js 18+**
18+
- **Python 3.11+** (auto-detected)
19+
- **Gemini API Key** (prompted if not set)
20+
21+
## API Key
22+
23+
The Gemini API key can be provided in three ways (in order of priority):
24+
25+
1. `--api <key>` flag
26+
2. `GEMINI_API_KEY` environment variable
27+
3. Interactive prompt (if neither above is set)
28+
29+
```bash
30+
# Using --api flag
31+
npx asyncreview review --url <url> -q "Review this" --api YOUR_API_KEY
32+
33+
# Using environment variable
34+
export GEMINI_API_KEY=your_key
35+
npx asyncreview review --url <url> -q "Review this"
36+
```
37+
38+
## Options
39+
40+
| Option | Description |
41+
|--------|-------------|
42+
| `-u, --url <url>` | GitHub PR or Issue URL (required) |
43+
| `-q, --question <question>` | Question to ask (required) |
44+
| `-o, --output <format>` | Output format: `text`, `markdown`, `json` (default: text) |
45+
| `--quiet` | Suppress progress output |
46+
| `-m, --model <model>` | Model to use (default: gemini-3-pro-preview) |
47+
| `--api <key>` | Gemini API key |
48+
49+
## Examples
50+
51+
```bash
52+
# Quick PR summary
53+
npx asyncreview review -u https://github.com/vercel/next.js/pull/1234 -q "Summarize the changes"
54+
55+
# Security review
56+
npx asyncreview review -u https://github.com/org/repo/pull/123 -q "Any security vulnerabilities?"
57+
58+
# Markdown output for docs
59+
npx asyncreview review -u https://github.com/org/repo/pull/123 -q "Document these changes" -o markdown
60+
61+
# Scripting with JSON
62+
npx asyncreview review -u https://github.com/org/repo/pull/123 -q "Review" --quiet -o json | jq .answer
63+
```
64+
65+
## License
66+
67+
MIT

0 commit comments

Comments
 (0)