openwebui-extensions GEMINI.md

openwebui-extensions GEMINI.md is an instructions file for Gemini CLI from Fu-Jie/openwebui-extensions. It costs 1,682 tokens per session, scanned A, original, MIT.

Project instructions for OpenWebUI extensions used with the Gemini command-line tool, covering plugin structure, required documentation, errors, settings, and language rules.

In plain words
What is it for?
Use it when developing, documenting, or releasing an OpenWebUI action, filter, pipe, pipeline, or tool in this project.
Why use it?
It tells the coding agent how this repository expects plugins to behave and what files and safeguards each change must include.

Instructions file for Gemini CLI

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 instructions/fu-jie/openwebui-extensions/gemini-md
Clone the repo
git clone --depth 1 https://github.com/Fu-Jie/openwebui-extensions

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openwebui-extensions GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fu-jie/openwebui-extensions/gemini-md.svg)](https://agentmods.dev/instructions/fu-jie/openwebui-extensions/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/fu-jie/openwebui-extensions/gemini-md"><img src="https://agentmods.dev/badge/instructions/fu-jie/openwebui-extensions/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,682 This file is loaded in full into every session.
When invoked 1,682 The same file — it is already loaded in full.
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.1 $0.01682 $0.01682
Opus 5 $0.00841 $0.00841
Sonnet 5 $0.00336 $0.00336
Haiku 4.5 $0.00168 $0.00168

Measured 5d ago against content hash 0b14372b65a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

openwebui-extensions GEMINI.md 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 5d 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.

GEMINI.md · 164 lines

How it starts

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

OpenWebUI Extensions — Gemini CLI Project Context

This file is loaded automatically by Gemini CLI as project-level instructions. Full engineering spec: .github/copilot-instructions.md


Project Overview

openwebui-extensions is a collection of OpenWebUI plugins authored by Fu-Jie.

Repository: https://github.com/Fu-Jie/openwebui-extensions

Plugin types: actions / filters / pipes / pipelines / tools


Non-Negotiable Rules

  1. No auto-commit. Never run git commit, git push, or gh pr create unless the user says "发布" / "release" / "commit it". Default output = local file changes only.
  2. No silent failures. All errors must surface via __event_emitter__ notification or backend logging.
  3. No hardcoded model IDs. Default to the current conversation model; let Valves override.
  4. Chinese responses. Reply in Simplified Chinese for all planning, explanations, and status summaries. English only for code, commit messages, and docstrings.
  5. Knowledge capture. Whenever you discover a non-obvious pattern, gotcha, or workaround (e.g., internal API contracts, mock object requirements, parameter injection quirks), save it to .agent/learnings/{topic}.md before ending the session. See .agent/learnings/README.md for format and existing entries.

Plugin File Contract

Every plugin MUST be a single-file i18n Python module:

plugins/{type}/{name}/{name}.py   ← single source file, built-in i18n
plugins/{type}/{name}/README.md   ← English docs
plugins/{type}/{name}/README_CN.md ← Chinese docs

Docstring (required fields)

"""
title: Plugin Display Name
author: Fu-Jie
author_url: https://github.com/Fu-Jie/openwebui-extensions
funding_url: https://github.com/open-webui
version: 0.1.0
description: One-line description.
"""

Required patterns

  • Valves(BaseModel) with UPPER_SNAKE_CASE fields
  • _get_user_context(__user__) — never access __user__ directly
  • _get_chat_context(body, __metadata__) — never infer IDs ad-hoc
  • _emit_status(emitter, msg, done) / _emit_notification(emitter, content, type)
  • Async I/O only — wrap sync calls with asyncio.to_thread
  • logging for backend logs — no bare print() in production

Read the full file on GitHub · 164 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. 5d ago First seen · 164 lines · 1,682 tokens per session scan A 0b14372b65a1

Subscribe to this mod's changes

openwebui-extensions GEMINI.md is an instructions file published in the GitHub repository Fu-Jie/openwebui-extensions (304 stars, last pushed yesterday), licensed MIT. It adds 1,682 tokens to every session, about $0.0084 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.