Update: opencode.json

fix per usaree modelli z.ai
This commit is contained in:
2026-04-27 15:05:46 +02:00
parent 6852c13668
commit 47da0e2d6b
+149 -17
View File
@@ -1,5 +1,153 @@
{ {
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"provider": {
"zai": {
"npm": "@ai-sdk/openai-compatible",
"name": "Z.AI Coding Plan",
"options": {
"baseURL": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "{env:ZAI_API_KEY}"
},
"models": {
"glm-4.7": {
"name": "GLM 4.7 (build)"
},
"glm-5.1": {
"name": "GLM 5.1 (thinking)",
"reasoning": true
}
}
}
},
"model": "zai/glm-5.1",
"small_model": "zai/glm-4.7",
"agent": {
"orchestrator": {
"mode": "primary",
"model": "zai/glm-5.1",
"description": "Coordinator - Interfaccia unica con l'utente",
"permission": {
"edit": "allow",
"bash": "allow"
}
},
"pensante-architecture": {
"mode": "subagent",
"model": "zai/glm-5.1",
"description": "Spec-Driven Architecture",
"permission": {
"edit": "deny",
"bash": "ask"
}
},
"pensante-security": {
"mode": "subagent",
"model": "zai/glm-5.1",
"description": "Security Audit",
"permission": {
"edit": "deny",
"bash": "ask"
}
},
"pensante-design": {
"mode": "subagent",
"model": "zai/glm-5.1",
"description": "Design System",
"permission": {
"edit": "deny",
"bash": "ask"
}
},
"pensante-integration": {
"mode": "subagent",
"model": "zai/glm-5.1",
"description": "Integration & Data Flow",
"permission": {
"edit": "deny",
"bash": "ask"
}
},
"executer-implementation": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "Code Implementation",
"permission": {
"edit": "allow",
"bash": "allow"
}
},
"executer-test": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "TDD Tests",
"permission": {
"edit": "allow",
"bash": "allow"
}
},
"executer-security-audit": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "Security Audit Execution",
"permission": {
"edit": "deny",
"bash": "ask"
}
},
"executer-security-fix": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "Security Fixes",
"permission": {
"edit": "allow",
"bash": "allow"
}
},
"executer-ui": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "UI Implementation",
"permission": {
"edit": "allow",
"bash": "allow"
}
},
"executer-visual": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "Visual Assets",
"permission": {
"edit": "allow",
"bash": "ask"
}
},
"executer-build": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "Build Scripts",
"permission": {
"edit": "allow",
"bash": "allow"
}
},
"executer-worker": {
"mode": "subagent",
"model": "zai/glm-4.7",
"description": "Web Worker",
"permission": {
"edit": "allow",
"bash": "allow"
}
}
},
"instructions": [
"AGENTS.md"
],
"permission": {
"skill": {
"*": "allow"
}
},
"mcp": { "mcp": {
"sequential-thinking": { "sequential-thinking": {
"type": "local", "type": "local",
@@ -8,22 +156,6 @@
"-y", "-y",
"@modelcontextprotocol/server-sequential-thinking" "@modelcontextprotocol/server-sequential-thinking"
] ]
},
"context7": {
"type": "local",
"command": [
"npx",
"-y",
"@context7/mcp-server"
]
},
"universal-skills": {
"type": "local",
"command": [
"npx",
"-y",
"github:jacob-bd/universal-skills-manager"
]
} }
} }
} }