Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
8a82aeb
fix: skip claude for the rest of a run once its credit is exhausted
hyochan Nov 29, 2026
326b083
fix: read changed files up to 1 MB around their diff
hyochan Nov 29, 2026
f994822
perf: record a review run without reading the action
hyochan Nov 29, 2026
940f0e1
ci: keep the production deploy key out of pull request jobs
hyochan Nov 29, 2026
6e623b0
fix: confirm custom backends and redact every provider key shape in t…
hyochan Nov 29, 2026
2b56686
fix: erase provider keys saved under a rotated server key
hyochan Nov 29, 2026
b8a7aa5
docs: match the docs and env example to the code
hyochan Nov 29, 2026
c117baf
perf: bound the tickets page queries
hyochan Nov 29, 2026
92355a5
perf: read admin ai logs through index ranges
hyochan Nov 29, 2026
57eb155
perf: run idle github recovery crons as mutations
hyochan Nov 29, 2026
e94de93
perf: run two backstop recovery crons every 15 minutes
hyochan Nov 29, 2026
8242fc9
fix: continue chat reservation cleanup while batches are full
hyochan Nov 29, 2026
c9faa7c
perf: back off the provider slot poll
hyochan Nov 29, 2026
fb4f26a
chore: remove the retired embedding billing path
hyochan Nov 29, 2026
58a7a35
chore: remove convex functions nothing references
hyochan Nov 29, 2026
ef8a194
chore: remove modules nothing imports
hyochan Nov 29, 2026
01ea958
chore: remove unused exports
hyochan Nov 29, 2026
02d01aa
test: remove tests that exercise no production code
hyochan Nov 29, 2026
dc36984
test: drop env vars no code reads from the test setup
hyochan Nov 29, 2026
50206a7
chore: remove unused translation keys
hyochan Nov 29, 2026
3cb7686
perf: skip push and periodic indexing while no assistant uses the index
hyochan Nov 29, 2026
4860369
perf: stop rewriting unchanged file maps on every index generation
hyochan Nov 29, 2026
29cd1d7
perf: walk several tree pages per index run
hyochan Nov 29, 2026
7b7007a
fix: delete indexing logs of earlier generations when one completes
hyochan Nov 29, 2026
61a9544
perf: evict stale file blobs in one mutation per cleanup run
hyochan Nov 29, 2026
10c2acd
chore: remove the unused paginated query helper
hyochan Nov 29, 2026
f0dbdf3
fix: approve only pull requests from trusted authors
hyochan Nov 29, 2026
c2df5bc
fix: retry the review status comment instead of leaving it stale
hyochan Nov 29, 2026
a90e69b
fix: parse code fences in review commands as commonmark does
hyochan Nov 29, 2026
3a6bfe6
fix: say on the pull request why a review failed and whether to retry
hyochan Nov 29, 2026
af030e9
docs: update agent instructions for the current test command and palette
hyochan Nov 29, 2026
e646d34
refactor: name the pull request review limits
hyochan Nov 29, 2026
456ed48
refactor: hold pull request review state in one session object
hyochan Nov 29, 2026
bcb33b5
refactor: move review source reading to sources.ts
hyochan Nov 29, 2026
2fcc3af
refactor: move the review conversation state to conversation.ts
hyochan Nov 29, 2026
a6604e7
refactor: move review preloading to preload.ts
hyochan Nov 29, 2026
063f701
refactor: move review answer parsing to candidates.ts
hyochan Nov 29, 2026
aaf97fb
refactor: move review verification to verification.ts
hyochan Nov 29, 2026
1700e22
refactor: move review coverage passes to coverage.ts
hyochan Nov 29, 2026
d1b0db9
refactor: move review second looks to secondLooks.ts
hyochan Nov 29, 2026
4d4fa78
refactor: dispatch review tool calls with a switch in tools.ts
hyochan Nov 29, 2026
782d38b
refactor: split reviewWithContext into its three steps
hyochan Nov 29, 2026
34b7665
refactor: share the review's account-limit check and open-request record
hyochan Nov 29, 2026
1a874df
refactor: measure the review conversation size in one place
hyochan Nov 29, 2026
84d7dcc
refactor: describe each review limit and session field
hyochan Nov 29, 2026
e56850d
refactor: throw the uninspected review error from one constant
hyochan Nov 29, 2026
14cc710
fix: report cli usage errors as json and redact them
hyochan Nov 29, 2026
855b0a7
fix: fail cli commands that did nothing or lost their session
hyochan Nov 29, 2026
dca766c
fix: name unreachable backends, expired tokens and the cli's way out
hyochan Nov 29, 2026
bae28fc
fix: keep a pinned cli working with newer settings and without git
hyochan Nov 29, 2026
e6f2177
docs: match the cli reference to its settings, aliases and token life…
hyochan Nov 29, 2026
ab76dd9
fix: re-verify the owner of organization installations
hyochan Nov 29, 2026
c3d6dbd
fix: return cached file content instead of storage urls
hyochan Nov 29, 2026
b6bbd50
fix: rate limit project api keys and narrow what they may write
hyochan Nov 29, 2026
288cbb0
fix: return a user profile only to that user
hyochan Nov 29, 2026
92f2560
fix: let viewers leave and expire invitations after 14 days
hyochan Nov 29, 2026
08a2ab0
fix: find maintainers from push collaborators only
hyochan Nov 29, 2026
39f1c12
fix: drop redelivered and malformed github webhooks
hyochan Nov 29, 2026
f2c9e3c
fix: limit assistant work each github user can trigger
hyochan Nov 29, 2026
69ce92c
fix: quiet mentions in assistant replies and delimit github text in p…
hyochan Nov 29, 2026
30caf1a
fix: post one neutral token limit notice a day per repository
hyochan Nov 29, 2026
a1b40cb
fix: check the installation owner when github reports a membership ch…
hyochan Nov 29, 2026
b01ccd9
refactor: share one admin check and the billing boundary helpers
hyochan Nov 29, 2026
e6cff54
refactor: stop reading retired embedding reservations in plan operations
hyochan Nov 29, 2026
1c4d70f
fix: release week-old unresolved ai usage and show held tokens
hyochan Nov 29, 2026
bd64fdd
fix: credit a token pack even when the ended pro period cannot settle
hyochan Nov 29, 2026
c3f8455
fix: accept a new pro subscription past an ended row and guard checkout
hyochan Nov 29, 2026
e8689d9
fix: keep payment log status out of admin edits and refund each credi…
hyochan Nov 29, 2026
b2ee496
fix: word the free refusal for trial and prepaid tokens and point pro…
hyochan Nov 29, 2026
b45d65e
fix: keep a reactivated free row on the utc month
hyochan Nov 29, 2026
f34af9f
fix: reserve at the fallback weight once the claude route has ended
hyochan Nov 29, 2026
6559905
fix: give pro trials no entitlement and keep unbound paid events for …
hyochan Nov 29, 2026
47fb711
docs: describe held tokens, the weekly release and the post-claude we…
hyochan Nov 29, 2026
49461d8
chore: remove the unreachable embedding publication path
hyochan Nov 29, 2026
4e63a51
chore: search learnings by keyword without the retired vector merge
hyochan Nov 29, 2026
5b04257
chore: remove the unused embedding policy downgrade mutation
hyochan Nov 29, 2026
e42ebe2
test: update the development e2e runner for keyword indexing
hyochan Nov 29, 2026
0c0cc15
refactor: check classified review failure messages at their throw sites
hyochan Nov 29, 2026
6c8fb4f
refactor: build the generation failure record in errors.ts
hyochan Nov 29, 2026
3ec2648
refactor: move review scope resolution out of generate
hyochan Nov 29, 2026
e52aa7b
refactor: move group review recovery and coverage counters out of gen…
hyochan Nov 29, 2026
06c20b8
refactor: type the stored review proposal and parse it once in publish
hyochan Nov 29, 2026
7ed50c7
refactor: move evidence revalidation and review posting out of publish
hyochan Nov 29, 2026
da3101b
refactor: type the pull request author association
hyochan Nov 29, 2026
8bd5e63
fix: offer a retry when a review skipped a changed file it could read
hyochan Nov 29, 2026
506304b
fix: grant the trial before a review catch-up checks the balance
hyochan Nov 29, 2026
37dbca8
chore: remove the retired openai embedding pass
hyochan Nov 29, 2026
27269d3
fix: throw user-actionable refusals as readable convex errors
hyochan Nov 29, 2026
3431cb6
fix: show readable errors instead of redacted server errors
hyochan Nov 29, 2026
bc9d8a4
fix: recover from stale chunks, crash-safe error page and unknown tic…
hyochan Nov 29, 2026
0226cf1
fix: confirm destructive team and repository actions and block confli…
hyochan Nov 29, 2026
1d2564d
fix: translate remaining labels, dates and plans and correct review a…
hyochan Nov 29, 2026
7684c6f
chore: regenerate the convex api types
hyochan Nov 29, 2026
ade2eed
fix: bump the cli to 0.6.0 and align its paging, sign-in and timeout …
hyochan Nov 29, 2026
a64926a
fix: build pull request previews without secrets and publish from a s…
hyochan Nov 29, 2026
430323c
fix: translate pagination, name invalid invite usernames and share th…
hyochan Nov 29, 2026
6c369a1
docs: lead llms.txt with pull request reviews and drop removed examples
hyochan Nov 29, 2026
66fd8f0
fix: limit only new assistant work from untrusted GitHub users
hyochan Nov 29, 2026
4aae75a
fix: let an assistant reply notify at most one maintainer
hyochan Nov 29, 2026
c5c4a70
refactor: move the follow-up prompt renderer next to the untrusted te…
hyochan Nov 29, 2026
7d691b1
fix: count project api key requests before running them
hyochan Nov 29, 2026
3b44c60
fix: tell cli 0.5.x to update when it reads file content
hyochan Nov 29, 2026
84db81a
perf: pass the previous snapshot page's last path instead of reading …
hyochan Nov 29, 2026
83b9d9f
docs: document assistant limits and the optional members permission
hyochan Nov 29, 2026
99ba2ba
fix: send repository list and ticket delete refusals as user errors
hyochan Nov 29, 2026
b9a120c
test: count the restored file content query in the cli catalog
hyochan Nov 29, 2026
aac040f
docs: describe the preview build variable and secret split
hyochan Nov 29, 2026
e39c8b1
fix: never repeat a status comment post github may have accepted
hyochan Nov 29, 2026
dbef5b6
fix: approve only pull requests whose author can push to the repository
hyochan Nov 29, 2026
6429aa5
fix: correct stale review limit texts and full review advice
hyochan Nov 29, 2026
a51312a
refactor: move review source and markdown helpers to their own modules
hyochan Nov 29, 2026
cc04b5e
fix: hold review batches at the model weight of the current time
hyochan Nov 29, 2026
b7fa578
fix: return billing and review refusals as user errors
hyochan Nov 29, 2026
18defaf
fix: retry a pro subscription while its ended period is still settling
hyochan Nov 29, 2026
df942f1
feat: report open payment reviews daily and let an admin resolve one
hyochan Nov 29, 2026
4d5a668
docs: explain how batched review checks count held tokens
hyochan Nov 29, 2026
133a376
fix: keep a credit's note when its refund gives none
hyochan Nov 29, 2026
42d5727
refactor: share the utc month bounds helper
hyochan Nov 29, 2026
b01d597
fix: keep a pro trial for review instead of adding a canceled pro row
hyochan Nov 29, 2026
e34b113
fix: explain a pending pro settlement at checkout and complete review…
hyochan Nov 29, 2026
658edef
fix: count edits that start new assistant work toward the trigger limit
hyochan Nov 29, 2026
3156647
fix: check the author's push access before claiming a review
hyochan Nov 29, 2026
f59d522
fix: reopen a resolved payment review when its event fails again
hyochan Nov 29, 2026
8799c45
fix: refuse dead project api keys without counting their requests
hyochan Nov 29, 2026
d1b1dfe
fix: trust other editors for the trigger limit and clear a reopened r…
hyochan Nov 29, 2026
93e24ba
fix: leave code in assistant answers unchanged when quieting mentions
hyochan Nov 29, 2026
51e9be9
fix: hide file maps whose path left the tree before their cleanup
hyochan Nov 29, 2026
adb928a
fix: credit a token pack before settling the ended pro period it covers
hyochan Nov 29, 2026
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
4 changes: 2 additions & 2 deletions .claude/commands/review-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Based on changed files, run these checks BEFORE committing:
Always run the full CI-equivalent suite locally before pushing:

