ci / lint (pull_request) Successful in 13s
Keep ollama-cloud/* as primary. Each agent may declare fallback in agents.json (xai-oc/grok-*). On quota/auth/provider failure, run-agent switches once to the fallback and continues retries. - agents.json: fallback fields for pm/junior/senior/qa/intern - route.sh: emit fallback to GITHUB_OUTPUT - agent.yml: pass FALLBACK env into run-agent - install-opencode.sh: register primary+fallback models in provider maps - run-agent.sh: failover on quota/credit/429/capacity-class errors
67 lines
2.7 KiB
JSON
67 lines
2.7 KiB
JSON
{
|
|
"pm": {
|
|
"model": "ollama-cloud/minimax-m3:cloud",
|
|
"fallback": "xai-oc/grok-4.5",
|
|
"vision": true,
|
|
"mode": "comment",
|
|
"skills": [
|
|
"gitea-api"
|
|
],
|
|
"desc": "Product manager & orchestrator — plans and picks the dev, hands each finished PR to @qa for review, and reports back to the issue creator (in autopilot it merges approved PRs itself). Works from the issue thread only — comments only, never edits files, never reads the PR diff. Falls back to xAI grok-4.5 if Ollama Cloud is unavailable/quota-exhausted."
|
|
},
|
|
"junior": {
|
|
"model": "ollama-cloud/kimi-k2.7-code:cloud",
|
|
"fallback": "xai-oc/grok-4.3",
|
|
"vision": false,
|
|
"mode": "pr",
|
|
"skills": [],
|
|
"desc": "Junior dev — small, low-risk changes (mostly YAML/compose/config). Text-only, cannot read images. Defers complex or image tasks to @senior or @lead. Falls back to xAI grok-4.3 if Ollama Cloud fails."
|
|
},
|
|
"senior": {
|
|
"model": "ollama-cloud/glm-5.2:cloud",
|
|
"fallback": "xai-oc/grok-4.5",
|
|
"vision": false,
|
|
"mode": "pr",
|
|
"skills": [
|
|
"gitea-api"
|
|
],
|
|
"desc": "Senior dev — complex, multi-file implementation (GLM-5.2 via Ollama Cloud, text-only). Falls back to xAI grok-4.5 if Ollama Cloud fails."
|
|
},
|
|
"lead": {
|
|
"model": "xai-oc/grok-4.5",
|
|
"vision": true,
|
|
"mode": "pr",
|
|
"skills": [
|
|
"gitea-api"
|
|
],
|
|
"desc": "Tech lead — the hardest problems, architecture, and final calls."
|
|
},
|
|
"qa": {
|
|
"model": "ollama-cloud/minimax-m3:cloud",
|
|
"fallback": "xai-oc/grok-4.5",
|
|
"vision": true,
|
|
"mode": "comment",
|
|
"skills": [
|
|
"gitea-api"
|
|
],
|
|
"desc": "QA / reviewer — reviews PRs: reads the diff, drives a headless browser (Playwright) to verify behavior, posts specific recommendations on the PR and the pass/fail verdict on the issue. Never edits code, never merges. Falls back to xAI grok-4.5 if Ollama Cloud fails."
|
|
},
|
|
"ops": {
|
|
"model": "xai-oc/grok-4.5",
|
|
"vision": false,
|
|
"mode": "comment",
|
|
"skills": [
|
|
"gitea-admin"
|
|
],
|
|
"desc": "Gitea operator — administers the Gitea instance itself: create orgs/users/repos, manage labels and secrets, mint scoped per-user tokens, bootstrap new repos with the agent caller. Comments only; never edits code. ALWAYS confirms before any destructive action (delete user/repo/org)."
|
|
},
|
|
"intern": {
|
|
"model": "ollama/ornith:35b",
|
|
"fallback": "xai-oc/grok-4.3",
|
|
"vision": false,
|
|
"mode": "pr",
|
|
"skills": [],
|
|
"desc": "Intern — very basic tasks only, routed to the local Ollama model (ornith:35b). Text-only, cannot read images. Escalates anything non-trivial to @junior, @senior or @lead. Falls back to xAI grok-4.3 if local Ollama is down."
|
|
}
|
|
}
|