Skip to content

Instantly share code, notes, and snippets.

View VGoshev's full-sized avatar

Vladimir Goshev VGoshev

View GitHub Profile
@VGoshev
VGoshev / Dockerfile
Created November 1, 2018 14:08
Test for Oleg
FROM ubuntu
COPY entry.sh cmd.sh /
ENTRYPOINT ["/entry.sh"]
CMD ["/cmd.sh", "ololo"]
@VGoshev
VGoshev / subagent-permission-bypass.ts
Created May 15, 2026 11:35
Temporary workaround with inheriting of "edit: deny" on OpenCode
import type { Plugin } from "@opencode-ai/plugin"
/**
* Workaround for https://github.com/anomalyco/opencode/issues/26700
*
* PR #27201's `deriveSubagentSessionPermission()` inherits parent agent's
* `edit: deny` into subagent sessions, disabling built-in edit/write tools.
* No plugin hook can intercept the "deny" path — `Permission.ask()` throws
* `DeniedError` directly, `Permission.disabled()` strips tools before the
* LLM sees them, and session permission clearing races against tool resolution.