update

update is a command for Claude Code from SterlingChin/marvin-template. It costs 5 tokens per session (437 once invoked), scanned A, original, MIT.

A quick session checkpoint command that records recent work, decisions, changed files, and unfinished threads in project notes.

In plain words
What is it for?
It helps append updates to a daily session log, record decisions, and refresh the project's current-work state without ending the session.
Why use it?
It reduces the chance of losing useful context during a long coding session or after switching tasks.

Command for Claude Code

About the project

MARVIN is a personal AI assistant built to remember conversations, track goals, organize work, and connect to external applications. People use it as a chief-of-staff-style extension for Claude Code or GitHub Copilot CLI, with integrations including Google Workspace, Microsoft 365, Slack, Linear, Notion, and Telegram. The catalogue entries provide commands, agents, skills, and instructions that define MARVIN's workflows.

SterlingChin/marvin-template · 1,017 stars · on GitHub

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/sterlingchin/marvin-template/update
Clone the repo
git clone --depth 1 https://github.com/SterlingChin/marvin-template

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 update

README.md
[![agentmods](https://agentmods.dev/badge/commands/sterlingchin/marvin-template/update.svg)](https://agentmods.dev/commands/sterlingchin/marvin-template/update)
Your own site
<a href="https://agentmods.dev/commands/sterlingchin/marvin-template/update"><img src="https://agentmods.dev/badge/commands/sterlingchin/marvin-template/update.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 437 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.00005 $0.00437
Opus 5 $0.00003 $0.00218
Sonnet 5 $0.00001 $0.00087
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

update 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 5d 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/update.md · 60 lines

What it actually says

/update - Quick Context Checkpoint

Lightweight save without ending the session. Use frequently to preserve context.

Instructions

1. Identify What Changed

Quickly scan the recent conversation (since last checkpoint or session start) for:

  • Topics worked on
  • Decisions made
  • Files created or modified
  • Any state changes needed

Keep it brief. No full summary needed.

2. Append to Session Log

Get today's date: date +%Y-%m-%d

Append to sessions/{TODAY}.md:

## Update: {TIME}
- {what was worked on, 1-3 bullets}

If file doesn't exist, create with header: # Session Log: {TODAY}

3. Log Decisions (if any)

If decisions were made since the last checkpoint, append each to state/decisions.md:

### {TODAY} - {Decision Title}
**Decision:** {What was decided}
**Context:** {Why}
**Status:** Active

Create the file with header # Decision Log if it doesn't exist.

4. Targeted State Update

Read state/current.md and scan for items related to the current work:

  • Mark completed items as done or remove them
  • Add new open threads discovered during work
  • Shift priorities if something became more or less urgent
  • Update "Last updated: {TODAY}" if the file is touched

Only update what's relevant to the current work. Don't rewrite the whole file.

5. Staleness Check

Check the "Last updated" date in state/current.md:

  • If 3+ days old: flag it and ask: "State is {N} days stale. Want me to do a full refresh now or at /end?"
  • If recent: proceed without comment

6. Confirm (minimal)

One line: "Checkpointed: {brief description}"

No summary. No "next actions" list. Just confirm the save.

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. 5d ago First seen · 60 lines · 5 tokens per session scan A 47c84172c200

Subscribe to this mod's changes

update is a command published in the GitHub repository SterlingChin/marvin-template (1,017 stars, last pushed 17d ago), licensed MIT. It adds 5 tokens to every session and 437 once invoked, about $0.0000 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.