Skip to main content Switch to mobile version codespy-ai 2.4.4 Code review agent powered by DSPy
pip install codespy-ai==2.4.4 Copy PIP instructions
An open-source AI reviewer that catches bugs, improves code quality, and integrates directly into your PR workflow, without sacrificing control or security.
Using Homebrew (macOS/Linux)
Using Poetry (for development)
Most AI code reviewers are:
❌ Risky for sensitive codebases
🧩 Extensible architecture
Built for engineering teams that care about correctness, security, and control.
🔒 Security Analysis — Detects common vulnerabilities (injection, auth issues, data exposure) with CWE references
🐛 Bug Detection — Identifies logic errors, null references, resource leaks, edge cases
📝 Documentation Review — Checks for missing docstrings, outdated comments, incomplete docs
🌐 SEO & AI-Visibility Review (opt-in) — Flags website changes that hurt crawling, indexing, ranking, or citation by search engines and AI assistants (client-only content, noindex, missing redirects, robots/bot rules, structured data, hreflang, Core Web Vitals). See SEO Review
🛠️ Implementation Plan (opt-in) — Turns the review's findings into one fix plan across every scope (Goal, Decisions, Tasks, Risks, Validation). Steps are ordered by dependency, so a shared library is fixed before the services using it, and grouped per scope. Posted as a collapsible section in the PR review or full-path report. See Implementation Plan
🤖 Implementation Agent (opt-in) — Carries out the plan by editing the code (no command execution). Opens a fix PR against the reviewed PR's branch, or commits the changes to the full-path report PR. See Implementation Agent
🔍 Intelligent Scope Detection — Automatically identifies code scopes (frontend, backend, infra, microservice in monorepo, etc.)
🧠 Cross-Review Memory — Agents learn patterns, constants, and domain knowledge from past reviews of the same codebase
💰 Cost Tracking — Track LLM calls, tokens, and costs per review
🤖 Model Agnostic — Works with OpenAI, AWS Bedrock, Anthropic, Gemini, Ollama, and more via LiteLLM
🐳 Docker Ready — Run locally or in the cloud with Docker
GitHub & GitLab — Works with both platforms, auto-detects from URL
🖥️ Local Reviews — Review local git changes without GitHub/GitLab — diff against any branch, ref, or review uncommitted work
📂 Full-Path Reviews — Review existing code with no PR: codespy review-path sparse-clones a repo path, reviews every scope in it, and opens a PR with the report. See Full-Path Review
🧩 MCP Server — IDE integration via Model Context Protocol — trigger reviews from AI coding assistants without leaving your editor
🔌 GitHub Action — One-line integration for automatic PR reviews
pip install codespy-ai Using Homebrew (macOS/Linux)
brew tap khezen/codespy brew install codespy Using Docker
# Pull the pre-built image from GitHub Container Registry docker pull ghcr.io/khezen/codespy:latest # Or build locally docker build -t codespy . Using Poetry (for development)
# Clone the repository git clone https://github.com/khezen/codespy.git cd codespy # Install dependencies poetry install # Or install only production dependencies poetry install --only main Quick Start
Get up and running in 30 seconds:
# 1. Set your Git token (or let codespy auto-discover from gh/glab CLI) export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx # For GitHub # OR export GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx # For GitLab # 2. Set your LLM provider (example with Anthropic) export DEFAULT_MODEL=anthropic/claude-opus-4-6 export ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxx # 3. Review a PR or MR! codespy review https://github.com/owner/repo/pull/123 # OR codespy review https://gitlab.com/group/project/-/merge_requests/123 # Or review existing code with no PR: codespy opens a PR with the report codespy review-path https://github.com/owner/repo --path services/api codespy auto-discovers credentials from standard locations (~/.aws/credentials, gh auth token, glab auth token, etc.) - see Configuration for details.
code-review ai dspy llm github pull-request security bug-detection static-analysis
Development Status 5 - Production/Stable
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Release files for codespy-ai 2.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 701.9 kB
Release files / codespy_ai-2.4.4.tar.gz
Release files / codespy_ai-2.4.4-py3-none-any.whl
Security for codespy-ai 2.4.4
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 25, 2026 2 release files No provenance
Nov 24, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 24, 2026 2 release files No provenance
Oct 23, 2026 2 release files No provenance
Oct 21, 2026 2 release files No provenance
Oct 20, 2026 2 release files No provenance
Oct 5, 2026 2 release files No provenance
Oct 3, 2026 2 release files No provenance
Sep 19, 2026 2 release files No provenance
Sep 17, 2026 2 release files No provenance
Sep 16, 2026 2 release files No provenance
Sep 14, 2026 2 release files No provenance
Sep 11, 2026 2 release files No provenance
Sep 1, 2026 2 release files No provenance
Aug 31, 2026 2 release files No provenance
Aug 30, 2026 2 release files No provenance
Aug 29, 2026 2 release files No provenance
Aug 18, 2026 2 release files No provenance
Aug 17, 2026 2 release files No provenance
Mar 9, 2026 2 release files No provenance
Mar 2, 2026 2 release files No provenance
Feb 21, 2026 2 release files No provenance
Feb 15, 2026 2 release files No provenance
Feb 14, 2026 2 release files No provenance
Feb 9, 2026 2 release files No provenance
Feb 8, 2026 2 release files No provenance
Feb 7, 2026 2 release files No provenance
Feb 5, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




