Never Stop
opencode plugin: nudge the agent whenever it goes idle so it never stops working
0
541
近 7 天 15
35.7
生态多维模型
26 天前
2026-09-24
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-never-stop@0.1.5"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-never-stop@0.1.5"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-never-stopOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Your agent finishes a task and just sits there — tokens idle, deep thoughts unthought. This plugin makes opencode never stop: when the session goes quiet, it pokes the agent with a nudge from your config and gets it working again. No compute wasted, no babysitting.
Install
opencode does not install slash commands from plugin packages — and this plugin is switched on by its commands. So install the plugin and the commands, either with the installer script (does both) or via npm plus a manual copy.
From a repo checkout (recommended)
./scripts/install.sh # macOS / Linux
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 # Windows
This copies the plugin to ~/.config/opencode/plugins/, the commands to
~/.config/opencode/commands/, and writes a default config. Re-run it after
pulling updates.
Via npm
opencode plugin opencode-never-stop -g
cp ~/.cache/opencode/node_modules/opencode-never-stop/commands/*.md ~/.config/opencode/commands/
opencode plugin only installs the module and registers it in your config, so
the second step is required: without the commands the plugin loads but can never
be turned on.
Restart opencode afterwards.
Usage
| Command | Effect |
|---|---|
/opencode-never-stop [message...] |
Start poking this session; optional text overrides the configured nudge message |
/opencode-stop |
Stop poking |
Context threshold
Keep an eye on context usage and get the agent to wrap up before the next compaction. Set a threshold and a message; the plugin nudges the agent once the session context crosses the threshold.
| Command | Effect |
|---|---|
/opencode-never-proceed-after [threshold] [message...] |
Nudge this session once its context crosses the threshold |
/opencode-never-proceed-after-stop |
Disable the context watch for this session |
A threshold below 100 is a percentage of the model's context window; 100
or more is an absolute token count, e.g.:
/opencode-never-proceed-after 120000 please stop whatever you're doing at the moment
/opencode-never-proceed-after 60 pause your work, persist your progress, and note where you left off
Configure
Create ~/.config/opencode/opencode-never-stop.json:
{
"checkIntervalSeconds": 15,
"message": "Have you done all your assignments? If anything is left, continue — or spend some more time double-checking your work."
}
Two other locations are checked first, in order: the OPENCODE_NEVER_STOP_CONFIG
environment variable (a path), then <project>/.opencode/opencode-never-stop.json.
| Field | Default | Description |
|---|---|---|
checkIntervalSeconds |
15 |
Idle seconds before the agent gets nudged |
message |
the quote above | What to tell the idle agent |
That's it. The agent stays busy, you stay productive.
同类生态推荐
Startup Commands
opencode-startup-commands
Launch trusted background commands when OpenCode initializes a project or directory.
Router
@s-berdia/opencode-router
Automatic model routing and quota failover for OpenCode Go, Go Plus, and Free. Switches models before you hit your limit.
Tell Sessions
opencode-tell-sessions
Inter-session direct messaging (DM) for OpenCode V1 & V2: agents in different sessions can message each other