restore-exocortex
Skill64 starsChanged 13 days agoMITView on GitHub
Restore IWE memory from an exocortex backup on a new device or after data loss — NL wrapper around restore-from-exocortex.sh.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- iwesys/IWEedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- iwesys/IWE★ 011% same
Wrote their own version · 0
None found.
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 repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-faultSkill
- apply-capturesSkill
- archgateSkill
- artifactorSkill
- audit-docsSkill
- audit-installationSkill
- author-modeSkill
- bottleneck-pickSkill
- check-secretSkill
- consentSkill
- day-closeSkill
- day-openSkill
- decomposeSkill
- diagnoseSkill
- discovery-sessionSkill
- extendSkill
- find-methodSkill
- fpfSkill
- integration-gateSkill
- iwe-bug-reportSkill
- iwe-platform-redteamSkill
- iwe-restoreSkill
- iwe-rules-reviewSkill
- iwe-updateSkill
- keSkill
- kimi-peer-writerSkill
- local-llmSkill
- mentor-participant-briefSkill
- month-closeSkill
- onboardingSkill
- org-devSkill
- pack-creatorSkill
- pack-newSkill
- peer-conversationSkill
- personal-guide-renderSkill
- personal-guide-startSkill
- platform-bottleneckSkill
- repo-newSkill
- run-protocolSkill
- setup-wakatimeSkill
- skill-creatorSkill
- strategy-sessionSkill
- skill-id # kebab-case, уникален в skills-catalog.yamlSkill
- thinkSkill
- transcribeSkill
- vdvSkill
- verify-hypothesesSkill
- verifySkill
- week-close-pilotSkill
- week-closeSkill
- wp-newSkill
- w-reflectionSkill
The file
Files
/restore-exocortex — Восстановление памяти из exocortex
Роль: R6 Кодировщик Триггер: «восстанови экзокортекс / память», новое устройство, потеря/повреждение
memory/Service Clause: DP.SC.153 (родительский, скиллы); реализация #125
Обещание (контракт)
Вход: (опц.) путь к governance-репо. По умолчанию $WORKSPACE_DIR/$GOVERNANCE_REPO (${IWE_WORKSPACE:-$HOME/IWE}/DS-strategy).
Выход: восстановленные memory/ + extensions/ + CLAUDE.md + симлинк memory/; отчёт + напоминание перезапустить Claude Code.
Инвариант: НЕ перезаписывает населённую memory/ или extensions/ без явного подтверждения пользователя.
Оркестрация, не реализация. Скилл судит (свежее устройство vs существующая инсталляция, резолв пути, подтверждение) и зовёт детерминированный примитив
scripts/restore-from-exocortex.sh. Сам file-ops не делает. На голом терминале без агента используется скрипт напрямую — это bootstrap-путь (см. SETUP-GUIDE).
Алгоритм
Шаг 1. Резолв скрипта и пути
- Скрипт:
$IWE_SCRIPTS/restore-from-exocortex.sh→ fallback$WORKSPACE_DIR/FMT-exocortex-template/scripts/restore-from-exocortex.sh. Нет файла → см. Режим отказа. - Governance-репо: аргумент пользователя, иначе
$WORKSPACE_DIR/${GOVERNANCE_REPO:-DS-strategy}. Убедиться, что<gov>/exocortex/существует.
Шаг 2. Pre-flight (judgment — здесь LLM уместен)
- Определить целевую auto-memory:
~/.claude/projects/$(echo "$HOME" | tr '/_.' '-')-IWE/memory(Claude Code слугифицирует/,_,.→-;tr '/' '-'промахнётся при_в username). - Пусто/нет → свежее устройство, восстановление без
--force. - Населена → существующая инсталляция. Это destructive: показать
--dry-runи спросить подтверждение перед--force(Правило 7, исключение «необратимое»).
Шаг 3. Превью → восстановление
- Всегда сначала
restore-from-exocortex.sh <gov> --dry-run— показать пользователю, что будет сделано. - После согласия (или сразу, если memory пуста) — запуск без
--dry-run(с--force, если memory населена и пользователь подтвердил).
Шаг 4. Отчёт
- Сколько memory-файлов восстановлено, восстановлен ли
CLAUDE.md, создан ли симлинк. - Напомнить: перезапустить Claude Code — память грузится при старте сессии.
Режим отказа
| Сценарий | Поведение |
exocortex/ не найден | Стоп: backup отсутствует/не запушен. Подсказать git pull governance-репо или проверить путь |
| Скрипт не найден | До мержа #151 — взять из ветки: git checkout feat/exocortex-sync-restore -- scripts/restore-from-exocortex.sh; иначе bug-report |
| memory населена, нет подтверждения | НЕ перезаписывать. Показать dry-run, ждать явного «да»/--force |
| Агент ещё не настроен (голое устройство) | Скилл недоступен → инструктировать запуск скрипта из терминала (bootstrap-путь, SETUP-GUIDE) |
<!-- USER-SPACE --><!-- /USER-SPACE -->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.

