Files
kirogo/proxy/identity_test.go
huangzhenpc 1c2edd5f0d
Some checks failed
Build Docker Image / build (push) Has been cancelled
feat: intercept identity questions and return consistent Claude identity
Kiro's upstream system prompt overrides all user-provided system
prompts and returns "I can't discuss that" for identity questions.
This pre-flight interceptor detects identity questions (Chinese and
English patterns) in the last user message and returns a Claude-style
response directly, bypassing Kiro entirely.

Response language matches the question language; model name reflects
the requested model (Claude Opus 4.7, Claude Sonnet 4.5, etc.).
Applied to both /v1/messages (Claude) and /v1/chat/completions (OpenAI).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 14:14:54 +08:00

2.3 KiB