Losslessly compacts long transcripts via qwg_compact_select and recovers dropped details like commit SHAs, file paths, or error logs verbatim via qwg_episodic_recover. Useful for shrinking context without losing exact facts.
Ships in qwegn-mcp. 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.
Pair Qwegn's calibrated turn selector with its 0o600 BM25 episodic archive so shrinking long contexts never loses exact SHAs, line numbers, ports, or diagnostics.
qwg_episodic_recover):
qwg_episodic_recover with {"session_id": "<current-session-id>", "query": "<exact identifier or keyword>", "limit": 5} before re-running builds or asking the user.qwg_compact_select):
<= 40 turns / 40,000 chars) to qwg_compact_select with turns: [{"index": i, "role": "...", "text": "...", "pinned": bool}], keep_tail_count: 6, drop_confidence_rail: 0.70, and mandatory archive_session_id: "<current-session-id>".keep -> retain verbatim; summarize -> 1-line factual pointer citing session_id + turn index for qwg_episodic_recover; drop -> remove only when calibrated confidence >= 0.70.| Failure | Fix |
|---|---|
qwg_episodic_recover returns 0 matches | Check that archive_session_id was passed during qwg_compact_select and broaden query to a single token (SHA prefix or symbol). |
qwg_compact_select rejects oversized batch | Split turns into chunks of <= 40 turns and <= 40,000 characters per request. |
Critical constraint marked summarize or drop | Re-submit with pinned: true on system/decision turns or recover verbatim via qwg_episodic_recover. |
What SKILL.md sets; muted values are Claude Code's defaults
/qwegn-mcp:qwegn-compaction-and-episodicfrom qwegn-mcp
npx claudepluginhub qwegnai/qwegn --plugin qwegn-mcp6 skills in this plugin
/qwegn-bug-reportDiagnose Qwegn engine bugs on Apple Silicon using QW_DUMP_PSOS=1, QW_TRACE_ACTIVATIONS=1, and MTL_DEBUG_LAYER=1, isolate the failing subsystem, sanitize logs, and draft a GitHub issue for qwegnai/qwegn./qwegn-guardGate mutating, destructive, or network shell commands with qwg_guard before execution, and screen untrusted external or RAG passages with qwg_rerank_screen before context injection./qwegn-mcp-setupWire Qwegn MCP and System-One endpoints into Claude Code, Codex, OpenCode, hermes, or omp, index Vault v2 code/PDF packs, and verify sidecar health./qwegn-orchestrateSupervise background subagents or async jobs with qwg_supervise, shortlist large skill catalogs with qwg_skill_select, route model tiers with qwg_route_turn, or score closed-set rubrics with qwg_decide./qwegn-vaultRecon multi-repo codebases, AST declaration slices, exact identifier occurrences, and PDF/Markdown specs via Qwegn's screened Cognitive Vault v2 before running grep loops.Other plugins' skills for the same job