Skip to content

feat: add minimal scrub mode for prompt stability#5

Open
briankeefe wants to merge 1 commit into
rynfar:mainfrom
briankeefe:briankeefe/minimal-scrub-mode
Open

feat: add minimal scrub mode for prompt stability#5
briankeefe wants to merge 1 commit into
rynfar:mainfrom
briankeefe:briankeefe/minimal-scrub-mode

Conversation

@briankeefe
Copy link
Copy Markdown

Summary

  • add MERIDIAN_OPENCODE_SCRUB_MODE=minimal for users who need surgical fingerprint removal without rewriting prompt structure
  • keep current aggressive behavior as default, but preserve <env> / <omo-env> blocks and skip identity replacement in minimal mode
  • document both modes and how they differ

Why

Aggressive scrubbing is useful for avoiding Anthropic fingerprinting and Opus extra-usage gating, but it also changes prompt structure in ways that can destabilize some OpenCode execution flows. This adds an opt-in minimal mode so users can preserve execution-critical prompt structure while still removing the strongest third-party tells.

Validation

  • npm run build
  • verified locally that MERIDIAN_OPENCODE_SCRUB_MODE=minimal restored a previously failing OpenCode flow while keeping scrubbing enabled

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.

1 participant