Skip to content

fix: replace Block-specific system prompt with generic default, make it configurable - #12

Merged
delkc merged 1 commit into
mainfrom
claydelk/brand-filter-review-llm
Apr 23, 2026
Merged

fix: replace Block-specific system prompt with generic default, make it configurable#12
delkc merged 1 commit into
mainfrom
claydelk/brand-filter-review-llm

Conversation

@delkc

@delkc delkc commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Why

The review_content LLM system prompt introduced in the previous PR was copied from a downstream Block-internal repo and hardcoded references to "Block (the fintech company behind Cash App, Square, Afterpay, and other products)". That content shouldn't be in a general-purpose open-source library.

What

  • Replace the hardcoded org-specific system prompt with a generic default
  • Add reviewSystemPrompt?: string to ServeOptions so downstream repos can inject their own org-specific context when calling serveMcp()

Risk Assessment

Low — only affects the review_content tool's LLM behavior; no logic changes, just the prompt text and a new opt-in escape hatch.

Generated with Claude Code

…it configurable

The hardcoded system prompt referenced Block, Cash App, Square, and Afterpay
by name, which is inappropriate for a general-purpose open-source library.
Replace with a generic prompt and expose reviewSystemPrompt in ServeOptions
so downstream repos can inject their own org-specific context.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@delkc
delkc marked this pull request as ready for review April 23, 2026 17:20
@delkc
delkc requested a review from nahiyankhan as a code owner April 23, 2026 17:20
@delkc
delkc merged commit 75e43c8 into main Apr 23, 2026
6 checks passed
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