```sh
bun run typecheck && bun run lint && bun run format:check && bun test && bun run build
bun run typecheck && bun run lint && bun run format:check && bun run test && bun run build
```

## Project Conventions

When reviewing, check these project-specific rules:

- **State management**: Use `@preact/signals-react` for global state, `useState` for local state
- **UI**: No border-radius, black/white monochrome style
- **UI**: No border-radius; black and white with the `#FF8C42` accent and status colors
- **Icons**: Use `@icons-pack/react-simple-icons` for brand icons
- **Loading states**: Always use `<LoadingIndicator />` component
- **Convex queries**: Use `.withIndex()` instead of `.filter()`
Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
### 6. 프로젝트 컨벤션

- UI: border-radius 없음 (rectangular)
- Color: Black/white monochrome
- Color: Black and white with the `#FF8C42` accent and status colors
- Font: Space Grotesk (brand), Inter (body)
- State: Signals (global), useState (local)

Expand Down
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ GITHUB_WEBHOOK_SECRET=
# Site URL (Backend - Convex env vars)
# Production requires the exact public HTTPS origin without a trailing slash.
SITE_URL=http://localhost:5173
# Optional origin for the "Verify GitHub access" callback; defaults to CONVEX_SITE_URL.
CUSTOM_AUTH_SITE_URL=
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copilot Instructions for Gitdog Project

