Skip to content
Closed
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 .opencode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"dependencies": {
"@google/genai": "^1.38.0",
"@opencode-ai/plugin": "1.1.39",
"@opencode-ai/plugin": "1.2.15-feature/model-tiers-07c681eab",
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.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check if the specified version exists in the npm registry

echo "Checking if `@opencode-ai/plugin`@1.2.15-feature/model-tiers-07c681eab exists in npm registry..."
npm view `@opencode-ai/plugin`@1.2.15-feature/model-tiers-07c681eab version 2>&1

echo ""
echo "Listing available versions matching 1.2.x pattern:"
npm view `@opencode-ai/plugin` versions --json 2>&1 | grep -E '"1\.2\.' | head -20

Repository: Steffen025/pai-opencode

Length of output: 1044


🏁 Script executed:

# Check the actual version in package.json and look for the plugin reference in bun.lock
head -20 .opencode/package.json
echo "---"
grep -i "@opencode-ai/plugin" .opencode/bun.lock | head -5

Repository: Steffen025/pai-opencode

Length of output: 717


Invalid version specification; bun install will fail.

The version 1.2.15-feature/model-tiers-07c681eab specified in package.json (line 7) does not exist in the npm registry. Additionally, bun.lock (line 1) still references @opencode-ai/plugin@1.1.39, creating a mismatch. Running bun install will fail because the specified version cannot be resolved.

Verify the intended version is 1.2.15 (which exists in the registry) or correct to the appropriate version. Then regenerate the lock file by running bun install and commit the updated bun.lock.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.opencode/package.json at line 7, The dependency version for
`@opencode-ai/plugin` in package.json is invalid; update the entry
"@opencode-ai/plugin" to the correct published semver (e.g., "1.2.15" if that is
intended) and ensure it matches the version referenced in bun.lock (which
currently contains `@opencode-ai/plugin`@1.1.39); after changing package.json run
bun install to regenerate bun.lock and commit the updated bun.lock alongside the
package.json change so versions are consistent.

"ajv": "^8.17.1",
"handlebars": "^4.7.8",
"openai": "^6.16.0",
Expand All @@ -14,4 +14,4 @@
"devDependencies": {
"@types/node": "^25.0.9"
}
}
}
8 changes: 4 additions & 4 deletions .opencode/plugins/lib/model-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import { fileLog } from "./file-logger";
*
* ZEN Free Models (as of Jan 2026):
* - opencode/big-pickle (Free)
* - opencode/grok-code (Free - Grok Code Fast 1)
* - opencode/glm-4.7-free (Free - GLM 4.7)
* - opencode/minimax-m2-1-free (Free - MiniMax M2.1)
* - opencode/gpt-5-nano (Free)
* - opencode/nemotron-3-super-free (NVidia Nemotron 3 Super)
* - opencode/qwen3.6-plus-free (Qwen3.6 Plus Free)
* - opencode/mimo-v2-pro-free (MiMo V2 Pro Free)
* - opencode/mimo-v2-omni-free(MiMo V2 Omni Free)
*
* See: https://opencode.ai/docs/zen/
*/
Expand Down
123 changes: 62 additions & 61 deletions .opencode/profiles/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,104 +8,105 @@
# To pull a model: ollama pull <model>
#
# Recommended models to pull:
# ollama pull qwen2.5-coder:32b # Most capable coding model
# ollama pull qwen2.5-coder:7b # Standard coding model
# ollama pull qwen2.5-coder:1.5b # Fast budget model
# ollama pull qwen3.5:27b # Most capable coding and general model
# ollama pull qwen3.5:9b # Standard coding model
# ollama pull qwen3.5:2b # Fast budget model
# ollama pull mistral-small3.2:24b # Writing focused
#
# Alternative suggestions:
# ollama pull deepseek-coder-v2:latest # Great for code
# ollama pull llama3.2:latest # General purpose
# ollama pull codellama:latest # Code-focused
# ollama pull gpt-oss:20b # General purpose
# ollama pull qwen3.5:35b # Code-focused
#
name: local
description: Local Ollama models - offline/private, customize to your installed models

# Default model for the main opencode.json "model" field
default_model: ollama/qwen2.5-coder:7b
default_model: ollama/qwen3.5:9b

