Skip to content
Merged
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
4 changes: 2 additions & 2 deletions config/codex/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ model_provider = "ollama"
model = "openai/gpt-oss-120b"
model_provider = "lmstudio"

[profiles.qwen3-coder-30b]
model = "qwen/qwen3-coder-30b"
[profiles.glm-4.7-flash]
model = "zai-org/glm-4.7-flash"
model_provider = "lmstudio"
4 changes: 2 additions & 2 deletions config/opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
"openai/gpt-oss-120b": {
"name": "OpenAI: gpt-oss-120b"
},
"qwen/qwen3-coder-30b": {
"name": "Qwen: Qwen3 Coder 30B A3B Instruct"
"zai-org/glm-4.7-flash": {
"name": "GLM-4.7 Flash (via LM Studio)"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion dotagents
8 changes: 4 additions & 4 deletions home-manager/programs/fish/functions/_coxel_function.fish
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
function _coxel_function --description "Run Codex with a free-form prompt using the local gpt-oss:120b model"
# Run Codex with a free-form prompt (spaces allowed) using the local gpt-oss:120b model
function _coxel_function --description "Run Codex with a free-form prompt using the local glm-4.7-flash model"
# Run Codex with a free-form prompt (spaces allowed) using the local glm-4.7-flash model
Comment on lines +1 to +2

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function description and comment reference 'glm-4.7-flash model', but the actual profile being used is 'glm-4.7-flash' (seen in lines 6 and 9). Similar to the other function, there's a mismatch between the old description mentioning 'gpt-oss:120b' and the profile name. The descriptions should accurately reflect the profile being used.

Suggested change
function _coxel_function --description "Run Codex with a free-form prompt using the local glm-4.7-flash model"
# Run Codex with a free-form prompt (spaces allowed) using the local glm-4.7-flash model
function _coxel_function --description "Run Codex with a free-form prompt using the glm-4.7-flash profile"
# Run Codex with a free-form prompt (spaces allowed) using the glm-4.7-flash profile

Copilot uses AI. Check for mistakes.
# Usage: cxel [<prompt words...>]

if test (count $argv) -eq 0
codex --profile 'gpt-oss-120b' --full-auto -c model_reasoning_summary_format=experimental
codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental
else
set -l prompt (string join " " -- $argv)
codex --profile 'gpt-oss-120b' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt"
codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt"
end
Comment on lines 5 to 10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and reduce code duplication, you can refactor this if/else block. By constructing the codex command arguments in a list, you can avoid repeating the common parts of the command.

  set -l cmd codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental
  if test (count $argv) -gt 0
    set -a cmd -- (string join ' ' -- $argv)
  end
  command $cmd

end
4 changes: 2 additions & 2 deletions home-manager/programs/fish/functions/_coxelh_function.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function _coxelh_function --description "Run Codex headlessly with local gpt-oss:120b model"
function _coxelh_function --description "Run Codex headlessly with local glm-4.7-flash model"

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function description references 'glm-4.7-flash' but the actual profile used in line 11 is 'glm-4.7-flash', while the old description mentioned 'gpt-oss:120b'. The description should match the profile name being used. However, looking at the actual change, the description was updated from 'gpt-oss:120b' to 'glm-4.7-flash', but line 11 uses profile 'glm-4.7-flash'. This inconsistency suggests the description was incorrectly updated - it should describe the profile being used, not a different model name.

Copilot uses AI. Check for mistakes.
# Prompt for input and run Codex with local model
# Usage: coxelh

Expand All @@ -8,5 +8,5 @@ function _coxelh_function --description "Run Codex headlessly with local gpt-oss
return 1
end

codex --profile 'gpt-oss-120b' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt"
codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt"
end
Loading