**Objective**: Provide guidelines and best practices for building Gitdog, an AI-powered GitHub issue and discussion assistant, including Convex database patterns, React components, AI workflows, Lemon Squeezy payments, and internationalization.
**Objective**: Provide guidelines and best practices for building Gitdog, an AI-powered GitHub pull request reviewer and issue and discussion assistant, including Convex database patterns, React components, AI workflows, Lemon Squeezy payments, and internationalization.

**File Scope**: Applies to files matching the patterns: `**/*.ts`, `**/*.tsx`, `**/*.js`, `**/*.jsx`

Expand Down Expand Up @@ -166,7 +166,7 @@

- Use Tailwind CSS classes for styling
- Follow the existing design system:
- Use the existing black and white monochrome palette
- Use the existing black and white palette with the `#FF8C42` accent and status colors
- Spacing: Use consistent spacing scale
- Typography: Follow established font sizes
- **No rounded corners**: All border-radius values are set to 0
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,33 +94,3 @@ jobs:
# once picomatch ships a fix.
- name: Run security audit
run: bun audit --ignore=GHSA-fc5q-39xc-vjpf

# Runs the production Convex push without deploying (bundling, typecheck and
# schema validation against production data), so a merge cannot fail there.
convex-preflight:
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "26.13.0"

- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.4

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Dry-run the production Convex deploy
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
run: bunx convex deploy --dry-run
6 changes: 4 additions & 2 deletions .github/workflows/deploy-convex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
deploy:
name: Deploy Convex functions
runs-on: ubuntu-latest
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

