/awsh:safe-bulk-renamefrom awsh
Safely renames tokens across hundreds or thousands of files in a shared worktree, protecting load-bearing strings like KDF material, WAF User-Agents, and container names from corruption. Use before any sed-based rename touching more than ~20 files or renaming published packages.
Ships in awsh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A bulk rename looks like sed -i s/old/new/g over a file list. It is not, and
every trap below cost real time on one two-package rename
(1267 files moved, 682 rewritten).
Read this with concurrent-safe-git, which owns the commit mechanics. This page
owns what is different about a rename: the blast radius is the whole tree, so
the usual "review the diff" does not scale and you need rules instead.
The single most dangerous edit in this class:
material = f"{user}:{Path.home()}:oldpkg-name-secrets-v1"
That string is key-derivation material. Renaming it changes the derived key and makes every existing locally-encrypted secret undecryptable. It is not a name, it is a constant that happens to contain the name.
Enumerate composite tokens first and read every one:
git grep -I -oh "old-name[a-z0-9_-]*" | sort -u
Classes that recur, all real findings:
| what | why it must not move |
|---|---|
| KDF / HMAC / salt material | changes the derived key; silent data loss |
| a User-Agent a WAF rule keys on | the edge starts refusing you (a real incident here: the edge began refusing us) |
| a running container / service name | you orphan what is deployed, then deploy a twin |
| an externally published agent/protocol id | strangers' configs stop matching |
memory slugs, debt-row ids, [[wiki-links]] | records of what happened; links break |
| the REDIRECT package's own name | it exists to keep the old name alive |
That last one bites hardest because it is created during the rename: a stub
package declaring name = "old" sits inside the newly-renamed tree, so the next
sweep rewrites it into a self-referential package that depends on itself. Put a
loud comment in the file AND keep it in the protected list.
Mechanism, not discipline. Do not hand-skip these. Protect them by substitution so the rename cannot reach them:
for i, tok in enumerate(PROTECTED):
t = t.replace(tok, NUL + "P%d" % i + NUL) # park it
t = t.replace(OLD, NEW)
for i, tok in enumerate(PROTECTED):
t = t.replace(NUL + "P%d" % i + NUL, tok) # restore it
Longest-token-first ordering matters: old-name-fleet must be parked before a
rule that would match old-name.
oldpkg_name (underscore) was not the import name of oldpkg-name; it was a
separate retired twin package, still imported by live code. Sweeping it would
have broken working imports and rewritten unrelated history. Before including a
variant spelling, grep its call sites and prove they are the same subject.
Split on what the text is for, not on file type:
TECH_DEBT*.md, CHANGELOG*, *.jsonl chronicles — keep the
old name. They describe what was true then.git grep reads the INDEX. After a git mv it is blind to the new tree.The nastiest silent failure here. Once you git mv old new (especially through
a private GIT_INDEX_FILE), git grep finds nothing under new/ because
the shared index has never heard of those paths. A re-run of your rewrite
reports "29 files fixed" and silently skips the 1100 files you just moved.
grep -rIl on the moved trees, never git grep.if not path.is_file(): continue guard turns that
into a silent skip.After rewriting content, references point at new/skills/newname.md while the
file on disk is still oldname.md. Sweep for it and fix both directions:
find <trees> -name "*old-name*"
Then re-check that every rewritten reference resolves.
Do not eyeball a 2000-file diff. Assert the property instead: for every file, the working tree must equal HEAD's blob with only your rename applied.
expected = rename(git show HEAD:<old-path>)
safe = normalise(worktree) == normalise(expected)
Anything else contains a peer's edits. Stage only safe. For a file that is
genuinely both yours and theirs, stage rename(HEAD blob) via
git hash-object -w + git update-index --cacheinfo — your rename lands, their
working-tree edits stay untouched and uncommitted.
Normalise line endings before comparing or CRLF files read as 100% changed.
A moved tree preserves resolution by construction, so the only new breakage comes from files you renamed within it. Test it directly rather than trusting that:
for each new-path reference that does not resolve:
did its OLD equivalent resolve at HEAD~1?
yes -> YOU broke it
no -> it was already dangling
Expect false positives from a naive path regex: prose lists (newpkg-name / awnode)
and GitHub URLs (.../newpkg-name/blob/main/...) both look like paths. The
"was it broken before?" test filters them without hand-triage.
PyPI, npm and crates have no rename. You publish a new name; the old one exists forever. So:
pip index versions <name> or npm view <name> version)
before you publish. (The checker that asserts this internally is not shipped in this pack.)old-*.whl and new-*.whl) —
a committed artifact predates the rename while the next build produces the new
name, and pinning either alone breaks one side.A large uncommitted rename is the most fragile state this worktree supports. On 2026-08-19 a peer discarded the working-tree edits twice — once mid-rename and once after the commit, leaving HEAD correct and the working tree reverted.
git diff --stat HEAD -- <paths> should be empty). (The internal peer-revert
checker this step used is not shipped in this pack.)git checkout HEAD -- <path> — pathspec-scoped,
never git checkout ..git grep.git mv the directories.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aitherium/awdk --plugin awsh120 skills in this plugin
/acp-driveDrive any external ACP agent from your agent. The Agent Client Protocol lets one agent drive another. When your task needs a different model, a different tool surface, or a sandbox your loop doesn't have, you can hand a sub-problem to an external ACP agent — Claude Code (claude-agent-acp), Codex (codex-acp), Gemini CLI (gemini-cli), or any binary that speaks ACP on stdio — and read back its answer. Your memory, faculties and approval gate stay in charge; the external agent runs its own loop underneath./acp-serveExpose an AitherOS agent to ACP editors. ACP editors — JetBrains IDEs, Zed, VS Code, neovim, Obsidian — drive coding agents over the Agent Client Protocol. adk acp serve makes any AitherOS agent one of those agents: the editor spawns it as a subprocess, and every prompt, permission request and tool round-trip goes over stdio JSON-RPC. Your agent's approval gate maps onto ACP permission requests./adk-deepseek-coderFill-in-the-middle, repo packing, and a reward that can fail. DeepSeek-Coder is two useful things at once, and most people only take the first./adk-harnessesOne shell that drives every coding shell. Your agent can hand a task to another coding agent's real product — Claude Code, Codex, Gemini CLI, Aider, OpenCode — and read back one answer./adk-unslothLocal training and serving, wired to your agent. [Unsloth](https://github.com/unslothai/unsloth) trains LoRA/QLoRA 2x faster with ~70% less VRAM and serves GGUF locally. Pairing it with the ADK gives you a loop that runs entirely on your own hardware: your agent serves from a local model, you fine-tune on what it produced, you swap the adapter, you measure again./adversarial-verificationStop grading your own homework. There is one failure that costs more agent-hours than any bug: the agent reads its own diff, decides it is correct, and reports success. Every expensive incident has that shape. A green healthcheck. An HTTP 200. A passing import. A test that goes green. All true, all at the same time as the feature being completely inert.Other plugins' skills for the same job