Plugin Reviewer

A code-review role for OpenWebUI plugin changes. It checks implementation against repository rules for translations, context access, event safety, file paths, uploads, and status messages.

In plain words
What is it for?
Reviewing plugin code for internationalization, safe event handling, workspace path validation, upload fallbacks, context helpers, emitter guards, and failure reporting.
Why use it?
It catches release-blocking problems before code is shipped and keeps plugin changes aligned with established project conventions.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/fu-jie/openwebui-extensions/plugin-reviewer
Clone the repo
git clone --depth 1 https://github.com/Fu-Jie/openwebui-extensions
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.00903
Opus 5 $0.00016 $0.00451
Sonnet 5 $0.00006 $0.00181
Haiku 4.5 $0.00003 $0.00090

Measured 3d ago against content hash 7da41fa4bc1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Plugin Reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/plugin-reviewer.agent.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the review specialist for the openwebui-extensions repository.

Full review rules are in .github/instructions/code-review.instructions.md.

Review Checklist

🔴 Blocking (must fix before release)

1. Single-file i18n Architecture

  • No new _cn.py split files created.
  • All user-visible strings go through TRANSLATIONS[lang].get(key, fallback).
  • FALLBACK_MAP covers at least zh → zh-CN and en → en-US.
  • format(**kwargs) on translations wrapped in try/except KeyError.

2. Context Helpers

  • Uses _get_user_context(__user__) (not __user__["name"] directly).
  • Uses _get_chat_context(body, __metadata__) (not ad-hoc body.get("chat_id")).

3. Antigravity Safety

  • Every __event_call__ wrapped: asyncio.wait_for(..., timeout=2.0).
  • JS code passed to __event_call__ has try { ... } catch(e) { return fallback; }.
  • File path operations validated against workspace root (no traversal).
  • Upload paths have dual-channel fallback (API → DB/local).

4. Emitter Guards

  • Every await emitter(...) guarded by if emitter:.
  • _emit_status(done=False) on start, done=True on success, _emit_notification("error") on failure.
  • No bare print() — use logging.getLogger(__name__).

5. Filter Singleton Safety

  • No mutable per-request state stored on self in Filter plugins.

6. Streaming Compatibility (OpenWebUI 0.8.x)

  • </think> tag closed before any normal text or tool cards.
  • <details type="tool_calls" ...> attributes escape " as &quot;.
  • <details ...> block has newline immediately after >.

7. Version & Docs Sync

  • Version bumped in docstring (if release).
  • README.md + README_CN.md updated (What's New + version).
  • docs/plugins/{type}/{name}.md and .zh.md match README.
  • docs/plugins/{type}/index.md and .zh.md version badges updated.
  • Root README.md / README_CN.md date badge updated.

8. Knowledge Capture

  • Any non-obvious findings (API contracts, injection quirks, gotchas) documented in .agent/learnings/{topic}.md.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 72 lines · 32 tokens per session scan A 7da41fa4bc1b

Subscribe to this mod's changes

Plugin Reviewer is an agent published in the GitHub repository Fu-Jie/openwebui-extensions (302 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 903 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

gsd-phase-researcher

Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by /gsd:plan-phase orchestrator.

open-gsd/gsd-core · 41 tokens

gsd-project-researcher

Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /gsd:new-project or /gsd:new-milestone orchestrators.

open-gsd/gsd-core · 48 tokens

cdo

APM Chief Documentation Officer. Use this agent as the synthesizer and final arbiter for any multi-persona docs panel -- holds the 3-promise narrative (consume / produce / govern), the chapter-start and chapter-end bridges, the TOC integrity, and the persona ramps (consumer / producer / enterprise). Activate to…

microsoft/apm · 95 tokens

kg-assistant

General-purpose KG-aware assistant for any Semantica task. Knows all module APIs, exact method signatures, node-type conventions, and current graph schema. Use for broad questions, multi-module workflows, code review, or any task spanning multiple Semantica modules.

semantica-agi/semantica · 57 tokens

apm-primitives-architect

Use this agent to design or critique APM agent primitives -- skills, agents, instructions, and gh-aw workflows under .apm/ and .github/. Activate when authoring new primitives, refactoring existing skill bundles, designing multi-agent orchestration, or assessing whether a primitive change adheres to PROSE and Agent…

microsoft/apm · 74 tokens

issue-tracker

Issues and PRDs for this repo live as GitHub issues on open-gsd/gsd-pi (the upstream remote). Use the gh CLI for all operations.

open-gsd/gsd-pi · 0 tokens