AGENT SKILL

model-watcher

Monitor Command Code's upstream API for model additions/removals and report changes. Stores a baseline in /home/workspace/.model_baseline.json and compares daily.

License 许可
MIT
最近更新
2026-09-18
Stars
★ 0
Forks
0

01 前言 Front Matter

name
model-watcher
metadata
{ "author": "sillyhippy.zo.computer" }
description
Monitor Command Code's upstream API for model additions/removals and report changes. Stores a baseline in /home/workspace/.model_baseline.json and compares daily.
compatibility
Created for Zo Computer

02 资源文件 1

03 SKILL.md 正文

Model Watcher

Watches Command Code's provider model list for changes.

Run

python3 /home/workspace/Skills/model-watcher/scripts/model_watcher.py

Requirements

  • COMMANDCODE_API_KEY environment variable set in Zo Settings > Advanced
  • Python 3 + requests

Behavior

  1. Fetches current models from https://api.commandcode.ai/provider/v1/models
  2. Loads baseline from /home/workspace/.model_baseline.json (creates one if missing)
  3. Compares and prints any added/removed models
  4. Updates baseline if changes were found

Output codes

  • NO_CHANGES — model list matches baseline
  • CHANGES_DETECTED — models were added or removed
  • Non-zero exit on fetch/API errors

Automation

Intended to run daily via the "Model Watcher Script Execution" automation, which executes the script directly.

04 同仓库更多 Skills