🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsAnnouncing new builds for 11 September 2026(11.09.2026 um 19:11 Uhr)
🪟 Windows TippsChild account not showing in Microsoft Family(11.09.2026 um 11:11 Uhr)
🪟 Windows TippsUnable to connect to localhost MySQL workbench(11.09.2026 um 14:07 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsAnnouncing new builds for 11 September 2026(11.09.2026 um 19:11 Uhr)
🪟 Windows TippsChild account not showing in Microsoft Family(11.09.2026 um 11:11 Uhr)
🪟 Windows TippsUnable to connect to localhost MySQL workbench(11.09.2026 um 14:07 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)

🔧 Programmierung 🕛 vor 1 Jahr 10 Min Lesezeit
0

Build an AI code review assistant with v0.dev, litellm and Agenta

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

The code for this tutorial is available . Just provide the URL to a public PR and receive a review from our AI assistant.



.


  • Adding Observability: Instrumenting the code with playground.


  • LLM Evaluation: Using LLM-as-a-judge to evaluate prompts and select the best model.


  • Deployment: Deploying the app as an API and building a simple UI with provides a unified interface for working with various LLM providers—making it easy to experiment with different models later:




    CODE
    prompt_system = """
    You are an expert Python developer performing a file-by-file review of a pull request. You have access to the full diff of the file to understand the overall context and structure. However, focus on reviewing only the specific hunk provided.
    """

    prompt_user = """
    Here is the diff for the file:
    {diff}

    Please provide a critique of the changes made in this file.
    """

    def generate_critique(pr_url: str):
    diff = get_pr_diff(pr_url)
    response = litellm.completion(
    model=config.model,
    messages=[
    {"content": config.system_prompt, "role": "system"},
    {"content": config.user_prompt.format(diff=diff), "role": "user"},
    ],
    )
    return response.choices[0].message.content









    Adding observability



    Observability is crucial for understanding and improving LLM applications. It helps you track inputs, outputs, and the information flow, making debugging easier. We'll use Agenta for this purpose.



    Agenta is an open-source LLMOps platform that provides you with all the tools needed to build production-ready LLM-powered applications. It offers a centralized environment to manage prompts, instrument applications for tracking inputs and outputs, and run evaluations to assess result quality. You can signup for free for the .



    ) and optionally AGENTA_HOST if we're self-hosting.



    We can now run the app and see the traces in Agenta.








    Evaluating using LLM-as-a-judge



    To evaluate the quality of our AI assistant's reviews and compare prompts and models, we need to set up evaluation.



    First, we'll create a small test set with publicly available PRs.



    Next, we'll set up an LLM-as-a-judge to evaluate the quality of the reviews.



    To do this, navigate to the evaluation view, click on "Configure evaluators", then "Create new evaluator" and select "LLM-as-a-judge".





    With our evaluator set up, we can run experiments and compare different prompts and models. In the playground, we can create multiple variants and run batch evaluations using the pr-review-quality LLM-as-a-judge.





    This gives you an API endpoint ready to use in your application.



    to quickly generate a UI. After providing our API endpoint and authentication requirements, we had a working UI in minutes. You can try it yourself: .



    Star Agenta

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
  • Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    2 Quellen
    The Gemini desktop app is now available for Windows
    1 Quelle
    Seamlessly import your team and data from Microsoft to Google Workspace during setup
    1 Quelle
    Announcing new builds for 11 September 2026
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Build an AI code review assistant with v0.dev, litellm and Agenta

    Thematisch verwandte Begriffe: Build, code, review, assistant · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...