Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Gemini API Key (required)
# GitHub Token (required for higher rate limits)
# Gemini API Key (required for Gemini models)
GEMINI_API_KEY=your-gemini-api-key

# GitHub Token (for private repos / higher rate limits)
GITHUB_TOKEN=your-github-token

# AtomGit/GitCode Token (for AtomGit private repos)
ATOMGIT_TOKEN=your-atomgit-token

# LLM Models (LiteLLM format)
# For Gemini:
# MAIN_MODEL=gemini/gemini-3-pro-preview
# SUB_MODEL=gemini/gemini-3-flash-preview
# For GLM via Anthropic compatible API:
# ANTHROPIC_API_KEY=your-zhipu-api-key
# ANTHROPIC_API_BASE=https://open.bigmodel.cn/api/anthropic
# MAIN_MODEL=anthropic/glm-5
# SUB_MODEL=anthropic/glm-5
MAIN_MODEL=gemini/gemini-3-pro-preview
SUB_MODEL=gemini/gemini-3-flash-preview

Expand All @@ -25,4 +37,3 @@ CR_CACHE_DIR=~/.cr
# API Server (for Part 2)
API_HOST=127.0.0.1
API_PORT=8000

17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AsyncReview

**Agentic Code Review for GitHub PRs and Issues**
**Agentic Code Review for GitHub and AtomGit PRs and Issues**

AsyncReview uses Recursive Language Models (RLM) to go beyond simple diff analysis. It autonomously explores your repository, fetches relevant context, and verifies its findings in a secure sandbox before answering.

Expand Down Expand Up @@ -64,13 +64,21 @@ npx skills add AsyncFuncAI/AsyncReview

### Public Repositories

For public repos, you only need a Gemini API key.
For GitHub public repos, you only need a Gemini API key.

```bash
export GEMINI_API_KEY="your-key"
npx asyncreview review --url https://github.com/org/repo/pull/123 -q "Review this"
```

For **AtomGit/GitCode**, a token is required even for public repos:

```bash
export ATOMGIT_TOKEN="your-token"
npx asyncreview review --url https://atomgit.com/org/repo/pulls/456 -q "Review this PR"
npx asyncreview review --url https://gitcode.com/org/repo/pull/789 -q "Check for bugs"
```

### Private Repositories

For private repos, you also need a GitHub token.
Expand All @@ -92,10 +100,11 @@ For private repos, you also need a GitHub token.
## Configuration

**Required:**
- **Gemini API Key:** Get one from Google AI Studio. Set as `GEMINI_API_KEY`.
- **LLM API Key:** Gemini API Key (`GEMINI_API_KEY`) or Anthropic-compatible API (e.g., GLM via `ANTHROPIC_API_KEY` + `ANTHROPIC_API_BASE`)

**Optional:**
- **GitHub Token:** Required for private repositories to access file contents. Set as `GITHUB_TOKEN`.
- **GitHub Token:** For private repos. Set as `GITHUB_TOKEN`.
- **AtomGit/GitCode Token:** For AtomGit private repos. Set as `ATOMGIT_TOKEN`.

## For Agents (Claude, Cursor, OpenCode, Gemini, Codex, etc.)

Expand Down
Loading