Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions detection/toolmention/toolmention.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func init() {
"JetBrains AI",
"CodeRabbit",
"ChatGPT",
"t3.chat",
"GPT-4",
"Windsurf",
}
Expand Down
15 changes: 15 additions & 0 deletions detection/toolmention/toolmention_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down