复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-oh-my-claudecode-b791f88e2a28 ,按照其中的说明把「compact」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This command intentionally uses the plugin-scoped name /oh-my-claudecode:compact instead of the bare /compact command. Bare /compact is reserved for Claude Code's native compaction command and must not be shadowed by OMC.
OMC cannot invoke Claude Code's built-in /compact from a plugin command: /compact is a native slash command, not a prompt skill, and a prompt-skill call for compact is not a supported handoff. This helper is instruction-only and must not claim that OMC triggers compaction itself.
$ARGUMENTS
/compact command directly. If the note above is non-empty, tell them to include it with /compact.PreCompact lifecycle should run OMC's existing pre-compact hooks (pre-compact, project memory, and wiki preservation) when the native compaction occurs.compact skill, do not attempt to call /compact on the user's behalf, and do not manually summarize the session.Use this wording, adapting only the note text:
OMC prepared the compaction context, but plugin commands cannot trigger Claude Code's native /compact directly. Run this as a bare Claude Code command now:
/compact $ARGUMENTS
Bare /compact remains Claude Code's native command; OMC does not shadow or invoke it.