Skip to main content

A code review agent optimized for following strict guidelines

Project description

CodeYak

CodeYak

AI-powered code review with configurable guidelines.

PyPI Python


Installation

uv tool install codeyak

CLI Usage

# Review local uncommitted changes
yak review

# Review a GitLab merge request
yak mr <MR_ID> <PROJECT_ID>

On first run, yak prompts for configuration (Azure OpenAI credentials, GitLab token).

GitLab CI

codeyak:
  stage: review
  image: python:3.12-slim
  before_script:
    - pip install uv && uv tool install codeyak
  script:
    - yak mr $CI_MERGE_REQUEST_IID $CI_PROJECT_ID
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'

Required CI/CD variables: GITLAB_TOKEN, AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, AZURE_DEPLOYMENT_NAME

Guidelines

CodeYak uses .codeyak/*.yaml files for review guidelines. Without custom files, it uses the default preset.

Built-in Presets

  • default - includes code-quality
  • security - injection prevention, auth, cryptography, secrets
  • code-quality - SRP, naming, organization, error handling

Custom Guidelines

.codeyak/my-rules.yaml:

guidelines:
  - label: rate-limiting
    description: All API endpoints must include rate limiting.

Include Presets

includes:
  - builtin:security
  - builtin:code-quality

guidelines:
  - label: api-timeout
    description: All external API calls must have timeout limits.

Environment Variables

# Required
AZURE_OPENAI_API_KEY=<key>
AZURE_OPENAI_ENDPOINT=<endpoint>
AZURE_DEPLOYMENT_NAME=gpt-4o

# For GitLab MR reviews
GITLAB_URL=https://gitlab.com  # optional, defaults to gitlab.com
GITLAB_TOKEN=<token>

# Optional observability
LANGFUSE_SECRET_KEY=<key>
LANGFUSE_PUBLIC_KEY=<key>
LANGFUSE_HOST=https://cloud.langfuse.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeyak-0.0.13.tar.gz (614.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeyak-0.0.13-py3-none-any.whl (77.2 kB view details)

Uploaded Python 3

File details

Details for the file codeyak-0.0.13.tar.gz.

File metadata

  • Download URL: codeyak-0.0.13.tar.gz
  • Upload date:
  • Size: 614.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for codeyak-0.0.13.tar.gz
Algorithm Hash digest
SHA256 54a059ec61ff7467a21f0eca69ad141ae0703904a15f1026374347f40fff090f
MD5 01145a572f6e92a01e2736de8eada786
BLAKE2b-256 dd55e880b0ab3bcb4a730637d57595934014f4396c43a8514d860eb6d95768b5

See more details on using hashes here.

File details

Details for the file codeyak-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: codeyak-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 77.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for codeyak-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd373877fe95c8fcf3adf438348107d233279d663338e72e7a9b39b449e00f6
MD5 8fefaeaa538793d0bf8fee938a892e43
BLAKE2b-256 f26a8358dc77857ab2fc41d8bd5f02fffe378f54a7835e19aad238d5860dc30b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page