[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75FYD68TP42VVEMJFWW57ZR":3,"skill-same:01M75FYD68TP42VVEMJFWW57ZR":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M75FYD68TP42VVEMJFWW57ZR","context-compactor",null,"Token-based context compaction for local models (MLX, llama.cpp, Ollama) that don't report context limits.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Femberdesire\u002Fcontext-compactor\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: context-compactor\nversion: 0.3.8\ndescription: Token-based context compaction for local models (MLX, llama.cpp, Ollama) that don't report context limits.\n---\n\n# Context Compactor\n\nAutomatic context compaction for OpenClaw when using local models that don't properly report token limits or context overflow errors.\n\n## The Problem\n\nCloud APIs (Anthropic, OpenAI) report context overflow errors, allowing OpenClaw's built-in compaction to trigger. Local models (MLX, llama.cpp, Ollama) often:\n\n- Silently truncate context\n- Return garbage when context is exceeded\n- Don't report accurate token counts\n\nThis leaves you with broken conversations when context gets too long.\n\n## The Solution\n\nContext Compactor estimates tokens client-side and proactively summarizes older messages before hitting the model's limit.\n\n## How It Works\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│  1. Message arrives                                         │\n│  2. before_agent_start hook fires                           │\n│  3. Plugin estimates total context tokens                   │\n│  4. If over maxTokens:                                      │\n│     a. Split into \"old\" and \"recent\" messages              │\n│     b. Summarize old messages (LLM or fallback)            │\n│     c. Inject summary as compacted context                 │\n│  5. Agent sees: summary + recent + new message             │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Installation\n\n```bash\n# One command setup (recommended)\nnpx jasper-context-compactor setup\n\n# Restart gateway\nopenclaw gateway restart\n```\n\nThe setup command automatically:\n- Copies plugin files to `~\u002F.openclaw\u002Fextensions\u002Fcontext-compactor\u002F`\n- Adds plugin config to `openclaw.json` with sensible defaults\n\n## Configuration\n\nAdd to `openclaw.json`:\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"context-compactor\": {\n        \"enabled\": true,\n        \"config\": {\n          \"maxTokens\": 8000,\n          \"keepRecentTokens\": 2000,\n          \"summaryMaxTokens\": 1000,\n          \"charsPerToken\": 4\n        }\n      }\n    }\n  }\n}\n```\n\n### Options\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `enabled` | `true` | Enable\u002Fdisable the plugin |\n| `maxTokens` | `8000` | Max context tokens before compaction |\n| `keepRecentTokens` | `2000` | Tokens to preserve from recent messages |\n| `summaryMaxTokens` | `1000` | Max tokens for the summary |\n| `charsPerToken` | `4` | Token estimation ratio |\n| `summaryModel` | (session model) | Model to use for summarization |\n\n### Tuning for Your Model\n\n**MLX (8K context models):**\n```json\n{\n  \"maxTokens\": 6000,\n  \"keepRecentTokens\": 1500,\n  \"charsPerToken\": 4\n}\n```\n\n**Larger context (32K models):**\n```json\n{\n  \"maxTokens\": 28000,\n  \"keepRecentTokens\": 4000,\n  \"charsPerToken\": 4\n}\n```\n\n**Small context (4K models):**\n```json\n{\n  \"maxTokens\": 3000,\n  \"keepRecentTokens\": 800,\n  \"charsPerToken\": 4\n}\n```\n\n## Commands\n\n### `\u002Fcompact-now`\n\nForce clear the summary cache and trigger fresh compaction on next message.\n\n```\n\u002Fcompact-now\n```\n\n### `\u002Fcontext-stats`\n\nShow current context token usage and whether compaction would trigger.\n\n```\n\u002Fcontext-stats\n```\n\nOutput:\n```\n📊 Context Stats\n\nMessages: 47 total\n- User: 23\n- Assistant: 24\n- System: 0\n\nEstimated Tokens: ~6,234\nLimit: 8,000\nUsage: 77.9%\n\n✅ Within limits\n```\n\n## How Summarization Works\n\nWhen compaction triggers:\n\n1. **Split messages** into \"old\" (to summarize) and \"recent\" (to keep)\n2. **Generate summary** using the session model (or configured `summaryModel`)\n3. **Cache the summary** to avoid regenerating for the same content\n4. **Inject context** with the summary prepended\n\nIf the LLM runtime isn't available (e.g., during startup), a fallback truncation-based summary is used.\n\n## Differences from Built-in Compaction\n\n| Feature | Built-in | Context Compactor |\n|---------|----------|-------------------|\n| Trigger | Model reports overflow | Token estimate threshold |\n| Works with local models | ❌ (need overflow error) | ✅ |\n| Persists to transcript | ✅ | ❌ (session-only) |\n| Summarization | Pi runtime | Plugin LLM call |\n\nContext Compactor is **complementary** — it catches cases before they hit the model's hard limit.\n\n## Troubleshooting\n\n**Summary quality is poor:**\n- Try a better `summaryModel`\n- Increase `summaryMaxTokens`\n- The fallback truncation is used if LLM runtime isn't available\n\n**Compaction triggers too often:**\n- Increase `maxTokens`\n- Decrease `keepRecentTokens` (keeps less, summarizes earlier)\n\n**Not compacting when expected:**\n- Check `\u002Fcontext-stats` to see current usage\n- Verify `enabled: true` in config\n- Check logs for `[context-compactor]` messages\n\n**Characters per token wrong:**\n- Default of 4 works for English\n- Try 3 for CJK languages\n- Try 5 for highly technical content\n\n## Logs\n\nEnable debug logging:\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"context-compactor\": {\n        \"config\": {\n          \"logLevel\": \"debug\"\n        }\n      }\n    }\n  }\n}\n```\n\nLook for:\n- `[context-compactor] Current context: ~XXXX tokens`\n- `[context-compactor] Compacted X messages → summary`\n\n## Links\n\n- **GitHub**: https:\u002F\u002Fgithub.com\u002FE-x-O-Entertainment-Studios-Inc\u002Fopenclaw-context-compactor\n- **OpenClaw Docs**: https:\u002F\u002Fdocs.openclaw.ai\u002Fconcepts\u002Fcompaction\n","# Context Compactor\n\nAutomatic context compaction for OpenClaw when using local models that don't properly report token limits or context overflow errors.\n\n## The Problem\n\nCloud APIs (Anthropic, OpenAI) report context overflow errors, allowing OpenClaw's built-in compaction to trigger. Local models (MLX, llama.cpp, Ollama) often:\n\n- Silently truncate context\n- Return garbage when context is exceeded\n- Don't report accurate token counts\n\nThis leaves you with broken conversations when context gets too long.\n\n## The Solution\n\nContext Compactor estimates tokens client-side and proactively summarizes older messages before hitting the model's limit.\n\n## How It Works\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│  1. Message arrives                                         │\n│  2. before_agent_start hook fires                           │\n│  3. Plugin estimates total context tokens                   │\n│  4. If over maxTokens:                                      │\n│     a. Split into \"old\" and \"recent\" messages              │\n│     b. Summarize old messages (LLM or fallback)            │\n│     c. Inject summary as compacted context                 │\n│  5. Agent sees: summary + recent + new message             │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Installation\n\n```bash\n# One command setup (recommended)\nnpx jasper-context-compactor setup\n\n# Restart gateway\nopenclaw gateway restart\n```\n\nThe setup command automatically:\n- Copies plugin files to `~\u002F.openclaw\u002Fextensions\u002Fcontext-compactor\u002F`\n- Adds plugin config to `openclaw.json` with sensible defaults\n\n## Configuration\n\nAdd to `openclaw.json`:\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"context-compactor\": {\n        \"enabled\": true,\n        \"config\": {\n          \"maxTokens\": 8000,\n          \"keepRecentTokens\": 2000,\n          \"summaryMaxTokens\": 1000,\n          \"charsPerToken\": 4\n        }\n      }\n    }\n  }\n}\n```\n\n### Options\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `enabled` | `true` | Enable\u002Fdisable the plugin |\n| `maxTokens` | `8000` | Max context tokens before compaction |\n| `keepRecentTokens` | `2000` | Tokens to preserve from recent messages |\n| `summaryMaxTokens` | `1000` | Max tokens for the summary |\n| `charsPerToken` | `4` | Token estimation ratio |\n| `summaryModel` | (session model) | Model to use for summarization |\n\n### Tuning for Your Model\n\n**MLX (8K context models):**\n```json\n{\n  \"maxTokens\": 6000,\n  \"keepRecentTokens\": 1500,\n  \"charsPerToken\": 4\n}\n```\n\n**Larger context (32K models):**\n```json\n{\n  \"maxTokens\": 28000,\n  \"keepRecentTokens\": 4000,\n  \"charsPerToken\": 4\n}\n```\n\n**Small context (4K models):**\n```json\n{\n  \"maxTokens\": 3000,\n  \"keepRecentTokens\": 800,\n  \"charsPerToken\": 4\n}\n```\n\n## Commands\n\n### `\u002Fcompact-now`\n\nForce clear the summary cache and trigger fresh compaction on next message.\n\n```\n\u002Fcompact-now\n```\n\n### `\u002Fcontext-stats`\n\nShow current context token usage and whether compaction would trigger.\n\n```\n\u002Fcontext-stats\n```\n\nOutput:\n```\n📊 Context Stats\n\nMessages: 47 total\n- User: 23\n- Assistant: 24\n- System: 0\n\nEstimated Tokens: ~6,234\nLimit: 8,000\nUsage: 77.9%\n\n✅ Within limits\n```\n\n## How Summarization Works\n\nWhen compaction triggers:\n\n1. **Split messages** into \"old\" (to summarize) and \"recent\" (to keep)\n2. **Generate summary** using the session model (or configured `summaryModel`)\n3. **Cache the summary** to avoid regenerating for the same content\n4. **Inject context** with the summary prepended\n\nIf the LLM runtime isn't available (e.g., during startup), a fallback truncation-based summary is used.\n\n## Differences from Built-in Compaction\n\n| Feature | Built-in | Context Compactor |\n|---------|----------|-------------------|\n| Trigger | Model reports overflow | Token estimate threshold |\n| Works with local models | ❌ (need overflow error) | ✅ |\n| Persists to transcript | ✅ | ❌ (session-only) |\n| Summarization | Pi runtime | Plugin LLM call |\n\nContext Compactor is **complementary** — it catches cases before they hit the model's hard limit.\n\n## Troubleshooting\n\n**Summary quality is poor:**\n- Try a better `summaryModel`\n- Increase `summaryMaxTokens`\n- The fallback truncation is used if LLM runtime isn't available\n\n**Compaction triggers too often:**\n- Increase `maxTokens`\n- Decrease `keepRecentTokens` (keeps less, summarizes earlier)\n\n**Not compacting when expected:**\n- Check `\u002Fcontext-stats` to see current usage\n- Verify `enabled: true` in config\n- Check logs for `[context-compactor]` messages\n\n**Characters per token wrong:**\n- Default of 4 works for English\n- Try 3 for CJK languages\n- Try 5 for highly technical content\n\n## Logs\n\nEnable debug logging:\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"context-compactor\": {\n        \"config\": {\n          \"logLevel\": \"debug\"\n        }\n      }\n    }\n  }\n}\n```\n\nLook for:\n- `[context-compactor] Current context: ~XXXX tokens`\n- `[context-compactor] Compacted X messages → summary`\n\n## Links\n\n- **GitHub**: https:\u002F\u002Fgithub.com\u002FE-x-O-Entertainment-Studios-Inc\u002Fopenclaw-context-compactor\n- **OpenClaw Docs**: https:\u002F\u002Fdocs.openclaw.ai\u002Fconcepts\u002Fcompaction\n",{"name":5,"version":24,"description":7},"0.3.8","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Femberdesire\u002Fcontext-compactor",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill context-compactor",{"tool":40,"command":41},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill context-compactor",{"tool":43,"command":44},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill context-compactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Femberdesire\u002Fcontext-compactor\u002FSKILL.md",true,[],[49,57,64,71,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":56},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":56},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":56},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":56},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":56},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":56},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]