Skip to content

Commit 2109cdf

Browse files
committed
feat: add AtomGit/GitCode support for PR and Issue reviews
- Add AtomGit/GitCode URL parsing and API integration - Support private-token authentication for AtomGit API - Add atomgit_fetcher.py for URL parsing and data fetching - Add cr/atomgit.py for AtomGit API wrapper - Update CLI to detect and route AtomGit URLs - Add skills/atomgit/SKILL.md for agent skill definition - Update .env.example with AtomGit configuration - Update README.md with AtomGit usage examples Supports both atomgit.com and gitcode.com domains.
1 parent 0c9cd43 commit 2109cdf

File tree

8 files changed

+1138
-70
lines changed

8 files changed

+1138
-70
lines changed

.env.example

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
# Gemini API Key (required)
2-
# GitHub Token (required for higher rate limits)
1+
# Gemini API Key (required for Gemini models)
32
GEMINI_API_KEY=your-gemini-api-key
3+
4+
# GitHub Token (for private repos / higher rate limits)
45
GITHUB_TOKEN=your-github-token
56

7+
# AtomGit/GitCode Token (for AtomGit private repos)
8+
ATOMGIT_TOKEN=your-atomgit-token
9+
610
# LLM Models (LiteLLM format)
11+
# For Gemini:
12+
# MAIN_MODEL=gemini/gemini-3-pro-preview
13+
# SUB_MODEL=gemini/gemini-3-flash-preview
14+
# For GLM via Anthropic compatible API:
15+
# ANTHROPIC_API_KEY=your-zhipu-api-key
16+
# ANTHROPIC_API_BASE=https://open.bigmodel.cn/api/anthropic
17+
# MAIN_MODEL=anthropic/glm-5
18+
# SUB_MODEL=anthropic/glm-5
719
MAIN_MODEL=gemini/gemini-3-pro-preview
820
SUB_MODEL=gemini/gemini-3-flash-preview
921

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

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AsyncReview
22

3-
**Agentic Code Review for GitHub PRs and Issues**
3+
**Agentic Code Review for GitHub and AtomGit PRs and Issues**
44

55
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.
66

@@ -64,13 +64,21 @@ npx skills add AsyncFuncAI/AsyncReview
6464

6565
### Public Repositories
6666

67-
For public repos, you only need a Gemini API key.
67+
For GitHub public repos, you only need a Gemini API key.
6868

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

74+
For **AtomGit/GitCode**, a token is required even for public repos:
75+
76+
```bash
77+
export ATOMGIT_TOKEN="your-token"
78+
npx asyncreview review --url https://atomgit.com/org/repo/pulls/456 -q "Review this PR"
79+
npx asyncreview review --url https://gitcode.com/org/repo/pull/789 -q "Check for bugs"
80+
```
81+
7482
### Private Repositories
7583

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

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

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

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

0 commit comments

Comments
 (0)