From 938740b592164e758200e091836401a5c0721823 Mon Sep 17 00:00:00 2001 From: abhinavgautam01 Date: Wed, 27 May 2026 16:12:31 +0530 Subject: [PATCH] feat: detect t3.chat tool mentions Signed-off-by: abhinavgautam01 --- detection/toolmention/toolmention.go | 1 + detection/toolmention/toolmention_test.go | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/detection/toolmention/toolmention.go b/detection/toolmention/toolmention.go index 89ef46d..ecd6301 100644 --- a/detection/toolmention/toolmention.go +++ b/detection/toolmention/toolmention.go @@ -35,6 +35,7 @@ func init() { "JetBrains AI", "CodeRabbit", "ChatGPT", + "t3.chat", "GPT-4", "Windsurf", } diff --git a/detection/toolmention/toolmention_test.go b/detection/toolmention/toolmention_test.go index 212aff7..ded6712 100644 --- a/detection/toolmention/toolmention_test.go +++ b/detection/toolmention/toolmention_test.go @@ -69,6 +69,21 @@ func TestDetect(t *testing.T) { input: detection.Input{Text: "I asked ChatGPT for help"}, wantTools: []string{"ChatGPT"}, }, + { + name: "t3.chat mention", + input: detection.Input{Text: "I used t3.chat to compare model outputs"}, + wantTools: []string{"t3.chat"}, + }, + { + name: "t3.chat mention is case insensitive", + input: detection.Input{Text: "Generated with T3.CHAT"}, + wantTools: []string{"t3.chat"}, + }, + { + name: "t3.chat word boundary prevents partial match", + input: detection.Input{Text: "This mentions t3.chatty, not the tool"}, + wantTools: nil, + }, { name: "Windsurf mention", input: detection.Input{Text: "Written with Windsurf IDE"},