chore(doc-agent): simplify model selection

Amolith created

Remove model flag and hard-code GLM-4.7 for both heavy and light model
flags. This simplifies the interface by removing the need for users to
choose between multiple models.

Assisted-by: GLM 4.7 via Crush

Change summary

dot_config/private_fish/functions/doc-agent.fish | 23 ++---------------
1 file changed, 3 insertions(+), 20 deletions(-)

Detailed changes

dot_config/private_fish/functions/doc-agent.fish 🔗

@@ -10,9 +10,7 @@ function doc-agent --description "Invoke Synclaude as a documentation-focused su
     set -l go_disallowed_tools "Bash(*) Explore Edit Read WebFetch WebSearch Glob Grep NotebookEdit NotebookRead SlashCommand Task Write"
     set -l go_usage "\
 Looking up Go stdlib, types, functions, methods, interfaces, or third-party \
-package APIs, ask about usage, combining functions from across APIs, etc. For \
-complex questions about i.e. combining modules, specify the -m sonnet model \
-for a higher-quality answer."
+package APIs, asking about usage, combining functions from across APIs, etc."
     set -l go_system_prompt "\
 You are a focused documentation agent for Go. Use 'go doc' to look up \
 information about Go packages, types, functions, methods, and other symbols. \
@@ -26,11 +24,10 @@ running any tool but Bash to execute `go doc` subcommands. You _must_ use\
 
     # Show help if requested
     if set -q _flag_help
-        echo "Usage: doc-agent -s <set> [-m <haiku|sonnet>] <query>"
+        echo "Usage: doc-agent -s <set> '<query>'"
         echo
         echo "Options:"
         echo "  -s, --set     Documentation set to use (required)"
-        echo "  -m, --model   Model to use: haiku (default) or sonnet"
         echo "  -h, --help    Show this help message"
         echo
         echo "Available documentation sets:"
@@ -49,8 +46,6 @@ running any tool but Bash to execute `go doc` subcommands. You _must_ use\
         echo "Tips:"
         echo "- Encourage looking at specific symbols rather than entire"
         echo "  packages unless context requires it."
-        echo "- If Haiku doesn't provide a satisfactory answer, retry with a"
-        echo "  better prompt before escalating to sonnet."
         echo "- The doc-agent will only have access to its specific"
         echo "  documentation tools; it can't read files, search the web, etc."
         return 0
@@ -63,18 +58,6 @@ running any tool but Bash to execute `go doc` subcommands. You _must_ use\
         return 1
     end
 
-    # Default model to haiku
-    set -l model haiku
-    if set -q _flag_model
-        set model $_flag_model
-    end
-
-    # Validate model
-    if not contains $model haiku sonnet
-        echo "Error: model must be 'haiku' or 'sonnet'" >&2
-        return 1
-    end
-
     # Validate docset exists
     if not contains $_flag_set $available_sets
         echo "Error: unknown documentation set '$_flag_set'" >&2
@@ -94,7 +77,7 @@ running any tool but Bash to execute `go doc` subcommands. You _must_ use\
             return 1
     end
 
-    synu claude -H "hf:moonshotai/Kimi-K2-Thinking" -l "hf:MiniMaxAI/MiniMax-M2" --model $model \
+    synu claude -H "hf:zai-org/GLM-4.7" -l "hf:zai-org/GLM-4.7" --model sonnet \
         --allowed-tools "$allowed_tools" \
         --disallowed-tools "$disallowed_tools" \
         --append-system-prompt "$system_prompt" \