Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/datathings/marketplacenpx agentmods add commands/datathings/marketplace/migrateWrote 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.
[](https://agentmods.dev/commands/datathings/marketplace/migrate)<a href="https://agentmods.dev/commands/datathings/marketplace/migrate"><img src="https://agentmods.dev/badge/commands/datathings/marketplace/migrate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/datathings/marketplace/migrate"><img src="https://agentmods.dev/badge/commands/datathings/marketplace/migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00016 | $0.03018 |
| Opus 5.5 | $0.00006 | $0.01207 |
| Sonnet 5.5 | $0.00003 | $0.00604 |
| Haiku 4.5 | $0.00002 | $0.00302 |
Grade C, and why
migrate scanned grade C with 1 finding 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 3mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **D) Dev reset**: `rm -rf gcdata` (destructive, dev only) How it starts
The opening of the file, as written. The whole thing — 291 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GreyCat Migration & Database Management
Purpose: Schema changes, data transformations, bulk import/export, storage maintenance.
⚠ These ops are sequential, interactive, and destructive — do them one at a time, never in parallel, and back up before anything risky.
Step 1: Choose Operation (AskUserQuestion)
- A. Schema Evolution — add/remove fields, detect breaking changes
- B. Data Migration — transform existing data
- C. Import/Export — bulk CSV/JSON ops
- D. Storage Health — defrag, backup, diagnostics
Operation A: Schema Evolution
A.1 Scan models
find src -name "*.gcl" -not -name "*_api.gcl" -not -name "*_reader.gcl" -not -name "*_writer.gcl"
Per file: extract type Name { ... } definitions + field lists.
A.2 Ask change type (AskUserQuestion)
Add field · Remove field · Change field type · Rename field (requires migration).
A.3 Add field — safety analysis
The runtime diffs the new program against the stored ABI on rebuild and auto-migrates compatible changes:
• Add a NULLABLE attribute → auto-migrates (existing instances read it as null).
• Add a NON-NULL attribute WITH a default → auto-migrates (existing instances get the default).
• Add a NON-NULL attribute WITHOUT a default → load FAILS — provide a default or write a migration.
• Remove an attribute → auto (dropped on next save). Rename → NOT auto (looks like remove + add).
Options:
- A) Nullable (Recommended):
field: T?;— no data touched, safe - B) Non-null with default:
field: T = <default>;— auto-migrates existing instances to the default - C) Nullable → backfill → tighten: for a computed (non-constant) backfill, safe for production
- D) Dev reset:
rm -rf gcdata(destructive, dev only) - E) Cancel
Option C (computed backfill) — generate migration:
// src/migration/migrate_YYYYMMDD_<desc>.gcl
fn migrate_add_device_priority() {
info("Start: add Device.priority");
var count = 0; var errors = 0;
for (id: int, device in devices_by_id) {
try {
device->priority = 1; // user-provided default
count = count + 1;
if (count % 100 == 0) info("Migrated ${count}...");
} catch (ex) { error("Failed ${id}: ${ex}"); errors = errors + 1; }
}
info("Done: ${count} updated, ${errors} errors");
}
Then: greycat run migrate_add_device_priority → set type non-nullable → greycat lint.
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.
- 3mo ago First seen · 291 lines · 16 tokens per session scan C a9a15f0dc422
migrate is a command published in the GitHub repository datathings/marketplace (12 stars, last pushed 3d ago), licensed Apache-2.0. It adds 16 tokens to every session and 3,018 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
migrate compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| migratedatathings/marketplace | Command | 12 | 3d ago | Apache-2.0 | C | 16 | Claude Code |
| initfcakyon/claude-codex-settings | Command | 1.2k | today | Apache-2.0 | A | 0 | Claude Code |
| securityajitpratap0/GoSQLX | Command | 127 | yesterday | Apache-2.0 | A | 21 | Claude Code |
| database-setupimsaif/design-with-claude | Command | 11 | 14d ago | MIT | A | 36 | Claude Code |
| new-migrationRaNDoM6913/claude-code-superkit | Command | 3 | today | MIT | A | 22 | Claude Code |
| json.batch_getstratalab/strata-core | Command | 5 | today | Apache-2.0 | A | 0 | Claude Code |
| kv.batch_getstratalab/strata-core | Command | 5 | today | Apache-2.0 | A | 0 | Claude Code |