Expand All @@ -33,6 +31,8 @@ jobs:

- name: Verify production runtime configuration
shell: bash
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
run: |
set -euo pipefail

Expand Down Expand Up @@ -139,6 +139,8 @@ jobs:
run: bun run typecheck

- name: Deploy Convex functions
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
run: |
if [ -z "$CONVEX_DEPLOY_KEY" ]; then
echo "::error::CONVEX_DEPLOY_KEY secret not set. Create a production Convex deploy key and add it to this repository's Actions secrets."
Expand Down
43 changes: 38 additions & 5 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ on:
- ".github/scripts/**"
- ".github/workflows/deploy-preview.yml"
permissions:
checks: write
contents: read
pull-requests: write

jobs:
build_and_preview:
build_preview:
name: Build preview without secrets
# Dependabot pull requests do not receive the hosting secrets.
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
Expand All @@ -40,10 +41,12 @@ jobs:
with:
bun-version: 1.4.4

# The development Convex URL is public (the preview bundle contains it),
# so it is a repository variable rather than a secret.
- name: Verify frontend runtime configuration
shell: bash
env:
VITE_CONVEX_URL: ${{ secrets.VITE_CONVEX_DEV_URL }}
VITE_CONVEX_URL: ${{ vars.VITE_CONVEX_DEV_URL }}
run: |
set -euo pipefail
if ! DEPLOY_URL_TO_VALIDATE="$VITE_CONVEX_URL" bun run .github/scripts/validateDeployUrl.ts; then
Expand All @@ -55,9 +58,39 @@ jobs:

- run: bun run build
env:
VITE_CONVEX_URL: ${{ secrets.VITE_CONVEX_DEV_URL }}
VITE_CONVEX_URL: ${{ vars.VITE_CONVEX_DEV_URL }}
VITE_GITHUB_APP_SLUG: gitdogbot-dev

- name: Upload preview frontend artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: preview-frontend
path: dist
if-no-files-found: error
retention-days: 1

deploy_preview:
name: Publish prebuilt preview
# Never checks out or runs pull request code: the hosting configuration
# comes from the base commit and the site from the build artifact.
needs: build_preview
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.base.sha }}
persist-credentials: false

- name: Download preview frontend artifact
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: preview-frontend
path: dist

