self-upgrade
Skill396 starsChanged 6 months agoMITView on GitHub
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 A naive "pull + restart" self-upgrade gets stuck, because: 1. src/restart.sh ends with exec bash src/startup.sh. 2. src/startup.sh runs foreground work and foreground-parents the credential-proxy (a tsx process that never exits). The open-source core is headless: the optional Swift helpers (ax-read, Sutando.app) are…
2 other projects use a version of this.
Adopted by
Most recently taken up by
- vellum-ai/vellum-assistanttheir own version, first seen Jul 8, 2026
- eugenezhangco-spec/athenatheir own version, first seen May 3, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- vellum-ai/vellum-assistant★ 1.5ksame name
- eugenezhangco-spec/athena★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-activitySkill
- agent-registrySkill
- agent-room-opsSkill
- answer-formatSkill
- audio-transcribeSkill
- bee-actionsSkill
- bot2bot-postSkill
- call-diagnosticsSkill
- claude-codexSkill
- claude-geminiSkill
- claude-piSkill
- claude-routerSkill
- collaboration-intelligenceSkill
- connect-appsSkill
- context-dropSkill
- context-reconstructSkill
- db-browserSkill
- deal-finderSkill
- doc-ingestSkill
- electron-overlay-dimmingSkill
- email-findSkill
- engine-conflict-resolveSkill
- gemini-ttsSkill
- image-generationSkill
- import-claude-contextSkill
- local-workspace-serverSkill
- macos-toolsSkill
- macos-useSkill
- make-viral-videoSkill
- marketplaceSkill
- media-transcriptSkill
- meeting-prepSkill
- meeting-schedulerSkill
- mention-gateSkill
- model-switchSkill
- morning-briefingSkill
- ms365-connectSkill
- observeSkill
- obsidian-vaultSkill
- openai-ttsSkill
- open-sutando-refSkill
- overlay-appsSkill
- phone-conversationSkill
- proactive-loopSkill
- pr-shepherd-contractSkill
- quota-trackerSkill
- regression-searchSkill
- relaySkill
- releaseSkill
- report-feedbackSkill
- review-preflightSkill
- room-collabSkill
- schedule-cronsSkill
- screen-companionSkill
- screen-recordSkill
- self-diagnoseSkill
- session-recapSkill
- skill-usage-reportSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
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
- Very specific: line 44
If the diff touched package*.json / tsconfig / *.swift / requirements (the script prints this), a rebuild may be needed.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 onlyExit 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.
Step 2 — Verify + report
python3 src/health-check.pyExpect "All systems operational." Confirm the core survived (the restart
log contains sutando-core already running — restart.sh never touches the
core CLI), the managed sutando-core-watcher tmux session exists, and bridges
came back on new PIDs. telegram-bridge / slack-bridge warnings are fine
if they were already optional/unconfigured.
For live-path evidence, submit one task through POST /task, write its result,
and confirm GET /result/<id> returns that exact body after the restart.
Report to the owner: old → new commit, how many commits, whether a rebuild was needed, and that the core stayed up.
Guardrails (learned the hard way)
- Never run
restart.sh/startup.shinline from the core session, and do not rely on plainnohup … &. Inline = stuck; an executor may reap the nohup child. Use the helper's durable tmux handoff. - Do NOT hand-kill an active
sutando-servicessession to "tidy up." It deliberately parks after startup completes so background bridges keep their durable parent. The helper marks the sessiondoneand only replaces that completed session when a later upgrade actually needs another restart. - Verify a process is actually yours before killing anything.
pgrep -f watch-tasks-streamalso matches other installs (e.g. a/tmp/…checkout); match the full repo path, not a bare pattern. - Clean tree first. The helper aborts on uncommitted changes rather than clobber them; commit or stash before upgrading.
Iteration log
- v0.2.0 — 2026-07-23 — replace plain
nohupwith a durablesutando-servicestmux handoff that outlives task executors and keeps the bridge parent alive after startup; completion markers are isolated per tmux socket. - v0.1.0 — 2026-07-20 — initial. Distilled from a live self-upgrade (8 commits behind → 0) where the naive inline restart hung on startup.sh's foreground Swift build + credential-proxy hold.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

