360 Secure SkillHub
360 安全技能中心

Model Brain

Model Brain核心为规则化确定性路由,根据任务类型、风险等级、成本需求,将请求分配至适配模型或零LLM路径,优先低成本方案,高风险/复杂任务自动升级对应高端模型。典型场景含单消息模型选择、成本敏感路由、aaigotchi工作流模型推荐等。输入为各类任务请求,输出含主路由、fallback路由及理由,仅作路由参考无交易权限。

aaigotchi
aaigotchi
热度 46.68
最近更新 2026-05-11 17:35:03
分类:自动化依赖:代码执行应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add model-brain
Metadata
name
model-brain
description
Route each incoming message to the right Bankr/OpenClaw model or to a zero-LLM path based on task type, risk, and cost. Use when you need per-message model selection, cost-aware routing, deterministic skill bypasses, or a model recommendation for aaigotchi workflows.

Model Brain

Use this skill when the goal is to choose the right model for a single message or action.

Core policy

  • Prefer zero-llm when a deterministic skill or script can do the job.
  • Use the cheapest adequate model for low-risk work.
  • Use bankr/claude-sonnet-4.5 for routine wallet and treasury operations that are important but still normal.
  • Escalate to bankr/claude-opus-4.6 only for explicitly high-stakes, security-sensitive, or ambiguous wallet flows.
  • Use bankr/gpt-5.2-codex for coding-heavy implementation work.
  • Keep routing deterministic and rule-based before adding any LLM-on-LLM behavior.
  • Treat the output as a routing recommendation, not as transaction authority.

Default routes

  • zero-llm
    • deterministic skills like pet-me-master
    • shellable tasks with no reasoning need
  • bankr/minimax-m2.5
    • casual chat, lightweight rewriting, simple summaries, low-risk classification
  • bankr/claude-sonnet-4.5
    • general reasoning, planning, product thinking, routine wallet ops
  • bankr/gpt-5.2-codex
    • coding-heavy patching, repo surgery, implementation details
  • bankr/gemini-3-pro
    • long-context synthesis and broad document digestion
  • bankr/gemini-3-flash
    • lightweight vision and quick multimodal triage
  • bankr/claude-opus-4.6
    • explicitly high-stakes wallet actions, security reviews, tricky architecture, final escalation

Routing workflow

  1. Check whether the request can be handled by a deterministic skill or script.
  2. Classify the task: chat, code, wallet, vision, long-context, or deterministic.
  3. Mark whether the request is high-stakes.
  4. Route to the cheapest safe model.
  5. Return the primary route, fallback route, and a short reason.

Quick start

python3 {baseDir}/scripts/route_message.py --text "pet all my 53 gotchis" --json
python3 {baseDir}/scripts/route_message.py --text "rewrite this x thread shorter" --json
python3 {baseDir}/scripts/route_message.py --text "swap ETH to USDC and send to treasury" --json
bash {baseDir}/scripts/select_model.sh --text "build this feature in the repo" --mode summary

Wrapper entrypoint

Use scripts/select_model.sh when you want a simple aaigotchi-friendly wrapper before model selection. It can emit just the route, full JSON, or shell-style env lines.

References

  • Read references/routing-table.md for the routing rules and escalation thresholds.
  • Read references/bankr-models.md for the current Bankr model inventory and aaigotchi default.