henyo-pi-qwen3

Prepend Qwen system identity to the system prompt when using Qwen3 models in pi.

Packages

Package details

extension

Install henyo-pi-qwen3 from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:henyo-pi-qwen3
Package
henyo-pi-qwen3
Version
1.0.0
Published
Jul 4, 2026
Downloads
164/mo · 17/wk
Author
henyojess
License
MIT
Types
extension
Size
2.4 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

henyo-pi-qwen3

A pi extension that prepends the Qwen system identity (You are Qwen, created by Alibaba Cloud. You are a helpful assistant.) to the system prompt whenever a Qwen3 model is selected.

Installation

pi install npm:henyo-pi-qwen3

How it works

  1. session_start — Notifies if the current model is Qwen3.
  2. model_select — Notifies when switching to a Qwen3 model.
  3. before_agent_start — If the active model ID matches /^qwen3/i, prepends the Qwen identity text to the system prompt before the agent loop begins.

Customization

To change the model regex or prepend text, fork this repo and edit the constants in index.ts:

Constant Default Description
MODEL_PREFIX_REGEX /^qwen3/i Regex to match model IDs that trigger the prompt prepend
PREPEND_TEXT You are Qwen... Text prepended to the system prompt

License

MIT