Skip to content

fix: skip system prompt for claude#8553

Closed
shuv1337 wants to merge 1 commit intoanomalyco:devfrom
shuv1337:systemprompt-claude-skip
Closed

fix: skip system prompt for claude#8553
shuv1337 wants to merge 1 commit intoanomalyco:devfrom
shuv1337:systemprompt-claude-skip

Conversation

@shuv1337
Copy link
Contributor

Summary

  • prevent system prompt injection for Claude models via Anthropic provider
  • keep existing prompt routing for other providers

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one PR that could be related:

These PRs are tangentially related as they touch on system prompt handling for Anthropic/Claude, but they don't appear to be direct duplicates of the current fix. PR #5166 seems most relevant since it specifically addresses Anthropic provider handling.

@mynameistito
Copy link
Contributor

@shuv1337
Copy link
Contributor Author

nevermind, dario just hates opencode. remove opencode references from system prompts and it works

@shuv1337 shuv1337 closed this Jan 14, 2026
@shuv1337 shuv1337 deleted the systemprompt-claude-skip branch January 14, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants