migrate-slack-agents
Skill31k starsChanged 2 months agoMITView on GitHub
Migrate a classic single-bot Slack install to one provisioned Slack app per existing agent group while preserving agent identities, workspaces, memory, and wiring behavior — or record the operator's choice to stay on classic, which remains supported. Use when /update-nanoclaw surfaces the Slack agents requirement, or standalone any time later.
- Reads credentials
2 other projects use a version of this.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- prathish-ks/isthmusword for word, first seen Oct 6, 2026
- TomGranot/groupguardword for word, first seen Sep 3, 2026
Who's talking about nanocoai/nanoclaw
- @github-trending-js.bsky.social“📦 nanocoai / nanoclaw ⭐ 29,631 (+44) 🗒 TypeScript A lightweight alternative to OpenClaw that runs in …”Bluesky · Jun 2, 2026 · 2 likes
- mnemon-dev/mnemon“guide.md and skill.md not written under MNEMON_DATA_DIR — lost on container restart”GitHub · May 29, 2026 · 2 reactions
- socfortress/CoPilot“copilot-talon-improv”GitHub · Sep 2, 2026 · 1 reactions
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop nanoclaw (TypeScript • 🟢) ⭐ 30.6K → https://github.com/nanocoai/nanoclaw …”Bluesky · Aug 30, 2026 · 1 likes
- @github-trending-js.bsky.social“📦 nanocoai / nanoclaw ⭐ 28,995 (+59) 🗒 TypeScript A lightweight alternative to OpenClaw that runs in …”Bluesky · May 20, 2026 · 1 likes
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on GitHub and Bluesky (54 times).
On GitHub · 50
- May 29, 2026guide.md and skill.md not written under MNEMON_DATA_DIR — lost on container restart — mnemon-dev/mnemon2 reactions · 1 comment
- Sep 2, 2026copilot-talon-improv — socfortress/CoPilot1 reaction · 5 comments
- Nov 30, 2026Staleness detected (2026-11-30) — msyvr/awesome-agent-sandboxes0 reactions
- Nov 20, 2026agent-skills.github.nanocoai.nanoclaw: 2026.10.0 → 2026.11.0 — sudosubin/agents.nix0 reactions
- Nov 18, 2026[review mirror] fix(agent-runner): drop queued turns the provider answered inside another turn — drsmk238/nanoclaw0 reactions · 21 comments
45 more on GitHub
- Nov 16, 2026مرشحون جدد للدليل (2026-11-16) — mgrd281/Skill-0 reactions
- Nov 13, 2026OO player rewrites batch 6: sim, hermes, nanoclaw, openclaw, squad, crewai, paperclip, agentrq, crewlet, openswarm — Agent-Analytics/awesome-multi-agent-orchestrators0 reactions · 1 comment
- Nov 1, 2026Script gate for scheduled agents: a cheap check decides whether to wake the brain — Icewater1337/fridolin0 reactions
- Oct 29, 2026fix(telegram): wrap actions with more than 8 buttons into rows of 8 — vercel/chat0 reactions · 1 comment
- Oct 29, 2026Telegram polling: idle getUpdates has no client-side deadline and hangs on a black-holed connection — vercel/chat0 reactions
- Oct 21, 2026docs(gchat): Workspace add-on and webhook verification keys (nanoclaw #4132, #4100) — glifocat/nanoclaw-docs0 reactions · 1 comment
- Oct 16, 2026docs: add NanoClaw to client showcase — agentskills/agentskills0 reactions
- Oct 14, 2026Reposition README: a personable assistant with real memory — bbinoy/ted-personal-assistant0 reactions
- Oct 14, 2026agent-skills.github.nanocoai.nanoclaw: 2.4.0 → 2026.10.0 — sudosubin/agents.nix0 reactions
- Oct 13, 2026M19 stage 4: control-plane simplification decisions (containerized supervisor, embedded store, Hermes pin) — letya999/hermes-hub0 reactions · 2 comments
- Oct 12, 2026Add NanoClaw harness detection — auron-labs/harness-detect0 reactions
- Oct 11, 2026[App Request] NanoClaw — getumbrel/umbrel-apps0 reactions
- Oct 11, 2026Refresh latest contributions and organize profile projects — ogarciarevett/ogarciarevett0 reactions
- Oct 11, 2026docs(promotion): Step 9 — move the pin from v2.4.0 to v2026.10.0 — prathish-ks/isthmus0 reactions
- Oct 10, 2026chore(updates): weekly scan 2026-W41 — tiberiuarva/enterpriseaitools0 reactions · 1 comment
- Oct 4, 2026docs(env): CLAUDE_CODE_AUTO_COMPACT_WINDOW can be set on the host after v2.4.0 — glifocat/nanoclaw-docs0 reactions · 1 comment
- Oct 4, 2026docs(upgrading): setup commits its own files; never stash installed skill files — glifocat/nanoclaw-docs0 reactions · 1 comment
- Oct 4, 2026docs(upgrading): validation refreshes the selected gateway on gateway-skill changes — glifocat/nanoclaw-docs0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.nanocoai.nanoclaw: 2.3.0 → 2.4.0 — sudosubin/agents.nix0 reactions
- Oct 2, 2026fix(e2e): accept NanoClaw setup's own commits after the tested commit — nanocoai/nanoclaw-oss-dev-toolssays it tested it0 reactions
- Oct 1, 2026Dependency advisories still open on v0.52.0 (grpc, x/crypto, otel log, go-archive) — paradigmxyz/iron-proxy0 reactions
- Sep 30, 2026[Candidate] nanocoai/nanoclaw - large collection (63 SKILL.md files) — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 30, 2026agent-skills.github.nanocoai.nanoclaw: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026[Plugin]: NanoClaw — omacom/omarchy-plugin-marketplace0 reactions · 11 comments
- Sep 27, 2026docs(promotion): G4 — move the pin from v2.3.0 to v2.4.0 — prathish-ks/isthmus0 reactions
- Sep 13, 2026feat(e2e): supervise provider authentication in the public wizard — nanocoai/nanoclaw-oss-dev-tools0 reactions
- Sep 2, 2026Suggest: nanocoai/nanoclaw — haggaishachar/awesomemap0 reactions · 1 comment
- Aug 31, 2026candidate: add-wechat — BigPengSays/awesome-creator-skills0 reactions
- Aug 30, 2026candidate: add-wechat — BigPengSays/awesome-creator-skills0 reactions
- Aug 29, 2026candidate: add-wechat — BigPengSays/awesome-creator-skills0 reactions
- Aug 25, 2026harvest: world watch — SaneSanders/noemium0 reactions
- Aug 24, 2026Upstream update detected: plan a sandbox refresh (2026-08-24) — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 23, 2026Upstream: chat SDK dependency bump 4.29.0 -> 4.38.1 — nanocoai/nanoclaw#3460 / #3461 — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 23, 2026Upstream: send_message double-delivery with mid-turn message blocks — nanocoai/nanoclaw#3462 — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 23, 2026Upstream: messages_in UNIQUE-constraint crash on retry — nanocoai/nanoclaw#3457 — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 23, 2026Upstream: Discord approval button custom_id corruption — nanocoai/nanoclaw#3185 / #3458 — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 23, 2026Upstream: claim-stuck watchdog kills busy (not stuck) turns — nanocoai/nanoclaw#3455 — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 23, 2026Track: upstream nanoclaw fixes opened 2026-08-22/23 — DawoudIO/nanoclaw-community-agents0 reactions
- Aug 20, 2026AI Agent Ecosystem Daily 2026-08-21 — huang-yi-dae/agents-radar0 reactions
- Aug 19, 2026fix(pairing): accept spaced approval codes — NousResearch/hermes-agent0 reactions · 1 comment
- Aug 13, 2026Add NanoClaw to compatible clients — agentplugins/agent-plugins-site0 reactions · 2 comments
- Aug 2, 2026chore(sync): update upstream pins for nanoclaw-aio — JSONbored/nanoclaw-aio0 reactions · 1 comment
- Jul 24, 2026🦞 OpenClaw 生态日报 2026-07-24 — zx0828/big_model_radar0 reactions
- Jul 20, 2026🦞 OpenClaw 生态日报 2026-07-20 — 96loveslife/big_model_radar0 reactions
- Jul 19, 2026Add NanoClaw installation instructions to README — Kehillat-Eretz-Hemdah/keh-agent-plugins0 reactions
On Bluesky · 4
- Jun 2, 2026📦 nanocoai / nanoclaw ⭐ 29,631 (+44) 🗒 TypeScript A lightweight alternative to OpenClaw that runs in containers for security. Connects to… — @github-trending-js.bsky.social2 likes and reposts
- Aug 30, 2026🚀 GitHub Intelligence Drop nanoclaw (TypeScript • 🟢) ⭐ 30.6K → https://github.com/nanocoai/nanoclaw heroui (TypeScript • 🟢) ⭐ 30.5K →… — @githubfeed.bsky.social1 likes and repost
- May 20, 2026📦 nanocoai / nanoclaw ⭐ 28,995 (+59) 🗒 TypeScript A lightweight alternative to OpenClaw that runs in containers for security. Connects to… — @github-trending-js.bsky.social1 likes and repost
- Aug 11, 2026My big gripe with a lot of those agent apps is that they basically just promote “go ask AI to configure x”. Like, if NanoClaw install… — @soulfire.jarexibackblaze.org0 likes and reposts · 3 replies
Other versions2 projects use a version of this.
Word for word · 2
- TomGranot/groupguard★ 4100% same
- prathish-ks/isthmus★ 2100% same
Edited · 0
None found.
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 repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- container/CLAUDE.mdCLAUDE.md
- add-anydocSkill
- add-atomic-chat-toolSkill
- add-clidashSkill
- add-codexSkill
- add-dashboardSkill
- add-deltachatSkill
- add-dial-numberSkill
- add-dialSkill
- add-dial-toolSkill
- add-discordSkill
- add-emacsSkill
- add-gchatSkill
- add-githubSkill
- add-imessageSkill
- add-iron-proxySkill
- add-karpathy-llm-wikiSkill
- add-linearSkill
- add-macos-statusbarSkill
- add-matrixSkill
- add-mattermostSkill
- add-mnemonSkill
- add-ollama-providerSkill
- add-ollama-toolSkill
- add-onecliSkill
- add-opencodeSkill
- add-resendSkill
- add-rtkSkill
- add-signalSkill
- add-slackSkill
- add-tavily-toolSkill
- add-teamsSkill
- add-telegramSkill
- add-vercelSkill
- add-webexSkill
- add-wechatSkill
- add-whatsapp-cloudSkill
- add-whatsappSkill
- customizeSkill
- debugSkill
- init-first-agentSkill
- learnSkill
- manage-channelsSkill
- manage-mountsSkill
- migrate-from-openclawSkill
- migrate-from-v1Skill
- migrate-memorySkill
- migrate-nanoclawSkill
- setupSkill
- slack-a2a-roomsSkill
- slack-agent-flowSkill
- update-nanoclawSkill
- update-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 12 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 19
Never call create_agent or ncl groups create.
- Very specific: line 20
Never change an agent_groups.id or write under groups/<folder>/.
- Very specific: line 21
Never merge the channels branch.
- Distinctive: line 22
Never print token values. Show key names and masked presence only.
- Distinctive: line 23
Keep classic rows, credentials, and the shared Slack app available for rollback until the operator explicitly approves cutover.
- Very specific: line 28
Run from the NanoClaw project root.
- Distinctive: line 49
If the classic conjunction is absent and there is no partial state, stop with:
- Distinctive: line 70
If the operator chooses to stay on classic: make no changes, acknowledge the update requirement now using the Phase 9 ack command (the …
- Distinctive: line 76
If the operator chooses to migrate, continue to Phase 2.
- Distinctive: line 80
Before any mutation, capture every classic surface and its complete behavior:
- Distinctive: line 110
every old messaging-group id, type, platform id, and destination name.
- Very specific: line 146
Do not continue unless both report fully applied and their own build/tests pass.
- Very specific: line 160
Never select a path, workspace, or authority on the operator's behalf.
- Very specific: line 182
Do not pass --restart yet.
- Distinctive: line 196
DM:: use the operator DM created by the finish script.
- Very specific: line 201
Create each sibling through ncl messaging-groups create, copying name, is_group, and unknown_sender_policy.
- Very specific: line 214
If a legacy pattern row has NULL engage_pattern, pass .
- Very specific: line 227
Keep suffixed destination names during the rollback window.
- Distinctive: line 241
Do not proceed until all checks pass:
- Very specific: line 243
every slack-<slug> instance authenticates after restart.
- Distinctive: line 253
every mapped sibling row and wiring matches the recorded behavior fields.
- Distinctive: line 255
If a test fails, keep the classic app active, repair the partial named state, and resume from the ledger.
- Distinctive: line 266
Never delete or archive a Slack app automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Migrate classic Slack agents
Turn every agent group wired through the classic instance='slack' adapter into
a named slack-<slug> bot without replacing the agent group. This is an
operator-guided, resumable data migration. It never creates an agent group and
never edits an agent workspace.
Migration is optional. Classic single-bot Slack remains fully supported; this skill first offers the choice, and staying on classic is a valid outcome that also satisfies the update requirement.
Hard invariants:
- Never call
create_agentorncl groups create. - Never change an
agent_groups.idor write undergroups/<folder>/. - Never merge the
channelsbranch; fetch and copy skill-owned files only. - Never print token values. Show key names and masked presence only.
- Keep classic rows, credentials, and the shared Slack app available for rollback until the operator explicitly approves cutover.
Phase 1: Detect classic state
Run from the NanoClaw project root. Read the central DB only through the sanctioned wrapper.
Classic state requires all four signals:
src/channels/index.tscontains the Slack barrel importimport './slack.js';..envhas a non-empty unsuffixedSLACK_BOT_TOKENand either a non-emptySLACK_APP_TOKENorSLACK_SIGNING_SECRET. Check presence without echoing values.This query returns at least one row:
pnpm exec tsx scripts/q.ts data/v2.db "SELECT mg.id, mga.id, mga.agent_group_id FROM messaging_groups mg JOIN messaging_group_agents mga ON mga.messaging_group_id=mg.id WHERE mg.channel_type='slack' AND mg.instance='slack' ORDER BY mg.id, mga.agent_group_id"- At least one wired group does not yet have complete named-instance coverage:
a stable slug, both
SLACK_BOT_TOKEN_<SUFFIX>andSLACK_APP_TOKEN_<SUFFIX>, that slug inSLACK_INSTANCES, and the expectedslack-<slug>messaging-group/wiring rows.
If the classic conjunction is absent and there is no partial state, stop with:
Nothing to migrate: this install does not have the classic shared-bot Slack state.
This is a successful no-op. If only some signals exist, make no changes; report the inconsistent or partial state instead of guessing. If every wired group already has complete named coverage, report that the migration is already complete and proceed only to the update-requirement acknowledgement in Phase 9.
Phase 1b: Offer the choice
Classic state confirmed does not mean migration is required. Present the decision to the operator before touching anything, in words like these:
Your classic Slack setup keeps working as-is — nothing forces this migration. The new Slack experience adds Slack agent spawning (create new agents straight from Slack, each with its own provisioned bot and avatar) plus UX improvements — per-agent identities, DM onboarding, multi-agent rooms. Say the word and we'll run the upgrade now — or run
/migrate-slack-agentslater manually.
If the operator chooses to stay on classic: make no changes, acknowledge the update requirement now using the Phase 9 ack command (the requirement records a decision, not only a completed migration), state that classic Slack continues working unchanged, and stop. Re-running this skill later re-offers the migration.
If the operator chooses to migrate, continue to Phase 2.
Phase 2: Inventory and propose the map
Before any mutation, capture every classic surface and its complete behavior:
pnpm exec tsx scripts/q.ts data/v2.db "SELECT ag.id, ag.name, ag.folder, mg.id, mg.platform_id, mg.name, mg.is_group, mg.unknown_sender_policy, mga.id, mga.engage_mode, mga.engage_pattern, mga.sender_scope, mga.ignored_message_policy, mga.session_mode, mga.threads, mga.priority FROM messaging_groups mg JOIN messaging_group_agents mga ON mga.messaging_group_id=mg.id JOIN agent_groups ag ON ag.id=mga.agent_group_id WHERE mg.channel_type='slack' AND mg.instance='slack' ORDER BY ag.id, mg.id, mga.priority DESC"
pnpm exec tsx scripts/q.ts data/v2.db "SELECT ad.agent_group_id, ad.local_name, ad.target_type, ad.target_id FROM agent_destinations ad JOIN messaging_groups mg ON ad.target_type='channel' AND ad.target_id=mg.id WHERE mg.channel_type='slack' AND mg.instance='slack' ORDER BY ad.agent_group_id, ad.local_name"Classify each surface as DM, channel, or MPIM. A D… conversation is a DM;
use Slack conversations.info with the classic bot token to distinguish an
MPIM from a channel when the stored id is ambiguous, returning only type/id
metadata and never the token.
Choose one stable, unique slug per agent group using the flow's normalization:
lowercase, replace non-alphanumerics with -, trim -, and add a numeric
suffix if an env key, SLACK_INSTANCES entry, or named DB instance is already
claimed by another group. Once any migration state exists, never change that
group's slug. Include the group commonly called “master”; it also gets its own
provisioned app.
Slugs are de-duplicated, but the Slack-visible bot display name comes from the agent group's name — and Slack allows two apps with identical display names in one workspace, leaving humans a mention picker with twins told apart only by avatar. If any two migrating groups share a display name, flag it in the dry-run and have the operator differentiate the names before provisioning; renaming at this point is free, while renaming after provisioning requires a manifest update.
Present a dry-run table with:
- agent group id, name, folder, and chosen slug;
- every old messaging-group id, type, platform id, and destination name;
- the full old wiring row and unknown-sender policy;
- the proposed
slack-<slug>surface and whether it is new, partial, or done.
For a channel, map the old row to a sibling with the same platform_id and
instance='slack-<slug>'. DMs and MPIMs need new conversation ids as described
in Phase 6. Ask the operator to confirm the entire map before continuing.
Phase 3: Install the current Slack agents payloads
First run /update-skills for the installed Slack channel only and require its
structured result to report success: true and refreshed. That refreshes the
barrel-registered /add-slack payload; it deliberately does not install
companion skills, credentials, wirings, or restarts.
Resolve the remote that points at nanocoai/nanoclaw the same fork-aware way
/update-skills does; do not assume it is origin. Fetch, but never merge:
source setup/lib/channels-remote.sh
channels_remote="$(resolve_channels_remote)"
git fetch "$channels_remote" channelsFrom $channels_remote/channels, materialize every file under
.claude/skills/slack-a2a-rooms/ and then every file under
.claude/skills/slack-agent-flow/ with git ls-tree + git show. Read each
new SKILL.md completely and apply its own Apply steps, in that order. The
order is load-bearing and mirrors setup/channels/companions.ts. The standard
driver may apply each document:
pnpm exec tsx setup/lib/skill-driver.ts .claude/skills/slack-a2a-rooms
pnpm exec tsx setup/lib/skill-driver.ts .claude/skills/slack-agent-flowDo not continue unless both report fully applied and their own build/tests
pass. Source contracts: .claude/skills/add-slack/SKILL.md,
setup/channels/companions.ts, and the two fetched companion SKILL.md files.
Phase 4: Get provisioning authority
Pause and ask the operator to choose and complete one authority path:
- Managed broker — enroll/validate the registry install token, then have
the operator connect the intended Slack workspace through the broker OAuth
flow. The flow accepts
NANOCLAW_INSTALL_TOKENor the enrolled account. - Direct Slack — the operator supplies a valid
SLACK_MANAGER_TOKENin.envforapps.manifest.create+apps.managedInstall.
Never select a path, workspace, or authority on the operator's behalf. Confirm
the intended workspace matches the classic bot's auth.test team before any
app is created. See src/provisioning/slack-app.ts and the fetched flow's
provision.ts for the two transport contracts.
Phase 5: Provision every existing group
Choose an existing classic Slack-wired group with a Slack approver as the
stable source group. It supplies the operator identity and authenticates the
origin slack instance; it is not cloned. For every inventoried group,
including the source/master group, run the installed finish primitive with
the recorded slug and defer room creation:
pnpm exec tsx scripts/slack-agent-flow-finish.ts \
--group <existing-agent-group-id> \
--name <stable-slug> \
--source-group <source-agent-group-id> \
--origin-instance slack \
--room noneDo not pass --restart yet. Run all groups first. The script reuses a complete
suffixed token pair, creates the operator DM and its wiring idempotently, and
does not create an agent group. On a partial pair, finish the existing Slack
app installation and retry the same slug; never choose a new slug or create a
second app. Ensure every completed slug is present exactly once in
SLACK_INSTANCES, including reuse cases. The exact CLI contract is documented
at the top of scripts/slack-agent-flow-finish.ts.
Phase 6: Recreate surfaces and clone behavior
For each old wiring:
- Channel: the operator or an authorized Slack API caller must invite the
new bot to the existing channel. Use the same channel
platform_id. - DM: use the operator DM created by the finish script. Every other user must open a new DM with the new bot; use that new DM id.
- MPIM: recreate the membership with the new bot. Slack forks it to a new conversation id; use the new id.
Create each sibling through ncl messaging-groups create, copying name,
is_group, and unknown_sender_policy. Then use ncl wirings create with
--channel-type slack, the resolved --platform-id,
--instance slack-<slug>, and the existing --agent-group-id. Pass the
recorded --engage-mode, --engage-pattern, --sender-scope,
--ignored-message-policy, --session-mode, --priority, and thread policy;
omit --threads when the old value is NULL, otherwise pass true or false.
ncl messaging-groups create --channel-type slack --platform-id <new-or-reused-platform-id> --instance slack-<slug> --name "<recorded-name>" --is-group <0-or-1> --unknown-sender-policy <recorded-unknown-sender-policy>
ncl wirings create --channel-type slack --platform-id <new-or-reused-platform-id> --instance slack-<slug> --agent-group-id <existing-agent-group-id> --engage-mode <recorded-engage-mode> --sender-scope <recorded-sender-scope> --ignored-message-policy <recorded-ignored-policy> --session-mode <recorded-session-mode> --priority <recorded-priority>If a legacy pattern row has NULL engage_pattern, pass . to preserve its
match-all runtime behavior. Do not accept adapter defaults in place of any
recorded behavior field. These create operations are idempotent on their
natural keys/pairs and create the companion destination row.
Show these operator-visible warnings verbatim:
- DM
platform_ids are bot-specific (old DMs can't be copied; only the operator DM is auto-resolved — other DMs need re-opening per user). user_dmscache is not instance-aware.- MPIM membership changes fork conversations (new IDs).
- Existing sessions stay on the old rows (session history does not transfer — new instances start fresh sessions).
- Destination names collide → suffixed (reconcile deliberately, preserve the original local name where the old wiring is retired).
Keep suffixed destination names during the rollback window. If the operator
later retires an old wiring, reconcile with ncl destinations remove/add
instead of raw SQL, and transfer its original local name only after the old
target no longer needs it. src/db/messaging-groups.ts and
docs/db-central.md define the destination side effect and session behavior.
Phase 7: Verify before cutover
Restart once after all apps and rows exist:
bash setup/lib/restart.shDo not proceed until all checks pass:
- every
slack-<slug>instance authenticates after restart; confirm with instance-specific startup logs and Slackauth.testwithout printing tokens; - the operator can DM every agent and receive the response from the new bot;
- each new bot is invited to every mapped channel, and an explicit mention of that bot reaches only the expected existing agent group;
- controlled channel tests show no duplicate responders from the classic and named bots;
- the baseline and current
agent_groupsids/folders are identical, every originalgroups/<folder>/remains in place, and no persona, workspace, or memory file was rewritten; - every mapped sibling row and wiring matches the recorded behavior fields.
If a test fails, keep the classic app active, repair the partial named state, and resume from the ledger. Do not acknowledge the update requirement.
Phase 8: Explicit cutover gate
Show the verification result and ask the operator for explicit cutover confirmation. Only after approval, remove the classic bot from migrated channels and/or disable the unsuffixed Slack credentials so the shared adapter cannot answer alongside the named bots. Re-run the channel tests and require no duplicate responders.
Never delete or archive a Slack app automatically. Until this gate, keep the old rows, apps, and tokens intact. Detached old messaging-group rows preserve their wirings, sessions, and destinations, providing the rollback path: restore the unsuffixed credentials or re-invite the classic bot, restart, and disable the named instances if necessary.
Phase 9: Resume and acknowledge the update
The workflow is safe to re-run. Treat a group as complete only when its stable
slug has both suffixed tokens, a SLACK_INSTANCES entry, and matching DB
coverage for every mapped surface. Skip complete steps. Resume partial rows or
credentials with the same slug; the finish primitive reuses tokens and its
Slack/DB legs are get-before-create, so retries do not duplicate apps or rows.
Acknowledge the [BREAKING] requirement in exactly two cases: the operator
chose to stay on classic (Phase 1b), or Phases 7 and 8 passed. Use the
transaction id and requirement id supplied by /update-nanoclaw:
pnpm exec tsx "$stageRoot/scripts/update-nanoclaw.ts" ack \
--project-root "$PWD" --id "$id" \
--requirement "$requirement_id" --status succeededThen return control to /update-nanoclaw to finish and health-check. A failed
or half-migrated state remains pending; never acknowledge it merely to let the
update finish — either complete verification and cutover, or roll back to
classic and record the stay decision instead.
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.

