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 252adc2f6f6a2425b505ef2561e2a40263633a0a
parent 448552e606189b804aa482887fdce3b7700b56df
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 18 Oct 2026 18:32:56 +0000

feat: check vcs enabled

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

diff --git a/index.ts b/index.ts @@ -27,6 +27,16 @@ export default Plugin.define({ const messages = await ctx.session.context({ sessionID: event.sessionID }) const isNew = messages.length === 0 console.log(`[openpod] session ${event.sessionID} prompt - isNew: ${isNew}`) + + const session = await ctx.session.get({ sessionID: event.sessionID }) + const dir = session.location.directory + const vcs = await ctx.vcs.get({ location: { directory: dir } }) + const vcsEnabled = !!vcs.data.provider + console.log(`[openpod] vcs enabled for project dir ${dir}? ${vcsEnabled} (provider=${vcs.data.provider ?? "none"})`) + + // TODO: if new, and vcsEnabled + // git clone to `~/.local/share/openpod/<sessionId>` + // move session to clone repo }) }, })