Skip to content
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2e7fdc6
feat(triage): auto-close stale PRs with Greptile score <4/5
cursoragent May 17, 2026
ac18f14
docs(templates): require expected/actual + QA proof for external cont…
cursoragent May 17, 2026
7b4a093
feat(triage): Agent Shin LLM-as-judge for external PRs and issues
cursoragent May 17, 2026
483042e
feat(triage): scope Greptile auto-closer to external contributors + d…
cursoragent May 17, 2026
4961bf4
fix(workflows): scheduled cron closes PRs; safe --close strip in triage
cursoragent May 17, 2026
4014333
fix(triage): scheduled cron stays dry-run; dedent prompts before inte…
cursoragent May 17, 2026
edddf0c
Fix bugs in auto-close PR triage scripts
cursoragent May 17, 2026
09da8a7
feat(triage): default Agent Shin to gpt-5.4-mini with reasoning_effor…
cursoragent May 17, 2026
c501f74
fix(triage): bugbot — drop dead gh_json and fix --optout-label append…
cursoragent May 17, 2026
1ac5bee
fix(triage): bugbot — tighten linked-issue regex, fail-safe author_as…
cursoragent May 17, 2026
638dba9
fix(workflows): bugbot — gate Agent Shin --close on '= true' not '!= …
cursoragent May 17, 2026
ff57d5b
feat(triage): close any PR (incl. drafts, any age); add @agent-shin r…
cursoragent May 18, 2026
420547f
test(triage): pin safe behavior for curly braces in PR/issue title+body
cursoragent May 18, 2026
4e0968a
fix(triage): bugbot — reconsider dry-run + bot-closed guard + rate limit
cursoragent May 18, 2026
f876173
feat(triage): 1-day grace period before close + SwiftWinds immediate-…
cursoragent May 19, 2026
e0eeb73
fix: skip grace-period text in close comment for IMMEDIATE_CLOSE_LOGINS
cursoragent May 19, 2026
b0fc8c2
fix(close-low-quality-prs): report actual closes in dry-run summary
cursoragent May 19, 2026
0ad6836
chore(triage): vendor Agent Shin (#28117) onto demo branch
claude May 24, 2026
b4d9703
feat(triage): add "ready for review" label lifecycle to Agent Shin
claude May 24, 2026
7fb1ec6
Merge PR #28117 + #28147 (Agent Shin auto-close + reconsider safety)
May 25, 2026
b7ed45e
Merge PR #28758 — keep #28147 versions of overlapping triage files; r…
May 25, 2026
125f104
Port review-gate feature from #28758 onto #28147 triage scripts
May 25, 2026
8b5913b
agent_shin: extract shared constants/helpers; cover review_gate.yml i…
cursoragent May 25, 2026
1d0d490
agent_shin: fix bug bundle (gated LLM key, author-filtered marker ded…
cursoragent May 25, 2026
19dfdd4
agent_shin: fix review_gate close-after-regression and case-insensiti…
cursoragent May 25, 2026
9e41a22
feat(triage): add one-shot 7-day heads-up sweep for Agent Shin rollout
mateo-berri May 26, 2026
88543ed
fix: gate reconsider workflow OPENAI_API_KEY + remove dead actions wr…
cursoragent May 26, 2026
234471a
fix: address triage script edge cases
cursoragent May 26, 2026
09720a7
fix(scripts): per-PR error isolation and limit grace warnings in clos…
cursoragent May 26, 2026
2c49dcf
fix(agent-shin): remove 1000-PR cap on bulk sweeps; sweep entire backlog
mateo-berri May 28, 2026
c4d74ee
fix(agent-shin): require non-mocked end-to-end QA proof for PR pass
mateo-berri May 28, 2026
9f4b795
feat(agent-shin): link blog explainer from every action-required bot …
mateo-berri May 28, 2026
45fc4c9
fix(review_gate): raise sweep limit from 1000 to 100000 to match GH_L…
cursoragent May 28, 2026
e21fe21
Fix three Agent Shin triage edge cases
cursoragent May 28, 2026
dd02b76
fix: pass min_greptile_score through to ready-for-review comment text
cursoragent May 28, 2026
f7e514a
feat(agent-shin): warmer triage comments — bullet-train emoji, 'what …
mateo-berri May 28, 2026
dc93e10
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri Jun 14, 2026
9138060
feat(agent-shin): gate triage on a dogfood allowlist
mateo-berri Jun 17, 2026
1e069a8
feat(agent-shin): tighten QA-proof and issue rubrics, ack reconsider …
mateo-berri Jun 15, 2026
bdae163
fix(agent-shin): shorten auto-close grace to 2 hours and drop the ins…
mateo-berri Jun 17, 2026
f8ece2b
fix(agent-shin): gate reconsider reopen on an Agent Shin close marker
mateo-berri Jun 17, 2026
f73719f
fix(agent-shin): stamp close marker on sweep closes and disclose regr…
mateo-berri Jun 17, 2026
69c2e7b
fix(triage): tighten Agent Shin reconsider reopen guards
cursoragent Jun 17, 2026
5434b21
style(agent-shin): black-format reconsider guard hardening
mateo-berri Jun 17, 2026
a0d4edf
docs(agent-shin): scope dry-run wrapper docstring to the single exist…
mateo-berri Jun 17, 2026
e8fb7b2
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri Jun 17, 2026
7e99f48
chore(agent-shin): defer issue/PR template changes to the rollout PR
mateo-berri Jun 18, 2026
428626c
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
mateo-berri Jun 18, 2026
5791024
ci(agent-shin): hash-pin the openai install in privileged triage work…
mateo-berri Jun 18, 2026
8d38de0
ci(agent-shin): gate rollout heads-up real run behind manual dispatch
mateo-berri Jun 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 36 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!

Thanks for taking the time to file a bug report!

> ⚠️ **Auto-triage notice for external contributors:**
> Bug reports without **clear reproduction steps, expected vs. actual behavior, and a screenshot or terminal/log output** are auto-closed by our LLM triage bot with an explanation of what was missing. You can fill in the missing details and reopen at any time — the bot will re-evaluate. Internal BerriAI contributors are exempt.

**💡 Tip:** See our [Troubleshooting Guide](https://docs.litellm.ai/docs/troubleshoot) for what information to include.
- type: checkboxes
id: duplicate-check
Expand All @@ -20,21 +23,33 @@ body:
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
label: What happened? (Actual behavior)
description: A clear description of what is happening today, with the bug.
placeholder: e.g. "Calling completion() with model=gpt-4o-mini returns an empty string."
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: What did you expect to happen? (Expected behavior)
description: A clear description of what you expected to happen. **Required.**
placeholder: e.g. "I expected completion() to return the model's response text."
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: Please provide detailed steps to reproduce this bug(A curl/python code to reproduce the bug)
label: Steps to reproduce
description: |
Provide a minimal reproduction. Include a runnable Python snippet or a
`curl` command, your config.yaml if relevant, and the exact LiteLLM
version + Python version. Reports without a runnable reproduction are
auto-closed.
placeholder: |
1. config.yaml file/ .env file/ etc.
2. Run the following code...
3. Observe the error...
1. Create `config.yaml` with: ...
2. Start the proxy with: `litellm --config config.yaml --port 4000`
3. Run this Python / curl: ...
4. Observe: ...
value: |
1.
2.
Expand All @@ -44,9 +59,15 @@ body:
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
label: Relevant log output / screenshot
description: |
**Required.** Paste the full traceback, stderr, proxy logs, or attach a
screenshot showing the bug. For UI bugs a screenshot or screen
recording is mandatory. Without proof of the bug, the issue is
auto-closed.
render: shell
validations:
required: true
- type: dropdown
id: component
attributes:
Expand All @@ -63,14 +84,14 @@ body:
- type: input
id: version
attributes:
label: What LiteLLM version are you on ?
label: What LiteLLM version are you on ?
placeholder: v1.53.1
validations:
required: true
- type: input
id: contact
attributes:
label: Twitter / LinkedIn details
label: Twitter / LinkedIn details
description: We announce new features on Twitter + LinkedIn. If this issue leads to an announcement, and you'd like a mention, we'll gladly shout you out!
placeholder: ex. @krrish_dh / https://www.linkedin.com/in/krish-d/
validations:
Expand Down
28 changes: 20 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: 🚀 Feature Request
name: 🚀 Feature Request
description: Submit a proposal/request for a new LiteLLM feature.
title: "[Feature]: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for making LiteLLM better!
Thanks for making LiteLLM better!

> ⚠️ **Auto-triage notice for external contributors:**
> Feature requests need (1) a clear description of the proposed feature, (2) the motivation / use case with a concrete example, and (3) what success looks like. Vague requests are auto-closed by our LLM triage bot with an explanation. Fill in the missing details and reopen at any time — the bot will re-evaluate. Internal BerriAI contributors are exempt.
- type: checkboxes
id: duplicate-check
attributes:
Expand All @@ -18,16 +21,25 @@ body:
- type: textarea
id: the-feature
attributes:
label: The Feature
description: A clear and concise description of the feature proposal
placeholder: Tell us what you want!
label: The feature
description: A clear and concise description of the feature proposal. What should LiteLLM do that it doesn't today?
placeholder: e.g. "Support per-team max_input_tokens overrides on the proxy."
validations:
required: true
- type: textarea
id: motivation
attributes:
label: Motivation, pitch
description: Please outline the motivation for the proposal. Is your feature request related to a specific problem? e.g., "I'm working on X and would like Y to be possible". If this is related to another GitHub issue, please link here too.
label: Motivation, pitch, and concrete example
description: |
**Required.** Why is this needed? Include a concrete use case — what
you're trying to accomplish, what's blocked today, and what success
would look like (ideally with an example config / API call / UI flow).
If this is related to another GitHub issue, link it here too.
placeholder: |
I'm running a multi-tenant proxy where team A processes long docs and
team B only does short chats. Today I have to spin up two proxies.
With this feature I could set max_input_tokens per team and route in one
proxy. Example config: ...
validations:
required: true
- type: dropdown
Expand Down Expand Up @@ -56,7 +68,7 @@ body:
- type: input
id: contact
attributes:
label: Twitter / LinkedIn details
label: Twitter / LinkedIn details
description: We announce new features on Twitter + LinkedIn. When this is announced, and you'd like a mention, we'll gladly shout you out!
placeholder: ex. @krrish_dh / https://www.linkedin.com/in/krish-d/
validations:
Expand Down
78 changes: 67 additions & 11 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,73 @@
<!--
👋 Hi there — please read before submitting.

To keep the review queue healthy for everyone, **every external PR is
auto-triaged** by an LLM bot ("Agent Shin") on open / reopen, regardless of
whether the PR is a draft or marked ready for review. PRs that don't meet
the rubric below are auto-closed with an explanation.

To pass triage, your PR must satisfy AT LEAST ONE of:

(A) Link a related GitHub issue (e.g. "Fixes #1234" or "Resolves
https://github.com/BerriAI/litellm/issues/1234"), OR

(B) Provide ALL of the following IN THIS PR DESCRIPTION:
- A clear problem description (what bug or missing feature this addresses)
- Expected vs. actual behavior
- End-to-end QA proof: AT LEAST ONE of a screen recording / video,
before/after screenshots, or the exact commands you ran with their
real output, demonstrating the fix/feature works end-to-end (mocked
or stubbed runs don't count)

Every external PR (including drafts, regardless of age) also receives a
Greptile code review. Any PR with a Greptile Confidence Score below 4/5 is
auto-closed.

If your PR was auto-closed and you've addressed the feedback, you have two
options to bring it back:

- **Open a new PR** with the updated branch (recommended — GitHub does not
let external contributors reopen a PR that was closed by a bot or
maintainer).
- **Or** comment `@agent-shin reconsider` on the closed PR. Agent Shin
will re-run triage and reopen the PR if it now meets the bar.

Internal BerriAI contributors are exempt from this auto-triage — fill in the
Linear ticket section instead.
-->

## Relevant issues

<!-- e.g. "Fixes #000" -->
<!-- e.g. "Fixes #000". If you have no related issue, fill in the
"Problem description / Expected vs. Actual / QA proof" sections below. -->

## Linear ticket

<!-- if you are an internal contributor, add the Linear ticket e.g. "Resolves LIT-1234" to magically link the Linear ticket to the GitHub PR -->
<!-- INTERNAL CONTRIBUTORS ONLY: add the Linear ticket e.g. "Resolves LIT-1234"
to magically link the Linear ticket to the GitHub PR. External contributors:
leave this blank and fill in the problem/expected-actual/QA sections below. -->

## Problem description

<!-- What bug or missing feature does this PR address? One or two paragraphs.
External contributors: required unless you linked a GitHub issue above. -->

## Expected vs. actual behavior

<!-- What did you expect to happen? What is happening today (before this PR)?
External contributors: required unless you linked a GitHub issue above. -->

## QA proof

<!-- Required for ALL contributors (internal and external): include AT LEAST ONE
of a screen recording / video, before/after screenshots, or the exact commands
you ran with their real output, demonstrating the fix or feature works
end-to-end. Mocked or
stubbed runs don't count, and running `pytest` on the repo's unit tests doesn't
count either (those mock the provider, DB, and network, so they aren't
end-to-end). For UI changes, a screen recording or before/after screenshots work
best; for backend changes, real terminal output of a curl or command run against
the real system is fine. -->

## Pre-Submission checklist

Expand All @@ -13,7 +76,7 @@
- [ ] I have added meaningful tests
- [ ] My PR passes all unit tests on [`make test-unit`](https://docs.litellm.ai/docs/extras/contributing_code)
- [ ] My PR's scope is as isolated as possible; it only solves 1 specific problem
- [ ] I have requested a Greptile review by commenting `@greptileai` and received a **Confidence Score of at least 4/5** before requesting a maintainer review
- [ ] I have received a Greptile **Confidence Score of at least 4/5** before requesting a maintainer review (Greptile reviews automatically on open; comment `@greptileai` to re-trigger after pushing fixes)

## Delays in PR merge?

Expand All @@ -36,13 +99,6 @@ If you're seeing a delay in your PR being merged, ping the LiteLLM Team on [Slac
- [ ] **Merge / cherry-pick CI run**
Links:

## Screenshots / Proof of Fix

<!-- Include screenshots, screen recordings, or log output demonstrating that your changes work as expected.
For bug fixes: show reproduction before the fix and passing behavior after.
For new features: show the feature working end-to-end.
For UI changes: include before/after screenshots. -->

## Type

<!-- Select the type of Pull Request -->
Expand All @@ -52,7 +108,7 @@ If you're seeing a delay in your PR being merged, ping the LiteLLM Team on [Slac
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
🚅 Infrastructure
✅ Test

## Changes
48 changes: 48 additions & 0 deletions .github/scripts/_agent_shin_actions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
"""Thin dry-run wrappers around every Agent Shin GitHub mutation.

Every destructive operation the rollout scripts perform is funneled through a
``maybe_*`` helper here. The helpers take a single ``dry_run: bool`` keyword
argument and the body is intentionally trivial:

if dry_run:
print(...) # log what we would do, return
return
real_mutation(...) # otherwise, actually do it

That shape means a dry-run preview differs from the real run in exactly one
line per side effect: the call site. So when you `python3 script.py` locally
without ``--close``, you can be confident the actions printed are the ones the
GitHub Action would have performed (modulo ordering on retry/error paths,
which are deliberately simple).

Importing from this module pulls in the real mutations from
``triage_with_llm`` — call sites in the rollout scripts should NEVER import
``post_comment`` / ``close_pr`` / etc. directly; that would skip the dry-run
gate and is the bug class this module exists to prevent.
"""

from __future__ import annotations

import sys
import textwrap

# Import the module itself rather than the bare names so monkeypatching
# `triage_with_llm.post_comment` (or any of the other mutations) in tests is
# reflected here — `from triage_with_llm import post_comment` would bind the
# original function to a local name and bypass the patch, defeating the whole
# point of these wrappers.
import triage_with_llm


def _log(line: str) -> None:
"""Print a single dry-run line to stdout (one log statement per side effect)."""
print(line, file=sys.stdout, flush=True)


def maybe_post_comment(repo: str, number: int, body: str, *, dry_run: bool) -> None:
"""Post a comment on ``repo#number`` — or, in dry-run, log what we would post."""
if dry_run:
_log(f"[DRY RUN] comment {repo}#{number}:")
_log(textwrap.indent(body, " "))
return
triage_with_llm.post_comment(repo, number, body)
Loading
Loading