Skip to content

Developer documentation

Lyaris Quickstart

Lyaris reviews pull requests in three stages. Changed files are first parsed into an AST. The changed code and its downstream contracts are then submitted to the Claude API for semantic reasoning. Finally, a test is generated to reproduce each finding before review comments are posted.

1

How a review works

  1. Step 1: A pull request is opened or updated, which triggers the GitHub Action.
  2. Step 2: Lyaris builds an in-memory dependency graph from the changed files, API contracts, and database migrations.
  3. Step 3: The Claude API analyzes the graph to identify race conditions and breaking API changes.
  4. Step 4: Each finding is converted into an executable Vitest or PyTest assertion in CI.
  5. Step 5: Only findings that reproduce are posted as GitHub pull request review comments.
2

Add the GitHub Action

Save this workflow file as .github/workflows/lyaris.yml and add LYARIS_API_KEY to your repository secrets.

.github/workflows/lyaris.yml
name: Lyaris PR Review
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  review:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Run Lyaris review
        run: npx lyaris review --base ${{ github.event.pull_request.base.sha }}
        env:
          LYARIS_API_KEY: ${{ secrets.LYARIS_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3

Configure checks

Add an optional .lyaris.yml configuration file to the root of your repository to tune analysis paths and test runners.

.lyaris.yml
# .lyaris.yml
include:
  - "src/**"
  - "migrations/**"
exclude:
  - "**/*.generated.ts"
checks:
  race_conditions: true
  api_contracts: true
  test_synthesis: vitest   # or pytest
engine:
  provider: claude-api     # reasoning layer
  retention: none          # no code is stored
4

Data handling

Repository diffs are analyzed in memory only for the duration of the review and are never written to persistent storage or logs. Read our full Privacy Policy for details.

Need help with setup?

Our engineering team provides hands-on setup support for private beta participants.

Contact engineering