Skip to content

Add OpenCode v2 mode controls and source guards - #55

Open
lextiz wants to merge 3 commits into
JayPokale:mainfrom
lextiz:feat/opencode-v2-controls
Open

lextiz wants to merge 3 commits into
JayPokale:mainfrom
lextiz:feat/opencode-v2-controls

Conversation

@lextiz

@lextiz lextiz commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

What & why

Add OpenCode v2 live, conversation-local Chisle mode controls, inherited by children and forks on first use. Protect known source-content tools even when explicitly allowlisted, and keep JSON on the shared compressor path.

Depends on #53.

Checklist

  • skills/chisle/SKILL.md remains the source of truth; no rules duplicated in hooks
  • Rule copies and chart unchanged; checks pass
  • Existing flag-file security and compressor invariants preserved
  • npm test passes: 291 tests
  • Added tests for hook, storage, and installer behavior

Notes

Mode uses isolated plugin storage, not shared session metadata or process-global flags. Untoggled roots follow the runtime default. Children and forks snapshot the parent's mode at first use, not at creation; later parent changes do not propagate. Off suppresses owned current system-rule text and future compression but does not rewrite history or restore earlier compressed output.

LSP and known GitHub get_file_contents / search_code tools stay exact despite explicit allowlists. This is tool-name protection, not source detection; shell and grep can still print compressible source. JSON uses the existing shared text minifier; strings and integer literals stay exact. Oversized JSON may be bounded as transcript text; full original retained in recovery spill, structured result fields left untouched. No request-time message compression or credential handling added.

Verified against OpenCode v2.3.2 with a private local fake provider (no paid model calls): on/off, unrelated session isolation, child/fork inheritance, reload, move, restart, unchanged session metadata, and real shell JSON minification.

@lextiz
lextiz requested a review from JayPokale as a code owner November 20, 2026 14:39
@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@sashabolshakov is attempting to deploy a commit to the jaypokale35gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants