Skip to content
Agent Orchestration
Command

/compact

Prepare OMC context for a manual Claude Code /compact handoff.

From plugin
oh-my-claudecode
41k21 skills21 agents21 commands11 hooks
+1
> /plugin marketplace add Yeachan-Heo/oh-my-claudecode
> /plugin install oh-my-claudecode@omc

Command definition

compact.md
description: "Prepare OMC context for a manual Claude Code /compact handoff."
argument-hint: "[optional compaction note]"

OMC Manual Context Compaction Helper

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.

Dispatch

1. Treat this as a request to prepare for manual Claude Code conversation compaction. Do not create a separate OMC summarizer and do not replace existing auto-compress behavior. 2. Preserve any user note for the compaction request:

$ARGUMENTS

3. Tell the user to run Claude Code's built-in bare `/compact` command directly. If the note above is non-empty, tell them to include it with `/compact`. 4. Before handing off, remind the user that Claude Code's normal `PreCompact` lifecycle should run OMC's existing pre-compact hooks (`pre-compact`, project memory, and wiki preservation) when the native compaction occurs. 5. Do not invoke a `compact` skill, do not attempt to call `/compact` on the user's behalf, and do not manually summarize the session.

User-facing handoff

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.
Read more
@yeachan-heo
Ships withoh-my-claudecode

For Codex users: Check out oh-my-codex — the same orchestration experience for OpenAI Codex CLI. Liked OmC but found it a bit overkill? Try gajae-code.

41k84 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
40.7k
Star history of Yeachan-Heo/oh-my-claudecode on GitHub, a chart by star-history.com

Other commands on oh-my-claudecode.

ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

debug

debug

Command

This compatibility command keeps `/oh-my-claudecode:debug` available without loading the full `debug` skill description in every…

deepinit

deepinit

Command

This compatibility command keeps `/oh-my-claudecode:deepinit` available without loading the full `deepinit` skill description in…

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
code-review

code-review

Command

Technical code review for quality, bugs, and AGENTS.md compliance

archon12d24k
@coleam00@coleam00Install Command