- uses: FirebaseExtended/action-hosting-deploy@500ac625ca2dd40cbd15f7659af953801858032a # v0.11.0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
needs: deploy_convex
runs-on: ubuntu-latest
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

Expand All @@ -125,6 +123,8 @@ jobs:
run: bun install --frozen-lockfile

- name: Verify immutable settlement configuration
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
run: |
set -euo pipefail

Expand Down
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ Gitdog is an AI-powered GitHub assistant for repository automation. It is built
- Never add Claude, Codex, or other agent co-author trailers.
- Preserve unrelated dirty worktree changes.
- Inspect untracked files before deleting them; discard only files that are clearly unnecessary.
- Use branch prefix `codex/` unless the user requests another prefix.
- Name branches with a conventional prefix such as `feat/` or `fix/` unless the user requests another.

## Validation

- For TypeScript or Convex changes, run `bun run typecheck` and `bun run lint`.
- For broad shared behavior, also run `bun test` when available.
- For broad shared behavior, also run `bun run test`.
- For workflow-only changes, run Prettier on touched YAML and Markdown files.
- Keep generated Convex files only when intentionally updated.

Expand All @@ -53,7 +53,7 @@ Gitdog is an AI-powered GitHub assistant for repository automation. It is built

## Frontend

- Follow the existing sharp rectangular monochrome design system.
- Follow the existing sharp rectangular design system: black and white with the `#FF8C42` accent and status colors.
- Use `@preact/signals-react` for global state and React `useState` for local component state.
- Put global signals in `src/utils/signals/`.
- Call `useSignals()` in components that read signal values.
Expand Down
19 changes: 10 additions & 9 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

## Project Overview

**Gitdog** is an AI-powered GitHub issue and discussion assistant.
**Gitdog** is an AI-powered GitHub pull request reviewer and issue and discussion assistant.

