CodeSpider / comparisons
Evaluate an AI code reviewer on one PR
A reproducible pilot checklist for comparing self-hosted code review with existing linters, CI, and human review.
Compare reviewers on the same commits before adding a bot to your merge policy. Use a repository you can share with every configured model provider.
Run the same PR through each reviewer
| Check | What to record |
|---|---|
| Choose one known change | Use a merged PR from a test repository with a known behavior change. Pin the base and head commits, and note the expected issue before running reviewers. |
| Establish a baseline | Save the test and linter output. If a reviewer repeats it, count the finding as duplicate rather than additional coverage. |
| Compare evidence | Check the cited line and whether the reviewer inspected the caller or test outside the diff. Mark unsupported and incorrect findings separately. |
| Record the cost | Track elapsed time, model usage, and how many comments a maintainer had to verify or dismiss. Record the provider and model version alongside the results. |
| Recheck the fix | Run the same process on the fix commit. Check whether the reviewer replaced the old result or left stale threads or labels behind. |
The recorded Gitea example shows a useful finding alongside a wrong explanation. The offline benchmark has a pinned dataset and command if you need to reproduce the static baseline.
Keep CI and human review
| Check | Responsibility |
|---|---|
| Linter and CI | Run configured rules and tests. Keep them as required checks when they are your merge criteria. |
| CodeSpider | Reports line-level findings from static checks and model-assisted review; distinguish corroboration from reproduced behavior. |
| Human reviewer | Verifies the evidence, notices missing requirements and owns the merge decision. |
A clean AI review does not prove a change is safe. Keep the existing required checks and human approvals during the pilot.
CodeSpider’s boundaries
| Criterion | Documented behavior |
|---|---|
| Deployment model | Self-hosted Go daemon distributed as a container or standalone binary. |
| Source control target | Gitea tested end to end in a local environment. GitHub static token and App auth ship in v1.1.0 and are fixture-tested only. |
| Model selection | OpenAI-compatible chat completions endpoint with tool calling. Hosted endpoints receive repository context. |
| Code intelligence | Deterministic Go AST and type indexing, contract diffs, and Git history inspection. |
| Evidence reporting | Separates static checks, model corroboration and reproduced regressions. |
| Write and execution guardrails | File edits and isolated proof tests are opt-in. The bot can still post PR comments and commit statuses. |
| License | Apache-2.0 open source. |
Self-hosting the daemon does not stop it from sending source context to an external model. If that context must stay private, follow the private model guide.
Install for a pilot PR