Skip to content

Designer must review existing code/libraries before proposing new designs - #8

Merged
wparad merged 1 commit into
mainfrom
claude/designer-code-review-7htb9k
Jun 28, 2026
Merged

Designer must review existing code/libraries before proposing new designs#8
wparad merged 1 commit into
mainfrom
claude/designer-code-review-7htb9k

Conversation

@wparad

@wparad wparad commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Updates AgentRole::Designer's default system prompt in src/dispatcher/mod.rs so the designer agent always reviews the codebase (and public libraries) for existing code, components, icons, buttons, and patterns before proposing a new design.
  • If an exact match already exists, the designer must reuse it directly instead of designing something new.
  • If only similar (non-exact) options exist, the designer must list each one, assess how likely it is to be a viable fit and why, and ask the user whether to extend, duplicate, or build from scratch — rather than deciding unilaterally.
  • Falls back to designing from scratch only when nothing similar exists anywhere in the codebase or in available public libraries.

Test plan

  • cargo build succeeds with no errors
  • Confirmed no existing tests assert on the literal Designer prompt string (checked tests/ and src/), so no test updates were required

Generated by Claude Code

…ew designs

The designer role now must check for existing code, components, icons,
buttons, and patterns in the codebase as well as public libraries before
proposing anything new. When an exact match exists it must be reused
outright; when only similar options exist, the designer lists them with
a viability assessment and asks the user whether to extend, duplicate,
or build from scratch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RNvs8t5Qeiz2vwZjLNjKPm
@wparad
wparad merged commit 913016d into main Jun 28, 2026
1 check passed
@wparad
wparad deleted the claude/designer-code-review-7htb9k branch June 28, 2026 20:58
wparad added a commit that referenced this pull request Jul 25, 2026
Designer must review existing code/libraries before proposing new designs
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