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.
git clone --depth 1 https://github.com/sonichi/sutandonpx agentmods add skills/sonichi/sutando/self-upgradeWrote 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/skills/sonichi/sutando/self-upgrade)<a href="https://agentmods.dev/skills/sonichi/sutando/self-upgrade"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/self-upgrade/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/skills/sonichi/sutando/self-upgrade"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/self-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 23 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Rogue Agent · line 71 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Rogue Agent · line 72 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.01051 |
| Opus 5.5 | $0.00000 | $0.00420 |
| Sonnet 5.5 | $0.00000 | $0.00210 |
| Haiku 4.5 | $0.00000 | $0.00105 |
Grade A, and why
self-upgrade 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Self-upgrade
Safely upgrade this Sutando checkout to the latest upstream code without bricking the running core session — the "success path" distilled from a real 2026-07-20 upgrade that would otherwise hang (and did, the first time).
Usage: /self-upgrade
Why this skill exists
A naive "pull + restart" self-upgrade gets stuck, because:
src/restart.shends withexec bash src/startup.sh.src/startup.shruns foreground work and foreground-parents the credential-proxy (atsxprocess that never exits). The open-source core is headless: the optional Swift helpers (ax-read,Sutando.app) are built separately by the app packaging/setup workflow, not by core startup.- So running
restart.shinline from the core session never returns — the Bash call hangs forever, the task never gets a result, and from the owner's side you've "gone stuck."
The fix is simple once you know it: hand the restart to the same durable tmux
server that owns the core. A plain nohup … & is not enough: the supported
Codex executor tears down that process tree when the tool call ends. A detached
tmux service pane survives that boundary, remains the parent of restarted
services, and lets startup recreate the managed task notifier.
On activation
Step 1 — Pull + durable restart handoff (mechanical)
Run the helper. It aborts safely on a dirty tree or a non-fast-forward, pulls
--ff-only, and launches src/restart.sh in the persistent
sutando-services tmux session:
bash skills/self-upgrade/scripts/upgrade.sh # origin/main
# bash skills/self-upgrade/scripts/upgrade.sh --no-restart # pull only
Exit 0 = upgraded (or already latest); exit 2 = aborted (dirty tree /
not a fast-forward) — surface the reason and stop.
If the diff touched package*.json / tsconfig / *.swift / requirements
(the script prints this), a rebuild may be needed. For *.swift, rebuild the
optional menu-bar app and ax-read through the app setup workflow; core
startup.sh intentionally does not build them. For npm deps run npm ci
before relying on the TS services.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 92 lines · 0 tokens per session scan A 36231bce36cf
self-upgrade is a skill published in the GitHub repository sonichi/sutando (413 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,051 tokens. 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.
self-upgrade compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| self-upgradesonichi/sutando | Skill | 413 | today | MIT | A | 0 | Claude Code, Codex |
| gmailvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 20 | Claude Code, Codex |
| app-buildervellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 162 | Claude Code, Codex |
| assistant-migrationvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 90 | Claude Code, Codex |
| guardian-verify-setupvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 26 | Claude Code, Codex |
| stripe-link-walletvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 52 | Claude Code, Codex |
| vellum-memory-v2-migrationvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 34 | Claude Code, Codex |