mochi-replan

mochi-replan is a skill for Claude Code, Codex from kirodotdev/KiroCrew. It costs 27 tokens per session (956 once invoked), scanned A, original, Apache-2.0.

An internal queue-adjustment workflow for changing a pet's behavior schedule when its situation changes. It updates pending actions using the current queue, watchlist, recent activity, and notes from the previous plan.

In plain words
What is it for?
Use it internally when the pet is dragged, the user discusses its plan, a watched item changes, or the poller marks the queue for replanning.
Why use it?
It keeps the pet's scheduled actions consistent with interruptions, user messages, and changed watched items. It avoids rebuilding the entire schedule when only part of it needs adjustment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it internally when the pet is dragged, the user discusses its plan, a watched item changes, or the poller marks the queue for replanning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kirodotdev/kirocrew/mochi-replan
About the project

Kiro Crew is a persistent development workspace where agents continue multi-step software work across sessions, schedules, and connected interfaces. Developers use it locally or remotely through a desktop app, web dashboard, CLI, Slack, or Discord, with unattended tasks and recurring jobs. The catalogue contains skills and instructions for working with this workspace.

kirodotdev/KiroCrew · 5,138 stars · on GitHub · kiro.dev

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.

Any agent
npx skills add kirodotdev/KiroCrew --skill mochi-replan
Clone the repo
git clone --depth 1 https://github.com/kirodotdev/KiroCrew

Made for: Claude Code, Codex.

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 mochi-replan

README.md
[![agentmods](https://agentmods.dev/badge/skills/kirodotdev/kirocrew/mochi-replan/github.svg)](https://agentmods.dev/skills/kirodotdev/kirocrew/mochi-replan)
Your own site
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/mochi-replan"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/mochi-replan/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.

agentmods 80×15 button for mochi-replan

Your own site · 80×15
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/mochi-replan"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/mochi-replan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 956 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.00956
Opus 5.5 $0.00011 $0.00382
Sonnet 5.5 $0.00005 $0.00191
Haiku 4.5 $0.00003 $0.00096

Measured 1mo ago against content hash c1075fe49dbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mochi-replan 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 1mo 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.

src/kiro_crew/apps/builtins/mochi/agents/skills/mochi-replan/SKILL.md · 76 lines

How it starts

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

@mochi-replan — Partial Queue Adjustment

Adjust the current plan without starting from scratch. Faster and cheaper than @mochi-plan.

Context to Read

  1. get_plan() — the whole current queue, including tasks already done (done: true) in the last 2 hours; skip those when deciding what is still scheduled
  2. get_watchlist() — active watch items (check for overdue items that need scheduling)
  3. read_mochi_file({ which: "activity" }) — recent activity (last 5-10 entries)
  4. The planner_notes from the queue — contains memory from the last full plan (and silent_until when the user asked for quiet)

Do NOT re-read the calendar. That is only for mochi-plan.

Two Modes

Automatic Mode (triggered by poller when needs_replan is true)

Detect what changed and adjust:

  • User dragged the pet (activity shows drag/interrupted_by_user): → Remove the next scheduled move task → Add a playful reaction: { type: "notify", action: { summary: "Hey! I was going somewhere!" }, category: "reaction" } → Optionally add a new move back to a natural position

  • User sent a message referencing the plan (activity shows recent chat): → Check if any queued tasks conflict with what the user said → Adjust accordingly

  • Watched item status changed: → If a watch result notification came in (activity log), update planner_notes.watching_last_status → Note: watch checks are driven by the queue poller (based on nextCheckAfter), not scheduled as queue tasks. Do NOT schedule check_watching tasks.

  • Quiet requested (planner_notes.silent_until is set and in the future): → Remove upcoming notify tasks before that time, keep only moves → When silent_until is null or past, nothing to remove

  • General drift (time passed, some tasks executed): → Rebalance remaining tasks if timing feels off

Explicit Mode (triggered by chat agent with user request)

The chat agent will provide context about what the user wants. Common requests:

  • "Remind me at 5pm" → Chat agent handles this directly via update_watchlist (see prompt.md Watch List section); no queue task is needed. Replan is only needed if the chat agent sets needs_replan: true.
  • "Watch this page" → Chat agent handles this directly via update_watchlist. The queue poller will handle periodic checks automatically based on nextCheckAfter.
  • "Be quiet for a while" → Remove upcoming notify tasks, keep only moves
  • "Come here" → This should use perform_pet_action instead (instant), but if it comes through replan, add an immediate move
  • "Stop moving" → Remove upcoming move tasks

Read the full file on GitHub · 76 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. 1mo ago Changed c1075fe49dbf
  2. 1mo ago Changed · +4 lines 4d0bdff0a8ed
  3. 3mo ago First seen · 72 lines · 27 tokens per session scan A a27abfb99247

Subscribe to this mod's changes

mochi-replan is a skill published in the GitHub repository kirodotdev/KiroCrew (5,138 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 956 once invoked, about $0.0001 per session on Opus 5.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.

Related

mochi-replan compared with skills from other repositories

mochi-replan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mochi-replankirodotdev/KiroCrewSkill5.1ktodayApache-2.0A27Claude Code, Codex
cost-efficiency-analyzerawslabs/agentcore-samplesSkill3.6k4d agoApache-2.0A98Claude Code, Codex
trend-analysisawslabs/agentcore-samplesSkill3.6k4d agoApache-2.0A21Claude Code
deploying-to-staging-environmentAgentWorkforce/relaySkill1.2ktodayApache-2.0A44Claude Code
writing-relayflowsAgentWorkforce/relaySkill1.2ktodayApache-2.0A184Claude Code, Codex
vigilante-create-issuealiengiraffe/vigilanteSkill4212d agoApache-2.0A25Codex
bmad-specalvin-reyes/better-agentic-ideSkill3811d agoMITA76Claude Code