Skip to content
Clara
Esc
↑↓navigate↵open⌘Jpreview

The best maintainer you’ll ever work with

Clara helps maintain your GitHub repos. She reviews and fixes pull requests, triages and fixes issues, answers questions about your code, and handles security alerts and production errors.

Want to use Clara in your repos? Stay tuned.

Pull requests

Reviewed, fixed, and approved

Every pull request gets a review as it opens or changes. Clara fixes what's in scope itself, so by the time you look, what's left is yours to decide.

acme / web

Code
Issues12
Pull requests4
Actions
Security7

Retry webhook deliveries that time out #482

Mergedtaylor merged 5 commits into main
  1. clara reviewed these changes

    2 blocking problems, 3 minor notes

    How this change fits together

    enqueuedeliverretry

    src/deliver.ts

    41 - await send(request)

    41 + await retry(() => send(request))

    #1 Blocking: retries aren't capped, so an endpoint that's down is retried forever.

  2. clara pushed 1 commit

    Cap retries at five attempts9f2c1ab

  3. clara resolved 4 threads from coderabbitai

    Fixed 3, explained why the fourth isn't worth it.

  4. typecheck failed on 9f2c1ab

  5. clara fixed the failing check

    Pass the retry options to deliver4e1d7b0

  6. clara approved these changes

    All checks passed on 4e1d7b0.

  7. taylor reviewed

    Two small things inline. clara, apply these.

  8. clara pushed 1 commit

    Log each retry's attempt number2b8e6d1

    Resolved both of taylor's threads.

  9. taylor merged commit 7c3a9e2 into main

  10. clara commented

    This shipped in web@2.4.0.

Reviews pull requests
Reviews every pull request, Dependabot's included, and sorts what she finds into blocking problems and minor notes. What's left for you is a comment on its lines, and a finding that's settled stays settled on the next push.
Draws how the pieces connect
When a change connects several pieces, like jobs that depend on each other or an event that passes through a few modules, the first review ends with a diagram of how they fit, with what changed outlined.
Fixes what the review finds
Fixes each finding that's within the pull request's scope, or links to the lines that show it isn't a bug. Then pushes one commit, and approves once nothing blocking is left and CI passes.
Cleans up after review bots
Fixes what CodeRabbit and Codex flag when it's worth fixing, says why when it isn't, resolves every thread, and answers the nitpicks in one comment.
Fixes failing CI
Waits until 30 minutes after a push in case the author is still on it, then fixes what the pull request broke. A failure it didn't cause gets a comment saying so.
Applies your review
Leave comments on the lines you want changed and say “clara, apply these” in your review. She pushes one commit with the changes, replies in each thread, and resolves the ones she changed.
Announces releases
When a release is published, comments on each pull request and issue it shipped with a link to the release, so the people waiting on a fix know it's out.

Commits

Reviewed without a pull request

Most commits on a small project go straight to main, so nothing reviews them. Clara does, and fixes what she finds in a pull request of her own.

acme / web

Code
Issues12
Pull requests4
Actions
Security7

taylor pushed 3 commits to main

  • Batch deliveries per endpoint

    3f9a2c1
  • Read the queue's settings from the environment

    b71e0d4
  • Raise the delivery timeout to 30 seconds

    8a1d4e0
  1. clara opened a pull request

    Retry each delivery in a failed batch#541

    Fixes a bug in 3f9a2c1

  2. clara commented on 3f9a2c1

    A batch that fails drops every delivery in it, not just the one that failed. The fix is in acme/web#541.

  3. test failed on 3f9a2c1

  4. clara fixed the failing check

    Expect the 30-second timeout in tests#542

    Fixes test on 3f9a2c1

Reviews what you push
Waits until 30 minutes after a push to main, then reviews it along with the pushes just before it, so a run of commits gets one review. Merged pull requests aren't reviewed twice.
Fixes what she finds
Opens a pull request that fixes each bug she confirms, then comments on the commit with what she found, so its author hears about it. A clean review posts nothing.
Fixes failing CI on main
When CI fails on main, fixes the code in a pull request, or comments on the commit when the failure isn't the code's, like an expired token.

Issues and comments

Triaged before you open them

Clara reads the code before she says anything, so her labels fit and her answers point to the lines they're based on.

acme / web

Code
Issues12
Pull requests4
Actions
Security7

