refresh

refresh is a command for Claude Code from wrg32786/aigent-os. It costs 19 tokens per session (120 once invoked), scanned A, original, MIT.

A manual command that writes a context capsule, a saved summary of current work, and asks you to clear the session. The next session can then resume from that capsule.

In plain words
What is it for?
Use it before starting a fresh session so the next session can continue from the saved capsule.
Why use it?
It gives long tasks a deliberate handoff point when the current conversation is becoming too large. It cannot clear the session for you.

Command for Claude Code

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

Part of the context-capsule plugin — 2 skills, 3 commands, 2 hooks shipped together

Good fit Use it before starting a fresh session so the next session can continue from the saved capsule.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wrg32786/aigent-os/refresh
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.

Clone the repo
git clone --depth 1 https://github.com/wrg32786/aigent-os

Made for: Claude Code.

Or install context-capsule, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 2 hooks.

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 refresh

README.md
[![agentmods](https://agentmods.dev/badge/commands/wrg32786/aigent-os/refresh/github.svg)](https://agentmods.dev/commands/wrg32786/aigent-os/refresh)
Your own site
<a href="https://agentmods.dev/commands/wrg32786/aigent-os/refresh"><img src="https://agentmods.dev/badge/commands/wrg32786/aigent-os/refresh/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 refresh

Your own site · 80×15
<a href="https://agentmods.dev/commands/wrg32786/aigent-os/refresh"><img src="https://agentmods.dev/badge/commands/wrg32786/aigent-os/refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 120 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.
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.00019 $0.00120
Opus 5.5 $0.00008 $0.00048
Sonnet 5.5 $0.00004 $0.00024
Haiku 4.5 $0.00002 $0.00012

Measured today against content hash 14a92cc08597, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refresh 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 today.

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.

plugins/context-capsule/commands/refresh.md · 12 lines

What it actually says

Do a manual context refresh:

  1. Run the context-capsule skill: write and validate a capsule.
  2. If validation passed, reply with exactly two short lines: the capsule path, and "Run /clear now. The new session will name this capsule and continue from it."
  3. If it did not validate, say what failed and do not suggest /clear.

You cannot type /clear yourself; only the user can. Do nothing after those 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. today First seen · 12 lines · 19 tokens per session scan A 14a92cc08597

Subscribe to this mod's changes

refresh is a command published in the GitHub repository wrg32786/aigent-os (25 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 120 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-10-28.