# Agent routing with model tiers (CUSTOMIZE THESE!)
agents:
Algorithm:
model: ollama/qwen2.5-coder:32b
model: ollama/qwen3.5:27b
Architect:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
Engineer:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
general:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
explore:
model: ollama/qwen2.5-coder:1.5b
model: ollama/qwen3.5:2b
Intern:
model: ollama/qwen2.5-coder:1.5b
model: ollama/qwen3.5:2b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:1.5b
advanced: ollama/qwen2.5-coder:7b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:2b
advanced: ollama/qwen3.5:9b
Writer:
model: ollama/qwen2.5-coder:7b
model: ollama/mistral-small3.2:24b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:9b
standard: ollama/mistral-small3.2:24b
advanced: ollama/mistral-small3.2:24b
DeepResearcher:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
GeminiResearcher:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
GrokResearcher:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
PerplexityResearcher:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
CodexResearcher:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
QATester:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
Pentester:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
Designer:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
Artist:
model: ollama/qwen2.5-coder:7b
model: ollama/qwen3.5:9b
tiers:
quick: ollama/qwen2.5-coder:1.5b
standard: ollama/qwen2.5-coder:7b
advanced: ollama/qwen2.5-coder:32b
quick: ollama/qwen3.5:2b
standard: ollama/qwen3.5:9b
advanced: ollama/qwen3.5:27b
54 changes: 27 additions & 27 deletions .opencode/profiles/zen-paid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# No subscription needed. PAID models preserve privacy (no data collection).
#
# Connect via: /connect in OpenCode → choose ZEN
# Models: kimi-k2.5, glm-4.7, minimax-m2.1, gemini-3-flash
# Models: kimi-k2.5, glm-5, minimax-m2.5, gemini-3-flash
#
name: zen-paid
description: OpenCode ZEN paid models - budget-friendly, privacy-preserving
Expand All @@ -15,40 +15,40 @@ agents:
Architect:
model: opencode/kimi-k2.5
tiers:
quick: opencode/glm-4.7
quick: opencode/glm-5
standard: opencode/kimi-k2.5
advanced: opencode/kimi-k2.5
Engineer:
model: opencode/kimi-k2.5
tiers:
quick: opencode/glm-4.7
quick: opencode/glm-5
standard: opencode/kimi-k2.5
advanced: opencode/kimi-k2.5
general:
model: opencode/glm-4.7
model: opencode/glm-5
tiers:
quick: opencode/glm-4.7
quick: opencode/glm-5
standard: opencode/kimi-k2.5
advanced: opencode/kimi-k2.5
explore:
model: opencode/minimax-m2.1
model: opencode/minimax-m2.5
Intern:
model: opencode/minimax-m2.1
model: opencode/minimax-m2.5
tiers:
quick: opencode/minimax-m2.1
standard: opencode/minimax-m2.1
advanced: opencode/glm-4.7
quick: opencode/minimax-m2.5
standard: opencode/minimax-m2.5
advanced: opencode/glm-5
Writer:
model: opencode/gemini-3-flash
tiers:
quick: opencode/minimax-m2.1
quick: opencode/minimax-m2.5
standard: opencode/gemini-3-flash
advanced: opencode/kimi-k2.5
DeepResearcher:
model: opencode/glm-4.7
model: opencode/glm-5
tiers:
quick: opencode/minimax-m2.1
standard: opencode/glm-4.7
quick: opencode/minimax-m2.5
standard: opencode/glm-5
advanced: opencode/kimi-k2.5
GeminiResearcher:
model: opencode/gemini-3-flash
Expand All @@ -59,38 +59,38 @@ agents:
GrokResearcher:
model: opencode/kimi-k2.5
tiers:
quick: opencode/glm-4.7
quick: opencode/glm-5
standard: opencode/kimi-k2.5
advanced: opencode/kimi-k2.5
PerplexityResearcher:
model: opencode/kimi-k2.5
tiers:
quick: opencode/glm-4.7
quick: opencode/glm-5
standard: opencode/kimi-k2.5
advanced: opencode/kimi-k2.5
CodexResearcher:
model: opencode/glm-4.7
model: opencode/glm-5
tiers:
quick: opencode/minimax-m2.1
standard: opencode/glm-4.7
quick: opencode/minimax-m2.5
standard: opencode/glm-5
advanced: opencode/kimi-k2.5
QATester:
model: opencode/glm-4.7
model: opencode/glm-5
Pentester:
model: opencode/kimi-k2.5
tiers:
quick: opencode/glm-4.7
quick: opencode/glm-5
standard: opencode/kimi-k2.5
advanced: opencode/kimi-k2.5
Designer:
model: opencode/glm-4.7
model: opencode/glm-5
tiers:
quick: opencode/minimax-m2.1
standard: opencode/glm-4.7
quick: opencode/minimax-m2.5
standard: opencode/glm-5
advanced: opencode/kimi-k2.5
Artist:
model: opencode/glm-4.7
model: opencode/glm-5
tiers:
quick: opencode/minimax-m2.1
standard: opencode/glm-4.7
quick: opencode/minimax-m2.5
standard: opencode/glm-5
advanced: opencode/kimi-k2.5
Loading