Uploads over 10 MB fail with a 413 #503

Opensam opened this issue
  1. sam commented

    Uploads work locally, but in production anything over 10 MB fails.

  2. clara addedbuguploads

    The limit comes from src/upload.ts:18. This looks like a duplicate of #301. Which runtime are you deploying to?

  3. taylor commented

    clara, is there a second limit on the edge route?

  4. clara replied

    Yes. src/edge/upload.ts:9 caps bodies at 4.5 MB before the 10 MB check runs.

  5. taylor addedclara: fix
  6. clara opened a pull request

    Raise the edge route's upload limit to 10 MB#507

    Resolves #503

Triages issues
Finds the code an issue is about, likely duplicates, and what the reporter left out, then applies the labels that fit and posts a short triage comment.
Answers questions
Say “clara” in a comment and she reads the code, then answers with links to the lines it's based on. She reruns a review when asked, and drops a finding you say is fine.
Fixes issues you label
Label an issue “clara: fix”, or ask in a comment, and she opens a pull request that resolves it, with a test for the bug where she can. A fix that needs a decision only you can make gets a reply saying so.

Security

Alerts handled, not just raised

Code scanning, Dependabot, Socket, secret scanning, and private reports each end in a fix, a review, or a reason, with an explanation either way.

acme / web

Code
Issues12
Pull requests4
Actions
Security7

Alerts this week

8

  • Polynomial regex on user input

    Code scanning · src/routes/search.ts

    Fix in #519

  • Hard-coded credentials

    Code scanning · Only reachable from tests

    Dismissed

  • 5 alerts in lodash 4.17.20

    Dependabot · One pull request for all five

    Fix in #520

  • 2 alerts in minimist 1.2.5

    Dependabot · sam updated it in #522 first

    Fix closed

  • Install script in esbuild 0.25.0

    Socket · Only fetches its own binary

    Not a regression

  • API key in .env.example

    Secret scanning · A placeholder

    Resolved

  • Cloud access key

    Secret scanning · Only its owner can rotate it

    Open

  • Path traversal in the static file handler

    Private report · Checked against the code

    Draft · High

Fixes code scanning alerts
Opens a pull request with the smallest fix for a real vulnerability, and dismisses false positives and test-only findings with an explanation.
Updates vulnerable dependencies
Waits for Dependabot's own pull request and reviews it. If none arrives, updates the dependency with your package manager and opens one pull request for all of its open alerts.
Closes fixes you don't need
When an alert is fixed or dismissed some other way first, closes her own pull request for it with a comment saying why. The branch stays, so you can reopen it.
Judges Socket's dependency alerts
Checks each alert Socket raises on a pull request against how your code uses the package. A real regression, malware, or anything your Socket policy blocks holds the approval, with the reason.
Triages leaked secrets
Resolves secrets that are inactive, test fixtures, or placeholders. Leaves real ones open, since only their owner can rotate them.
Checks private vulnerability reports
Checks a private report against the code and, if it holds up, accepts it as a draft advisory with a severity. She never mentions one in public.

Production errors

Fixed before anyone reports them

Sentry tells Clara about each new error in your app. When the code is at fault, the fix is up for review while the issue is still new.

Issues / WEB-3J

214 events · 38 users

TypeError Cannot read properties of undefined (reading 'email')

ResolvedFirst seen in web@2.4.0

src/invites.ts in sendInvite

26 const user = await getUser(invite)

27 await mail(user.email, invite)

28 await markSent(invite)

  1. clara opened a pull request

    Skip invites to deleted users#531

    Fixes WEB-3J

  2. clara commented

    getUser returns nothing for a deleted user, and sendInvite reads its email anyway. The fix is in acme/web#531.

  3. clara resolved this in 8c41d2e

    The commit that merged #531.

Traces errors to the code
Reads the error, its stack, and the code around each frame, then checks the commits since that release in case one already fixed it.
Fixes the cause
Changes the code that's wrong instead of catching the error, runs your checks, and opens a pull request that says “Fixes WEB-3J”, so Sentry links the two. No more than three are open at once, so an outage can't open a dozen.
Explains what failed
Notes on the Sentry issue what failed and why, with a link to the fix. When the cause is outside the code, like a service that was down, the note is all she leaves.
Resolves it when you merge
Once you merge the fix, resolves the issue in the merge commit, so it doesn't sit open until the next release ships.