openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

commit 448552e606189b804aa482887fdce3b7700b56df
parent 86e4c79c888b971470e6a1ee1118a5df46634803
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 18 Oct 2026 18:10:22 +0000

feat: check if session is new

Diffstat:
Mindex.ts | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/index.ts b/index.ts @@ -22,5 +22,11 @@ export default Plugin.define({ "`limactl` is not installed. Lima is required for openpod. See https://lima-vm.io/", ) } + + await ctx.session.hook("prompt", async (event) => { + const messages = await ctx.session.context({ sessionID: event.sessionID }) + const isNew = messages.length === 0 + console.log(`[openpod] session ${event.sessionID} prompt - isNew: ${isNew}`) + }) }, })