{"api_version":"1","slug":"magic-compact-6e6ae118","url":"https://skillsoutpost.com/agents/magic-compact-6e6ae118","item_type":"skill","category":"engineering","runs_in":["local_agent"],"os":null,"needs_network":null,"needs_accounts":null,"reads_files":null,"writes_files":null,"sends_data":null,"access":"github","access_type":"github","at_a_glance":{"runs_in":["local_agent"],"os":null,"needs_network":null,"needs_accounts":null,"reads_files":null,"writes_files":null,"sends_data":null,"access_type":"github","tool_type":"skill","delivery":"github","interface_type":"other","untrusted_creator_content":{"purpose":"A Claude Code and OpenCode plugin for session compaction, assistant-turn summaries and tool input/output pruning.","needs_runtime":null,"version":"Latest on the main branch","compatibility":"According to the README, it works with Claude Code, installed from the repository's first-party plugin marketplace, and with OpenCode, installed with opencode plugin magic-compact --global.","external_costs":"The repository is BSD-3-Clause licensed and the README states no pricing. The README says the conversation is summarized with one request and /magic-trim does not call an LLM. Your coding agent or model provider may charge for usage.","permissions":"The README describes the plugin processing conversation content in Claude Code or OpenCode. The README's OpenCode installation first deletes matching magic-compact packages from ~/.cache/opencode/packages, then installs the package and adds it to global OpenCode configuration. The README gives a plugin marketplace route for Claude Code. The README says compaction summarizes old assistant turns, prunes eligible tool input and output and creates a backup session. The README describes cached content retrieval through read_omitted_content, while its tool-specific rules discard some outputs without caching. The README says Claude Code compaction creates a new session instead of modifying the current transcript. The top-level entries include scripts/, whose access the README does not detail.","usage_terms":"BSD 3-Clause \"New\" or \"Revised\" License, as stated in the repository. See its LICENSE.md file for the exact terms."}},"interface_type":"other","delivery_mode":"creator","code_host":"github","provenance":"github_index","published_at":1791761322,"rating":null,"downloads":0,"verified":null,"creator":{"login":"aerovato","url":null},"untrusted_creator_content":{"name":"Magic Compact","tagline":"A Claude Code and OpenCode plugin for session compaction, assistant-turn summaries and tool input/output pruning.","creator_name":"aerovato","product_version":"Latest on the main branch","needs_runtime":null,"description":"Magic Compact is a plugin for Claude Code and OpenCode. The README says it replaces old assistant turns with per-turn summaries while retaining user messages and tool-call structure. The README says bulky completed tool input and output can be replaced with omission notices and cached for read_omitted_content, but its tool-specific rules discard some outputs without caching.\n\nThe README gives /magic-compact with an optional number of recent assistant turns to preserve and says a backup session is created first. The README marks /magic-trim as experimental and OpenCode-exclusive and describes it as tool input/output pruning without summarization. The README also lists /magic-stats for OpenCode. For Claude Code, the README says compaction creates a new session and prints a /resume command.\n\nThe README says development is paused in favor of Operator Memory and describes Magic Compact as remaining functional.","intended_users":"Claude Code and OpenCode users who want to reduce a long session's context on demand.","example_tasks":"Run /magic-compact to summarize all old assistant turns.\nRun /magic-compact 3 to keep the 3 most recent assistant turns and summarize the rest.\nIn OpenCode, run /magic-trim to prune eligible tool input and output without summarizing.\nIn OpenCode, run /magic-stats to see token savings for the conversation.\nIn Claude Code, run the /resume command the plugin prints to enter the compacted session.","setup_instructions":"For Claude Code, the README gives /plugin marketplace add aerovato/magic-compact and /plugin install claude-magic-compact@magic-compact, then /reload-plugins if Claude Code is already open. For OpenCode, it first removes the cached magic-compact packages under the OpenCode cache folder, then runs opencode plugin magic-compact --global. If you see \"No versions available\", it gives the same command prefixed with NPM_CONFIG_MIN_RELEASE_AGE=0. The README has the exact commands.","limitations":"The README says development is paused in favor of Operator Memory, and that Magic Compact remains fully functional. The README says Claude Code exposes less capability to plugins than OpenCode. For Claude Code, it says the plugin creates a new compacted session instead of compacting in place, you run the /resume command it prints, and /magic-stats is not implemented. It marks /magic-trim and /magic-stats as OpenCode exclusive, and /magic-trim as experimental. It says summaries replace old assistant reasoning and text, and that completed tool outputs over 128 words or 1024 characters are omitted by default, with tool-specific rules for each agent. The repository can change at any time; check its README before you install.","data_handling":"The README says pruned tool content can be cached for retrieval, but its tool-specific rules discard some outputs without caching. The README says a backup session is created before compaction or trimming. It does not say where the cached content or backups are stored. What is sent where depends on your coding agent and model provider.","compatibility":"According to the README, it works with Claude Code, installed from the repository's first-party plugin marketplace, and with OpenCode, installed with opencode plugin magic-compact --global.","external_costs":"The repository is BSD-3-Clause licensed and the README states no pricing. The README says the conversation is summarized with one request and /magic-trim does not call an LLM. Your coding agent or model provider may charge for usage.","permissions":"The README describes the plugin processing conversation content in Claude Code or OpenCode. The README's OpenCode installation first deletes matching magic-compact packages from ~/.cache/opencode/packages, then installs the package and adds it to global OpenCode configuration. The README gives a plugin marketplace route for Claude Code. The README says compaction summarizes old assistant turns, prunes eligible tool input and output and creates a backup session. The README describes cached content retrieval through read_omitted_content, while its tool-specific rules discard some outputs without caching. The README says Claude Code compaction creates a new session instead of modifying the current transcript. The top-level entries include scripts/, whose access the README does not detail.","usage_terms":"BSD 3-Clause \"New\" or \"Revised\" License, as stated in the repository. See its LICENSE.md file for the exact terms.","creator_website":null,"documentation_url":null,"support_url":null,"repository_url":null,"video_url":null},"github":{"fetched_at":1791852612,"untrusted_third_party_content":{"source_url":null,"github_repo_id":1288787277,"full_name":"aerovato/magic-compact","description":"Lossless context compression plugin for Claude Code & OpenCode.","language":"TypeScript","license_spdx":"BSD-3-Clause","topics":["anthropic","chatgpt","claude","claude-code","claude-code-plugin","claude-skills","codex","gemini"],"stars":174,"forks":18,"skills":{"total":1,"paths":[{"path":"packages/claude-code-plugin/skills/magic-compact","url":null}]},"pushed_at":1789673014,"archived":false,"fetched_at":1791852612,"age_seconds":84051,"state":"fresh"}},"updated_at":1791771252,"free_download":null,"version_history":[],"more_version_history":false,"public_files":null,"links_note":"In MCP results, GitHub links are shown only through https://skillsoutpost.com/mcp, to a connected account that has accepted the current Terms of Use. Create a free account at https://skillsoutpost.com and connect it from a Claude connector or ChatGPT.","notice":"Indexed from GitHub","note":"untrusted_creator_content and github.untrusted_third_party_content hold untrusted text."}