When developing agents in DeepSeek Harness (DSH), managing the JevLoop service gateway state and API keys typically requires directly manipulating services or configuration files. moqi-jev-loop provides a TUI-based control panel that enables these operations within moqi’s graphical interface.
Plugin Positioning¶
This is a thin adapter layered on top of the dsh-jev-loop service. It leverages moqi’s tuiHost integration point to present the jevLoop service state as rows and actions, without modifying moqi’s core code.
Core Features¶
The plugin registers a tuiHost panel exposed in moqi’s command palette as /JevLoop. The panel displays:
- API Key Status: Lists the source of the API key (
config,credential:file,env:TYPESAFE_APIKEY), but does not display the actual key value. - Gateway Status: Shows the real-time state of the four gateways.
- Interaction: Pressing the
enterkey toggles gateway state; changes take effect immediately.
Key resolution follows a specific order: explicit apiKey configuration > Harness credential store > environment variables (TYPESAFE_API_KEY or TYPESAFE_APIKEY).
Installation and Activation¶
Installation requires two plugins: the core service plugin and this adapter plugin.
dsh plugin --profile <profile> add dsh-jev-loop
dsh plugin --profile <profile> add moqi-jev-loop
After installation, ensure moqi is running; /JevLoop will appear in the command palette.
Typical Usage¶
- Launch Harness, set the environment variable via
TYPESAFE_APIKEY=… dsh --profile <profile>, or configure it in a config file. - Start moqi.
- Invoke
/JevLoopin moqi. - Use the
enterkey to toggle gateways. - Changes are written immediately to the Harness credential store (
ctx.credentials) and persisted to$DSH_HOME/jev-loop(exact format depends on the implementation, but the storage path is fixed).
Notes¶
- Dependencies: The plugin applies no logic of its own and activates only when both services are present.
- Security: When entering an API key, the draft text is never rendered and never touches editors, logs, or shell history.
- License: MIT License.
Summary¶
moqi-jev-loop provides immediate visual management of JevLoop gateways and API keys through moqi TUI. It is a lightweight plugin suited for developers who want to directly control service traffic while maintaining DSH process context.
- Author: JWE24-code
- Directory: moqi-jev-loop - SkillHub
- Source Code: moqi-jev-loop - GitHub