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.
How a review works
- Step 1: A pull request is opened or updated, which triggers the GitHub Action.
- Step 2: Lyaris builds an in-memory dependency graph from the changed files, API contracts, and database migrations.
- Step 3: The Claude API analyzes the graph to identify race conditions and breaking API changes.
- Step 4: Each finding is converted into an executable Vitest or PyTest assertion in CI.
- Step 5: Only findings that reproduce are posted as GitHub pull request review comments.
Add the GitHub Action
Save this workflow file as .github/workflows/lyaris.yml and add LYARIS_API_KEY to your repository secrets.
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 }} Configure checks
Add an optional .lyaris.yml configuration file to the root of your repository to tune analysis paths and test runners.
# .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 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.