opencode-session-restart/package.json
emidab 007f4fed6d feat: add session_restart tool plugin
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).
2026-09-15 21:32:43 +00:00

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"
}
}