Borrowing it
Nothing to install: this file belongs to kamiazya/scopes. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kamiazya/scopes/main/.claude/commands/context/update.mdgit clone --depth 1 https://github.com/kamiazya/scopesWrote 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/kamiazya/scopes/update)<a href="https://agentmods.dev/commands/kamiazya/scopes/update"><img src="https://agentmods.dev/badge/commands/kamiazya/scopes/update/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/kamiazya/scopes/update"><img src="https://agentmods.dev/badge/commands/kamiazya/scopes/update.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.00000 | $0.01823 |
| Opus 5.5 | $0.00000 | $0.00729 |
| Sonnet 5.5 | $0.00000 | $0.00365 |
| Haiku 4.5 | $0.00000 | $0.00182 |
Grade B, and why
update scanned grade B 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 2mo 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- Check context file ages: `find .claude/context -name "*.md" -type f -exec ls -lt {} + | head -5` How it starts
The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Update Context
This command updates the project context documentation in .claude/context/ to reflect the current state of the project. Run this at the end of each development session to keep context accurate.
Required Rules
IMPORTANT: Before executing this command, read and follow:
.claude/rules/datetime.md- For getting real current date/time
Preflight Checklist
Before proceeding, complete these validation steps. Do not bother the user with preflight checks progress ("I'm not going to ..."). Just do them and move on.
1. Context Validation
- Run:
ls -la .claude/context/ 2>/dev/null - If directory doesn't exist or is empty:
- Tell user: "❌ No context to update. Please run /context:create first."
- Exit gracefully
- Count existing files:
ls -1 .claude/context/*.md 2>/dev/null | wc -l - Report: "📁 Found {count} context files to check for updates"
2. Change Detection
Gather information about what has changed:
Git Changes:
- Run:
git status --shortto see uncommitted changes - Run:
git log --oneline -10to see recent commits - Run:
git diff --stat HEAD~5..HEAD 2>/dev/nullto see files changed recently
File Modifications:
- Check context file ages:
find .claude/context -name "*.md" -type f -exec ls -lt {} + | head -5 - Note which context files are oldest and may need updates
Dependency Changes:
- Node.js:
git diff HEAD~5..HEAD package.json 2>/dev/null - Python:
git diff HEAD~5..HEAD requirements.txt 2>/dev/null - Check if new dependencies were added or versions changed
3. Get Current DateTime
- Run:
date -u +"%Y-%m-%dT%H:%M:%SZ" - Store for updating
last_updatedfield in modified files
Instructions
1. Systematic Change Analysis
For each context file, determine if updates are needed:
Check each file systematically:
progress.md - Always Update
- Check: Recent commits, current branch, uncommitted changes
- Update: Latest completed work, current blockers, next steps
- Run:
git log --oneline -5to get recent commit messages - Include completion percentages if applicable
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.
- 2mo ago First seen · 221 lines · 0 tokens per session scan B 8504ff323547
update is a command published in the GitHub repository kamiazya/scopes (2 stars, last pushed 11mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,823 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
update compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| updatekamiazya/scopes | Command | 2 | 11mo ago | Apache-2.0 | B | 0 | Claude Code |
| rb-refreshstudy8677/repobrain | Command | 1.4k | 14d ago | MIT | A | 25 | Claude Code |
| init-workspace-flow-discoverygriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 16 | Claude Code |
| init-workspace-flow-questionsgriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 16 | Claude Code |
| troubleshoot-userzscaler/zscaler-mcp-server | Command | 55 | 10d ago | MIT | A | 25 | Claude Code |
| weeklyalibaizhanov/mengram | Command | 206 | 11d ago | Apache-2.0 | A | 12 | Claude Code |
| create-access-rulezscaler/zscaler-mcp-server | Command | 55 | 10d ago | MIT | A | 20 | Claude Code |