model-register

model-register is a command for Claude Code from with-geun/alive-analysis. It costs 0 tokens per session (1,190 once invoked), scanned A, original, MIT.

A command for adding a deployed machine-learning model to a model registry, which is a record of models and their versions. It can use details from an analysis, an experiment, or an existing deployment.

In plain words
What is it for?
Use it to register a new model, create a version from a completed analysis or experiment, and update the model card with its history.
Why use it?
It keeps model details, performance, deployment status, and version history organized in one place.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/with-geun/alive-analysis/model-register
Clone the repo
git clone --depth 1 https://github.com/with-geun/alive-analysis

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for model-register

README.md
[![agentmods](https://agentmods.dev/badge/commands/with-geun/alive-analysis/model-register.svg)](https://agentmods.dev/commands/with-geun/alive-analysis/model-register)
Your own site
<a href="https://agentmods.dev/commands/with-geun/alive-analysis/model-register"><img src="https://agentmods.dev/badge/commands/with-geun/alive-analysis/model-register.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,190 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01190
Opus 5 $0.00000 $0.00595
Sonnet 5 $0.00000 $0.00238
Haiku 4.5 $0.00000 $0.00119

Measured 4d ago against content hash 05095632a923, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

model-register scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/model-register.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/model register

Register a deployed model from a Modeling analysis into the model registry.

Instructions

Step 1: Check prerequisites

  • Check if .analysis/models/ folder exists. If not, create it.
  • Read .analysis/config.md for team context.

Step 2: Identify the model

Three paths:

  • From analysis: "Register a model from a completed Modeling analysis" → ask for analysis ID, read the EVOLVE stage for model details
  • From experiment: "Register a model validated through an experiment" → ask for experiment ID
  • New model: "Register an existing deployed model" → guide through definition

If from analysis:

  1. Resolve file path: analyses/active/{ID}_{slug}/05_evolve.md or analyses/archive/{YYYY-MM}/{ID}_{slug}/05_evolve.md
  2. Extract: model name, type, performance metrics, features, deployment status

Version detection: Check .analysis/models/ for existing model cards matching the same slug ({slug}_v*.md):

  • If found (retraining): Read the latest version card.
    1. Auto-increment version: new version = latest + 1
    2. Copy the Version History table from the latest card — append the new version row
    3. Ask: "The previous version (v{N}) is currently {status}. Should it be marked as retired?" If yes, update the previous card's Status to retired (replaced by v{N+1})
    4. In status.md Models table, update the existing row to the new version
  • If not found (new model): version starts at v1

Step 3: Create model card

Create file: .analysis/models/{model-slug}_v{version}.md

# Model: {name}
> Version: v{version}
> Type: {classification / regression / clustering / recommendation / forecasting}
> Status: {deployed / staging / retired}
> Registered: {YYYY-MM-DD}

## Origin
- Analysis: {analysis ID, if any}
- Experiment: {experiment ID, if any — validation experiment}
- Owner: {team/person}

## Performance
| Metric | Train | Validation | Test | Production |
|--------|-------|------------|------|------------|
| {primary: AUC/RMSE/F1/etc.} | | | | |
| {secondary} | | | | |

- **Baseline comparison**: {vs. previous model or simple heuristic}
- **Business impact**: {e.g., "Reduces false positives by 15%, saving ~$50K/month"}

## Features
| Feature | Type | Importance | Source |
|---------|------|------------|--------|
| {feature_1} | numeric/categorical | high/medium/low | {table.column} |
| {feature_2} | | | |

- **Feature count**: {N}
- **Known leakage risks**: {if any}

## Training
- **Algorithm**: {e.g., XGBoost, LightGBM, logistic regression, neural net}
- **Training data**: {date range, sample size, sampling method}
- **Hyperparameters**: {key params or link to config file}
- **Training time**: {approximate}
- **Reproducibility**: {notebook/script location in assets/}

## Deployment
- **Endpoint/service**: {where the model is served}
- **Input format**: {expected input schema}
- **Output format**: {prediction format}
- **Latency requirement**: {p99 target}
- **Fallback**: {what happens if model fails}

## Monitoring
- **Drift detection**: {method — PSI, KS test, etc.}
- **Retraining trigger**: {condition — e.g., "AUC drops below 0.85", "monthly schedule"}
- **Retraining cadence**: {planned schedule}
- **Monitor ID**: {M-..., if metric monitor is set up}

## Version History
| Version | Date | Change | Performance Δ | Reason |
|---------|------|--------|---------------|--------|
| v{N} | {date} | {what changed} | {metric change} | {why} |

## Risks & Limitations
- **Known biases**: {if any}
- **Population limitations**: {model trained on X, may not generalize to Y}
- **Staleness risk**: {how quickly does the model degrade?}

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 122 lines · 0 tokens per session scan A 05095632a923

Subscribe to this mod's changes

model-register is a command published in the GitHub repository with-geun/alive-analysis (41 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,190 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.