agent + usage: each agent says what its User-Agent begins with, beside its name and icon, and the gateway tells requests apart by that — usage kept a list of its own, which had to be kept in step with the agents by hand and wasn't (DeepSeek Harness, omp and Command Code were missing from it, so they were drawn with no logo); a new agent is now known by its requests as soon as it is described

This commit is contained in:
yetone
2026-09-25 05:51:32 +08:00
parent 658d264e14
commit a9e1a6769a
11 changed files with 78 additions and 37 deletions
+1
View File
@@ -32,6 +32,7 @@ func commandCode(home string) *Agent {
}
return &Agent{
ID: "commandcode", Name: "Command Code", Icon: "commandcode", Aliases: []string{"command-code", "cmd"},
UA: []string{"command-code", "commandcode"},
Bin: "command-code", Dir: dir, Path: path,
Notice: func() string {
notes := []string{"Command Code wants its own sign-in (cmd login) even for models through magpie."}