- Repository-aware issue and discussion formatting, answers, and maintainer tagging
- Repository-aware pull request reviews, issue and discussion formatting, answers, and maintainer tagging
- Claude Opus 5.5 generation with GPT-6.2 Sol fallback (see [docs/ai-models.md](docs/ai-models.md))
- Keyword repository index plus AI repository tools (search, read file) for code search
- Private workspace per user
- Team workspace: owners invite members to their repositories (`repositoryMembers`, `invitations`)
- Free and Pro token quotas with optional prepaid token packs
- GitHub App integration for repository access and webhook-driven synchronization
- Lemon Squeezy subscription and token-pack settlement
Expand Down Expand Up @@ -116,12 +116,12 @@ function Counter() {
- Screen-level components (페이지 단위 컴포넌트) should be placed directly in the page folder
- Don't create separate `components` folders for screen-level components
- Only use `components` folders for small, reusable UI components
- Example: `/pages/code/CodeHero.tsx` NOT `/pages/code/components/CodeHero.tsx`
- Example: `/pages/home/LandingPage.tsx` NOT `/pages/home/components/LandingPage.tsx`

## UI Design Guidelines

- **No border-radius**: Keep all UI elements rectangular (네모낳게) - no rounded corners
- **Color scheme**: Black and white monochrome style
- **Color scheme**: Black and white monochrome style with accent color `#FF8C42` and status colors (success, warning, danger, info)
- **Typography**:
- Brand/Headers: 'Space Grotesk', sans-serif (font-weight: 700)
- Body/Text: 'Inter', sans-serif (font-weight: 400)
Expand All @@ -136,13 +136,14 @@ function Counter() {

## Project-Specific Rules

- This is an AI-powered GitHub issue and discussion assistant
- Repository-based access control (only owner can see their repos)
- This is an AI-powered GitHub pull request reviewer and issue and discussion assistant
- Repository-based access control (only the owner and invited members can see a repository)
- AI automation features:
- Pull request reviews
- Issue and discussion formatting
- Repository-grounded answers
- Maintainer tagging for code-change requests
- Monthly token limits tied to subscription tiers
- Token limits tied to subscription tiers: a one-time trial on Free (free periods that start before 2026-12-01 keep the former monthly allowance), a monthly allowance on Pro
- Main tech stack: React, TypeScript, Convex, Tailwind CSS, Lemon Squeezy
- Navigation: Workspace (/), Tickets (/tickets), Usage (/usage)
- All user-facing text should start with capital letters (e.g., "Connect repository" not "connect repository")
Expand All @@ -166,7 +167,7 @@ function Counter() {
- `api.ticketActions.query.listByTicket` for `convex/ticketActions/query.ts`
- Core database tables (see `convex/schema.ts` for the full list):
- `repositories`: Repository settings and indexing lifecycle
- `tickets`: GitHub issue and discussion records
- `tickets`: GitHub issue, discussion and pull request records
- `ticketActions`: Assistant work, approvals, and follow-up history
- `subscriptions`: User subscription plans and token entitlements
- `userProfiles`: User profile information from GitHub
Expand Down
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ When you change public Convex functions, also run `bun run check:api` (and
regenerate the CLI catalog with `bun packages/cli/scripts/sync-api.mjs` if it
reports drift). For CLI changes, run `bun run typecheck:cli && bun run test:cli`.

Pull request jobs never receive the production Convex deploy key. Before merging
a change to `convex/`, a maintainer runs `bunx convex deploy --dry-run` locally
against production. After the merge, the deploy workflow pushes Convex, which
validates the schema against production data, before it publishes the frontend.

## Pull requests

- Use [Conventional Commits](https://www.conventionalcommits.org) with a
Expand Down
32 changes: 23 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ still keep it from approving.

A pull request review with no findings and nothing left open needs no approval.
It posts at once and
approves the reviewed commit when every changed file was reviewed, no review
thread from anyone is open, no reviewer has requested changes, and nothing from
the discussion is left unaddressed. A later push, including updating the
approves the reviewed commit when the pull request's author has write access
to the repository, every changed file was
reviewed, no review thread from anyone is open, no reviewer has requested
changes, and nothing from the discussion is left unaddressed. Anyone else's
pull request, such as one from a fork, gets the same review as a comment,
never an approval. A later push, including updating the
branch, withdraws that approval until the new commits are reviewed.

## Pull request commands
Expand All @@ -126,7 +129,8 @@ After that, ask for more in a pull request comment or from the CLI:
(`@coderabbitai review @gitdogai review`). Replies inside a review thread
are not read.
- **Who**: collaborators can run every command. The pull request author, who
may work from a fork, can run all but `full review`.
may work from a fork, can run `review` and `help`, but not `full review` or
`resolve`.
- **Other names**: `@gitdogbot` (the app's former name), `@gitdogdev` and
`@gitdog` work too, in commands and in issue or discussion mentions. `@gitdog`
also notifies the GitHub user of that name, so `@gitdogai` is preferred.
Expand All @@ -141,14 +145,24 @@ After that, ask for more in a pull request comment or from the CLI:
such as Dependabot are not reviewed.

In an issue or discussion, mention `@gitdogai` with a question to get a reply
grounded in the repository.
grounded in the repository. Mentions in quoted replies and code are ignored.
Each new issue or discussion, content edit and mention counts toward the same
per-person limit as pull request commands (10 an hour or 40 a day per
repository, then a 24-hour pause). Edits are answered once they settle for 90
seconds, and content written or edited by bots is ignored. A reply notifies
only the issue author, the person it answers and the repository's maintainers;
with approval off, a reply that mentions anyone else or contains an image or
raw HTML still waits for your approval. When your token limit is reached,
Gitdog says so on at most one issue or discussion a day per repository,
without your usage numbers.

## Plans

Start with 100K one-time trial tokens, no credit card required. After that, use
Pro (2.4M tokens a month), prepaid token packs, or your own Anthropic or OpenAI
API key. Gitdog runs on Claude Opus 5.5, and each Opus token counts as 2 Gitdog
tokens. Work on your own key never uses Gitdog tokens. See
API key. Gitdog runs on Claude Opus 5.5, where each token counts as 2 Gitdog
tokens, until 2027-01-17 15:00 UTC, and on GPT-6.2 Sol after that or when
Claude credit runs out. Work on your own key never uses Gitdog tokens. See
[AI models and pricing](docs/ai-models.md).

## Your Anthropic and OpenAI keys
Expand All @@ -162,8 +176,8 @@ If you bring your own provider key, this is exactly how Gitdog handles it:
or browser storage, and the CLI never reads your local Claude Code or Codex
credentials (`~/.claude`, `~/.codex`, `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`).
- **Transport**: HTTPS, with redirects refused, to the Gitdog backend you use
(plain HTTP only to a localhost backend you chose yourself). The CLI names
any non-default backend before it reads the key.
(plain HTTP only to a localhost backend you chose yourself). The CLI asks
you to confirm any non-default backend before it reads the key.
- **Validation**: one request to the provider's own model endpoint; the
response body is discarded.
- **Storage**: encrypted with AES-256-GCM, a fresh IV per save, and bound to
Expand Down
Loading