Open - Source
Code Reviewer

An AI reviewer that reads your whole repo, not just the diff. Catches bugs before they hit production.

packages/api/src/app/_common.py
64+def handleOpencodeLLMCtx(llm_ctx: LLMCtx, commitId: str) -> LLMCtx:
65+"""Tag opencode-gateway LLM contexts with the run's session header."""
66+ctx = llm_ctx
67+if ctx is not None and "opencode" in str(ctx.baseUrl):
reviewpr-botBoton Sept 17

Opencode session tagging overwrites configured LLM headers in place

  • packages/api/src/app/workflows/triggers/_common.py:68 assigns ctx.defaultHeaders = {"x-opencode-session": …}, discarding existing entries.
  • packages/api/src/app/services/llm/service.py:108,152 populate defaultHeaders from settings.llm_default_headers (gateway ids / tags per packages/api/src/app/core/config.py:227).
  • packages/api/src/app/workflows/triggers/review.py:254,401 calls this on every trigger right after resolveLlmCtx, so opencode-gateway runs silently lose those headers; ctx = llm_ctx also mutates the caller's LLMCtx instead of copying.

Fix: Merge instead of replace on a copy, e.g. return ctx.model_copy(update={"defaultHeaders": {...}ctx.defaultHeaders, "x-opencode-session": f'session-{commitId[:6]}'}}).

Reply...

Features

Context of your repo

Configure as per your need

Comments where you fix them

How it works?

Clone your repo

Parallel agents review

Review comments posted to GitHub

Agents post to GitHub

You Ship Code
We Catch Bugs