migrate-tasks

migrate-tasks is a command for Claude Code from studioKjm/ai-harness-template. It costs 37 tokens per session (907 once invoked), scanned A, original, MIT.

A task-migration command that compares existing implementation tasks with a newer version of a project specification. It labels tasks as unchanged, modified, deprecated, or added.

In plain words
What is it for?
Use it after comparing specification versions and before running task decomposition for the new version.
Why use it?
It shows which previous tasks are still valid after requirements change, helping preserve useful work and context before generating tasks again.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .harness/methodologies/living-spec/scripts/migrate-tasks.py --to <version>.

Part of the harness plugin — 44 commands, 11 agents shipped together

Install

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.

Clone the repo
git clone --depth 1 https://github.com/studioKjm/ai-harness-template
agentmods
npx agentmods add commands/studiokjm/ai-harness-template/migrate-tasks

Made for: Claude Code.

Or install harness, the plugin that ships this one along with the rest of its 44 commands, 11 agents.

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 migrate-tasks

README.md
[![agentmods](https://agentmods.dev/badge/commands/studiokjm/ai-harness-template/migrate-tasks.svg)](https://agentmods.dev/commands/studiokjm/ai-harness-template/migrate-tasks)
Your own site
<a href="https://agentmods.dev/commands/studiokjm/ai-harness-template/migrate-tasks"><img src="https://agentmods.dev/badge/commands/studiokjm/ai-harness-template/migrate-tasks.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 907 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.1 $0.00037 $0.00907
Opus 5 $0.00018 $0.00453
Sonnet 5 $0.00007 $0.00181
Haiku 4.5 $0.00004 $0.00091

Measured 6d ago against content hash 9f9c45e24378, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

migrate-tasks 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 6d 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.

methodologies/living-spec/commands/migrate-tasks.md · 95 lines

How it starts

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

/migrate-tasks — Task Migration Planner

새 seed 버전에 대해 기존 태스크 영향 분석

When to use

  • After /diff-spec reveals AC/entity/action changes between seed versions
  • Before re-running /decompose for the new version (avoids losing context from prior tasks)
  • When an external requirement change forces breaking AC removal

Prerequisites

  • Living Spec methodology active
  • .harness/ouroboros/tasks/ exists with tasks from prior /decompose runs
  • Both source and target seed versions must exist

Usage

/migrate-tasks --to 2                # auto-detect 'from' as latest version below 2
/migrate-tasks --from 1 --to 3       # explicit
/migrate-tasks                       # auto: from latest-1 to latest

Instructions

Delegate to the Python classifier; do not classify tasks by reading them yourself — the script's reference matching against seed signatures is more reliable than free-form LLM judgment.

Step 1 — Locate the script

.harness/methodologies/living-spec/scripts/migrate-tasks.py

Step 2 — Resolve --to if missing

If the user didn't specify --to, default to the highest-numbered seed:

ls .harness/ouroboros/seeds/seed-v*.yaml | sort -V | tail -1 | grep -oE 'v[0-9]+' | tr -d 'v'

Step 3 — Run

python3 .harness/methodologies/living-spec/scripts/migrate-tasks.py --to <version>

The script:

  • Reads all .harness/ouroboros/tasks/*.yaml (excluding migration-plans/)
  • Compares each task's references.{ac, entities, actions} against target seed's signatures
  • Classifies as: unchanged (refs intact), deprecated (refs removed), modified (placeholder for v0.2)
  • Identifies added items: AC/entities/actions present in target seed but not covered by any task
  • Saves to .harness/ouroboros/tasks/migration-plans/migration-v{from}-to-v{to}.yaml

Step 4 — Report

Relay the script's stdout summary. Then surface follow-up recommendations:

Category Recommended next action
unchanged No action needed — these tasks remain valid
modified Review each — open the task and check whether AC tightening requires re-implementation
deprecated Decide per-task: archive, delete, or replace. Suggest using /decompose --replace <task-id> once available
added Run /decompose against the new seed version to generate covering tasks

Read the full file on GitHub · 95 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. 6d ago First seen · 95 lines · 37 tokens per session scan A 9f9c45e24378

Subscribe to this mod's changes

migrate-tasks is a command published in the GitHub repository studioKjm/ai-harness-template (43 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 907 once invoked, about $0.0002 per session on Opus 5. 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.