Registers a session_restart tool that spawns a fresh child session on the current project, prompts it with a focused task (+ optional notes) via promptAsync, and aborts the current session by default so a single focused task continues in a clean context window instead of compacting. Includes an experimental.compaction.autocontinue hook to reject the synthetic continue turn after compaction (default on).
14 lines
No EOL
470 B
JSON
14 lines
No EOL
470 B
JSON
{
|
|
"name": "opencode-session-restart",
|
|
"version": "0.1.0",
|
|
"description": "opencode plugin that lets the agent restart a session into a fresh child session with a focused prompt, dodging compaction.",
|
|
"type": "module",
|
|
"main": "./index.ts",
|
|
"files": ["index.ts"],
|
|
"license": "MIT",
|
|
"keywords": ["opencode", "plugin", "session", "restart", "compaction"],
|
|
"peerDependencies": {
|
|
"@opencode-ai/plugin": ">=1.0.0",
|
|
"@opencode-ai/sdk": ">=1.0.0"
|
|
}
|
|
} |